* {
    box-sizing: border-box;
}

/* Theme variables */
:root[data-bs-theme="light"] {
   --background-color: #fdfaf6;
    --text-color: #2e2e2e;
    --navbar-color: #d77a61;
    --link-color: #d77a61;
    --button-bg: #d77a61;
    --button-text: #ffffff;
    --hover-color: #f4c9b5;
    --dropdown-hover-bg: #f4c9b5;
    --dropdown-hover-text: #2e2e2e;
    --footer-color: #d77a61;
    --footer-text-color: #ffffff;
    --social-bg: #d77a61;
    --social-hover-bg: #f4c9b5;
    --social-hover-text: #2e2e2e;
}


:root[data-bs-theme="dark"] {
   --background-color: #fdfaf6;
    --text-color: #2e2e2e;
    --navbar-color: #323131;
    --hover-color: #f4c9b5;
    --link-color: #d77a61;
    --button-bg: #d77a61;
    --dropdown-hover-bg: #f4c9b5;
    --dropdown-hover-text: #2e2e2e;
    
    --footer-color: #323131;
    --footer-text-color: #ffffff;
    --social-bg: #d77a61;
    --social-hover-bg: #f4c9b5;
    --social-hover-text: #2e2e2e;

}
:root[data-bs-theme="dark"] .faq .accordion-button {
    background-color: #000000; /* fondo negro */
    color: #ffffff;            /* texto blanco */
}

:root[data-bs-theme="dark"] .faq .accordion-body {
    background-color: #000000; /* fondo negro */
    color: #ffffff;            /* texto blanco */
    border-top: 1px solid rgba(255,255,255,0.1);
}

:root[data-bs-theme="dark"] .price {
    color: #ffffff;            /* texto blanco */
    
}


body {
    background-color: var(--background-color);
    color: var(--text-color);
}

header,
.navbar,
.navbar .container {
    background-color: var(--navbar-color);
    
}

.navbar-nav .nav-item {
    margin-left: 30px;
    margin-right: 30px;
    font-weight: 600;
}

.navbar-nav .nav-link:hover {
    color: var(--hover-color); 
    transition: color 0.3s ease;
}

.dropdown-menu .dropdown-item {
  font-weight: 600;
}


.brand-badge {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
  background-color: rgba(255,255,255,.08);
  transition: transform .2s ease, background-color .2s ease;
}

.brand-badge:hover {
  transform: translateY(-1px) scale(1.05);
  background-color: rgba(255,255,255,.15);
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--dropdown-hover-bg);
    color: var(--dropdown-hover-text);
    transition: all 0.3s ease-in-out;
}


.btn-icon {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;  
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1.2rem;  
}

.btn-icon:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.btn-icon:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}


.navbar-nav .nav-item.flex-right {
    margin-left: auto; 
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.5rem;
}


/* Botón de icono para idioma */
.btn-icon {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1.2rem;
}

.btn-icon:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.btn-icon:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

/* Dropdown del selector de idioma */
.nav-item.flex-right .dropdown-menu {
    min-width: 100px;  
    max-width: 140px;  
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.nav-item.flex-right .dropdown-menu .dropdown-item {
    text-align: center;
}

.hero {
  padding-top: 5rem;
}

.badge {
  background-color: var(--hover-color);
  color: var(--text-color);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.badge i {
  font-size: 1rem;
}

.badge:hover {
  background-color: var(--button-bg);
  color: #ffffff;
  transform: translateY(-2px);
}

.badge:hover i {
  color: #ffffff;
}

/*Preguntas frecuentes*/

/* Limitar ancho del acordeón */
.faq .accordion {
  max-width: 800px;
  margin: 0 auto;
}

/* Botón del acordeón */
.accordion-button {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--text-color);
  font-weight: 650;
  border: none;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease transform 0.2s ease;
  padding: 1rem;
}

/* Hover al pasar el ratón (más sutil) */
.accordion-button:hover {
  background-color: var(--hover-color); /* tono muy suave */
  transform: translateY(-2px);
}

/* Estilo cuando está abierto (sin cambio de color fuerte) */
.accordion-button:not(.collapsed) {
  background-color: var(--hover-color); /* apenas perceptible */
}

/* Eliminar sombra al hacer foco */
.accordion-button:focus {
  box-shadow: none;
}

/* Cuerpo del acordeón */
.accordion-body {
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
  background-color: var(--background-color);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}


/* Portfolio general */
.portfolio img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover */
.portfolio img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Ajustes responsive */
@media (max-width: 576px) {
  .portfolio .col-12 {
    margin-bottom: 1rem;
  }
  .portfolio img {
    width: 90%;
    margin: 0 auto;
    display: block;
  }
}




/* =======================
   Footer
======================= */
footer {
    background-color: var(--footer-color);
    color: var(--footer-text-color);
    padding: 15px;
}

/* Contenedor de columnas */
footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
}

/* Columnas */
footer .footer-left,
footer .footer-center,
footer .footer-right {
  flex: 1;
  min-width: 150px;
  text-align: center;
}


/* Alineación en pantallas grandes */
@media (min-width: 768px) {
  footer .footer-left { text-align: left; }
  footer .footer-center { text-align: center; }
  footer .footer-right { text-align: right; }
}

