/* ===================================================================
   HOJA DE ESTILOS MEJORADA PARA AVÍSAME APP (Sept 2025)
   =================================================================== */

/* --- 1. VARIABLES Y RESET BÁSICO --- */
:root {
  --color-primario: #0d3b66;
  --color-secundario: #ffba08;
  --color-fondo: #f9fafb;
  --color-texto: #333;
  --color-blanco: #ffffff;
  --color-error: #e74c3c;
  --color-exito: #28a745;
  --sombra-suave: 0 4px 15px rgba(0, 0, 0, 0.08);
  --sombra-marcada: 0 5px 15px rgba(0, 0, 0, 0.2);
  --radio-borde: 12px;
  --ancho-maximo: 1200px; /* MEJORA: Variable para controlar el ancho del contenido */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html {
  -webkit-font-smoothing: antialiased; /* MEJORA: Renderizado de fuentes más suave */
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--color-texto);
  background-color: var(--color-blanco);
  overflow-x: hidden;
}

/* --- 2. ESTILOS GENERALES Y UTILIDADES --- */
h1, h2, h3 {
  color: var(--color-primario);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

.container { /* MEJORA: Clase contenedora para centrar contenido */
    width: 90%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}
section {
  padding: 5rem 0; /* MEJORA: Padding vertical para espaciado consistente */
  text-align: center;
}
.subtitulo {
  max-width: 700px;
  margin: 1rem auto 3rem auto;
  font-size: 1.1rem;
  color: #555;
}
.btn {
  font-weight: 600;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-principal {
  background-color: var(--color-secundario);
  color: var(--color-primario);
}
.btn-principal:hover {
  background-color: #fca311;
  transform: translateY(-3px);
  box-shadow: var(--sombra-marcada);
}

/* --- 3. HEADER Y NAVEGACIÓN --- */
.navbar {
  background-color: var(--color-blanco);
  padding: 1rem 5%; /* MEJORA: Padding adaptable */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent; /* Para la transición del borde */
}
.navbar-scrolled {
  box-shadow: var(--sombra-suave);
  padding: 0.75rem 5%;
  border-bottom: 1px solid #eee;
}
.navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primario);
}
.navbar .logo span { color: var(--color-secundario); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}
.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secundario);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn-nav):hover::after { width: 100%; }

.btn-nav {
  background-color: var(--color-secundario);
  color: var(--color-primario) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-nav:hover {
  background-color: #fca311;
  transform: translateY(-2px);
  box-shadow: var(--sombra-suave);
}

/* MEJORA: MENÚ HAMBURGUESA */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--color-primario);
    border-radius: 3px;
    transition: all 0.3s ease;
}
/* -------------------------- */