/* Links del footer (sobre-escriben Bootstrap) */
footer a,
footer .footer-container a {
  color: var(--footer-text-color);   
  text-decoration: none;
  transition: color 0.3s, transform 0.2s ease;
}

footer a:hover,
footer .footer-container a:hover {
  color: var(--hover-color); 
}

/* Copyright separado */
footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  padding-top: 0.5rem;
  margin-left: 100px;
  margin-right: 100px;
}

.footer-right p {
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.footer-right i {
  font-size: 1rem;
  color: var(--footer-text-color); 
  transition: color 0.3s ease;
}


.footer-right a:hover i {
  color: var(--hover-color);
}


.footer-left .footer-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
}



/* ===========================
   Página WordPress - Estilos
============================= */
.intro-image {
  max-width: 90%;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out;
  margin-top: 2rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Sección beneficios */

.wp-benefits .card {
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.wp-benefits .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}



/* Iconos: mantener color por defecto (heredado del tema) */
.wp-benefits .card i {
  color: var(--link-color); /* Elimina los colores como text-primary, etc. */
}

/* Sección proceso */
/* Estado inicial oculto para animar al hacer scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Estado al hacerse visible */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos de timeline sin animaciones CSS por defecto */
.timeline-modern {
  position: relative;
  padding-left: 50px;
  border-left: 3px solid var(--button-bg);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1rem;
}

.timeline-item .timeline-icon {
  position: absolute;
  left: -25px;
  top: 0;
  background-color: var(--button-bg);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-item .timeline-content {
  position: relative;
  z-index: 1;
  margin-left: 1rem;
}

.timeline-item .timeline-content h5 {
  margin-bottom: 0.5rem;
}

.timeline-item .timeline-content p {
  margin: 0;
  color: var(--text-color);
}


/* CTA Final */
.cta-section {
  color: var(--text-color);
  padding: 5rem 2rem;
  text-align: center;
}

/* Título */
.cta-section h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

/* Descripción */
.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Botón */
.cta-section .button {
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 1rem 2.5rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-section a.button:hover {
  transform: translateY(2px);
  background-color: var(--hover-color);
  color: var(--button-bg);
}



/* ===========================
   Página personalizado - Estilos
============================= */


/* ===========================
   Página Tienda Online - Estilos
============================= */

.intro-image {
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}


.process-step {
  background-color: #fff7f3;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--button-bg);
  margin-bottom: 0.5rem;
}

.step-icon {
  color: var(--button-bg);
}


/* ===========================
   Página Mantenimiento - Estilos
============================= */

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.plan-basic {
  text-align: center;
  border-top: 20px solid #b0b5af;
}
.plan-pro {
  text-align: center;
  border-top: 20px solid #d77a61;
}
.plan-advanced {
  text-align: center;
  border-top: 20px solid #f4c9b5;
}

.card-body {
  padding: 2rem;
}

.card-body ul {
  padding-left: 0;
  margin-top: 1rem;
}

.card-body h5 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-body ul li {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-body ul li::first-letter {
  margin-right: 0.4rem;
}

.card-body ul li del {
  color: #aaa;
  opacity: 0.7;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
  transform-origin: center center;
  z-index: 0;
}

.card:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 5;
  cursor:default;
}

.intro-image-wrapper {
  width: 100%;               /* Ocupa todo el ancho del contenedor */
  max-width: none;           /* Sin límite superior de ancho */
  height: 250px;             /* Altura fija para banner */
  overflow: hidden;          /* Recorta lo que sobre */
  border-radius: 0.5rem;     /* Bordes suaves */
  margin: 0 auto 1.5rem auto;/* Centra horizontalmente y separa del contenido */
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1); /* Sombra ligera */
}

.intro-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Recorta y rellena el contenedor */
  object-position: center;   /* Centra la imagen hacia abajo */
  display: block;
}



/* ===========================
   Formulario.html
============================= */


form {
  max-width: 600px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 2rem;
  border: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
select,
textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

button {
  padding: 0.7rem 1.5rem;
  margin: 0.5rem;
  border: none;
  border-radius: 4px;
  background-color: var(--button-bg);
  color: var(--button-text);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: solid;
}

button[type="reset"] {
  background-color: #bbb;
}

button:hover {
  opacity: 0.9;
  background-color: var(--hover-color);
}


/* Botón de WhatsApp flotante */
.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 99;
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
}

.whatsapp-fixed:hover {
    background-color: #1da851;
    transform: scale(1.1);
    color: white;
}




/* Navbar responsive para móviles */
@media (max-width: 992px) {
  .navbar-collapse {
    text-align: right; /* Alinear contenido dentro del menú */
  }

  .navbar-nav {
    align-items: flex-end;
  }

  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link {
    display: block;
    width: 100%;
    text-align: right; /* Alinear texto completamente a la derecha */
    padding-right: 1rem;
  }

  .navbar-toggler {
    border: none;
  }

  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }

  /* Forzar que el menú se abra hacia la izquierda */
  .nav-item.dropdown.flex-right .dropdown-menu {
    left: auto !important;
    right: 100% !important;       /* lo abre hacia la izquierda del botón */
    transform: translateX(-0.5rem) !important; /* pequeño ajuste visual */
  }


}