/* --- 4. SECCIONES DE CONTENIDO --- */
.hero { background-color: var(--color-fondo); }
.hero p {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.problemas-section, .roles-section, .how-it-works-section, .faq-section { background-color: var(--color-fondo); }
.problemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.problema-card {
    background-color: var(--color-blanco);
    padding: 2rem;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-suave);
    border-top: 4px solid var(--color-error);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.problema-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-marcada);
}
.problema-card i {
    font-size: 2.5rem;
    color: var(--color-error);
    margin-bottom: 1rem;
}
/* SECCIÓN ROLES (REDiseñada) */
.rol-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
    text-align: left;
}
.rol-feature:nth-child(even) .rol-image { order: 2; }
.rol-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-marcada);
}
.rol-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rol-content ul { list-style: none; padding: 0; }
.rol-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.rol-content ul li i {
    color: var(--color-exito);
    margin-top: 5px;
    font-size: 1.2rem;
}
/* SECCIÓN ADAPTABLE (TIPOS DE RESTAURANTE) */
.tipos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.tipo-card {
    background: linear-gradient(to right, #f4f4f4, #e9e9e9);
    padding: 2rem;
    border-radius: var(--radio-borde);
    transition: transform 0.3s ease;
}
.tipo-card:hover {
    transform: scale(1.05);
}
.tipo-card i {
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-bottom: 1rem;
}
/* SECCIÓN VENTAJAS (Usa la clase .features) */
.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  text-align: left;
}
.feature {
  background-color: var(--color-blanco);
  border-radius: var(--radio-borde);
  padding: 2.5rem 2rem;
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s ease;
}
.feature:hover { transform: translateY(-10px); }
.feature i {
  font-size: 2.5rem;
  color: var(--color-secundario);
  margin-bottom: 1rem;
}
.feature h3 { margin-bottom: 0.5rem; }
/* SECCIÓN TESTIMONIOS */
.clientes-slider {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.testimonio-card {
    background-color: var(--color-blanco);
    padding: 2rem;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-suave);
    max-width: 480px;
    flex-basis: 480px;
}
.testimonio-logo { max-height: 40px; margin-bottom: 1.5rem; }
.testimonio-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--color-secundario);
  padding-left: 1.5rem;
  text-align: left;
}
.testimonio-card p { font-weight: 600; text-align: right; }
/* SECCIÓN FAQ */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    text-align: left;
}
.faq-item details {
    background-color: var(--color-blanco);
    margin-bottom: 1rem;
    border-radius: var(--radio-borde);
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}
.faq-item details:hover { box-shadow: var(--sombra-suave); }
.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 1.1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.8rem;
    transition: transform 0.2s ease;
    color: var(--color-primario);
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item details p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    color: #555;
}
/* SECCIÓN CONTACTO */
.llamado-final {
  background-color: var(--color-primario);
  color: var(--color-blanco);
  border-radius: 20px;
  width: calc(100% - 4rem); /* MEJORA: Asegura padding en los lados */
  max-width: var(--ancho-maximo);
  margin-left: auto;
  margin-right: auto;
}
.llamado-final h2, .llamado-final p { color: var(--color-blanco); }
.form-container { max-width: 550px; margin: 2rem auto 0 auto; }
.form-container input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
.form-container .btn { width: 100%; padding: 1rem; }
.mensaje {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}
.mensaje.exito { background-color: #d1fae5; color: #065f46; }
.mensaje.error { background-color: #fee2e2; color: #991b1b; }
/* --- 5. FOOTER Y ELEMENTOS FLOTANTES --- */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  margin-top: 4rem;
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: #25D366;
  color: var(--color-blanco);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }
/* --- 6. ANIMACIONES --- */
.animate {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate.fade-up { transform: translateY(50px); }
.animate.fade-left { transform: translateX(-50px); }
.animate.fade-right { transform: translateX(50px); }
.animate.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
/* --- 7. AJUSTES RESPONSIVE --- */
@media (max-width: 992px) {
    /* MEJORA: Lógica completa del menú hamburguesa */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Empieza oculto fuera de la pantalla */
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--color-blanco);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
    }
    .nav-links.active {
        right: 0; /* Lo hace visible */
    }
    .hamburger {
        display: flex; /* Muestra el ícono de hamburguesa */
        z-index: 1001; /* Se asegura de que esté por encima del menú */
    }
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    /* ----------------------------------------------- */
    .rol-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .rol-feature:nth-child(even) .rol-image { order: 0; }
    .rol-image { text-align: center; }
}
@media (max-width: 768px) {
  section { padding: 4rem 0; } /* MEJORA: Menos padding vertical en móviles */
  .container { width: 92%; }
  .llamado-final { width: 100%; border-radius: 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
}
/* --- CSS ADICIONAL PARA NUEVAS SECCIONES --- */

/* SECCIÓN OPCIONES DE SERVIDOR */
.opciones-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch; /* Asegura que las tarjetas tengan la misma altura */
}
.opcion-card {
    background-color: var(--color-blanco);
    padding: 2.5rem 2rem;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-suave);
    text-align: left;
    border-top: 4px solid var(--color-primario);
    display: flex;
    flex-direction: column;
}
.opcion-card:last-child {
    border-top-color: var(--color-secundario);
}
.opcion-card > i {
    font-size: 3rem;
    color: var(--color-primario);
    margin-bottom: 1rem;
}
.opcion-card:last-child > i {
    color: var(--color-secundario);
}
.opcion-card h3 {
    margin-bottom: 0.5rem;
}
.opcion-card strong {
    color: #555;
    margin-bottom: 1.5rem;
}
.opcion-desc {
    flex-grow: 1; /* Empuja la lista de puntos hacia abajo */
}
.opcion-card ul {
    list-style: none;
    padding: 1.5rem 0 0 0;
    margin-top: auto; /* Alinear la lista al final */
    border-top: 1px solid #eee;
}
.opcion-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.opcion-card ul li i {
    color: var(--color-exito);
    margin-top: 5px;
}

.experiencia-section {
    background-color: var(--color-primario);
    color: var(--color-blanco);
}
.experiencia-section h2, .experiencia-section p {
    color: var(--color-blanco);
}
.experiencia-section i {
    font-size: 3rem;
    color: var(--color-secundario);
    margin-bottom: 1rem;
}
.experiencia-section p {
    max-width: 800px;
    margin: 1rem auto 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Ajuste responsive para la nueva sección de opciones */
@media (max-width: 768px) {
    .opciones-container {
        grid-template-columns: 1fr;
    }
}
.fase-uno-banner {
    background-color: var(--color-primario);
    color: #ccc;
    text-align: center;
    padding: 0.75rem 2rem;
}
.fase-uno-banner p {
    font-size: 0.9rem;
    margin: 0 auto;
}
.fase-uno-banner p strong {
    color: var(--color-secundario);
    font-weight: 700;
}
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre la imagen y el texto */
}

.logo-img {
    height: 40px; /* Ajusta este valor según el tamaño de tu logo */
    width: auto;
}