/* =========================================
   VARIABLES Y RESETEO BÁSICO
========================================= */
:root {
    --primary-red: #c93b3b;      /* Rojo principal de la marca */
    --accent-green: #5de87f;     /* Verde para llamadas a la acción */
    --text-dark: #333333;        /* Color de texto principal */
    --text-light: #ffffff;       /* Color de texto claro (para fondos oscuros) */
    --bg-light: #f8f9fa;         /* Color de fondo general claro */
    --bg-gray-section: #e9ecef;  /* Color de fondo para sección gris */
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   COMPONENTES REUTILIZABLES
========================================= */
.btn {
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.2);
}

.btn-whatsapp {
    background-color: var(--accent-green);
    color: var(--text-dark);
}

/* =========================================
   HEADER / BARRA DE NAVEGACIÓN
========================================= */
.main-header {
    padding: 25px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    background-color: #fff;
    border-radius: 60px;
    padding: 12px 20px 12px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 25px -5px rgba(0,0,0,0.1);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover:not(.btn) {
    color: var(--primary-red);
}

/* =========================================
   SECCIÓN HERO (PRINCIPAL)
========================================= */
.hero {
    background-image: url('images/wave.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
}

.hero-title strong {
    font-weight: 800;
}

.hero-images {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 580px;
    margin-top: 30px;
}

/* --- Imagen Combinada de Dispositivos --- */
.combined-devices-img {
    width: 1000px;
    max-width: 90%;
    height: auto;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.3));
}

/* --- Elementos Flotantes (Iconos) --- */
.floating-icon {
    position: absolute;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    animation: float 5s ease-in-out infinite;
}

.icon-left {
    left: -10%;
    top: 40%;
    width: 180px;
    transform: rotate(-15deg);
    --rotation: -15deg;
}

.icon-right {
    right: -10%;
    top: -15%;
    width: 280px;
    --rotation: 0deg;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation)); }
    50% { transform: translateY(-25px) rotate(var(--rotation)); }
}

/* =========================================
   SECCIÓN CARACTERÍSTICAS
========================================= */
.features {
    padding: 100px 0;
    background-color: var(--primary-red);
    position: relative;
    color: var(--text-light);
}

.features-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 60px;
}

.features-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 580px;
    justify-content: center;
}

.feature-item {
    background-color: #fff;
    border-radius: 60px;
    padding: 20px 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: default;
}

.feature-item:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.feature-icon-wrapper img {
    width: 65px;
    height: auto;
    display: block;
}

.feature-text h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
}

.feature-text h3 strong {
    font-weight: 800;
    color: var(--text-dark);
}

.waiter-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}

.waiter-photo {
    max-width: 120%;
    width: 650px;
    height: auto;
    filter: drop-shadow(-20px 10px 40px rgba(0,0,0,0.25));
    margin-right: -50px;
}

/* =========================================
   SECCIÓN CAOS OPERACIONAL
========================================= */
.operational-chaos {
    background-color: var(--bg-gray-section);
    padding: 120px 0 80px;
    text-align: center;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.chaos-content {
    max-width: 950px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 500;
    color: #d6a4a4;
    margin-bottom: 35px;
}

.section-title .text-red {
    font-weight: 800;
    color: var(--primary-red);
}

.section-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 70px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.section-description strong {
    font-weight: 700;
    color: #222;
}

.dashboard-preview {
    position: relative;
    margin-top: 40px;
}

.dashboard-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
}

/* =========================================
   SECCIÓN POS BANCARD
========================================= */
.pos-bancard {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.bancard-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.bancard-image-container {
    flex: 1;
    text-align: center;
}

.bancard-image-container img {
    max-width: 100%;
    width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.bancard-text-container {
    flex: 1;
    max-width: 550px;
}

.bancard-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.bancard-title strong {
    font-weight: 800;
    color: var(--primary-red);
}

.bancard-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* =========================================
   SECCIÓN DEMO
========================================= */
.demo {
    padding: 100px 0;
    background-color: var(--primary-red);
    color: var(--text-light);
    text-align: center;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.demo-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.demo-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 auto 50px auto;
    max-width: 700px;
    opacity: 0.9;
}

.demo-video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.demo-video-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   SECCIÓN CLIENTES
========================================= */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.clients {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.clients-container {
    max-width: 800px;
    margin: 0 auto;
}

.clients-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 20px;
    line-height: 1.3;
}

.clients-description {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 60px;
}

.logo-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    width: calc(200px * 40); 
    animation: scroll 60s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    flex-shrink: 0;
    width: 200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    max-width: 100%;
    height: 60px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-slide:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* =========================================
   SECCIÓN PREGUNTAS FRECUENTES (FAQ)
========================================= */
.faq {
    padding: 100px 0;
    background-color: var(--bg-gray-section);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 50px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-accordion details {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-accordion summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-red);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.faq-accordion details p {
    padding: 0 25px 25px 25px;
    margin: 0;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.faq-accordion details[open] summary::after {
    content: '−';
}

/* =========================================
   NUEVA SECCIÓN: CALL TO ACTION (CTA)
========================================= */
.cta {
    padding: 100px 20px;
    background-color: var(--primary-red);
    color: var(--text-light);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
}

.cta-description {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    /* Hacemos el botón más grande */
    padding: 15px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    transform: scale(1.05);
}

.cta-button:hover {
    transform: scale(1.1) translateY(-3px); /* Efecto hover mejorado */
}

/* =========================================
   NUEVO FOOTER
========================================= */
.main-footer-content {
    padding: 50px 20px;
    background-color: var(--text-dark);
    color: #aaa; /* Gris claro para los créditos */
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 45px; /* Logo más pequeño en el footer */
    opacity: 0.7;
    filter: brightness(0) invert(1) opacity(0.7); /* Truco para hacerlo blanco/gris claro */
}

.footer-credits {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===================================================================
   INICIO DE REGLAS RESPONSIVAS (MOBILE)
=================================================================== */

@media (max-width: 768px) {

    .container {
        padding: 0 20px;
    }

    /* --- Header Mobile (Logo Centrado) --- */
    .main-header {
        position: static;
        padding: 20px 0;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .header-content {
        flex-direction: row;
        justify-content: center;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }
    .logo img {
        height: 45px;
    }
    .main-nav {
        display: none;
    }

    /* --- Hero Mobile (Fondo Blanco) --- */
    .hero {
        padding-top: 60px;
        padding-bottom: 50px;
        background-image: none;
        background-color: transparent;
    }
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 50px;
        color: var(--primary-red);
    }
    .hero-images {
        height: auto;
        margin-top: 0;
        position: static;
    }
    .floating-icon {
        display: none;
    }
    .combined-devices-img {
        position: static;
        transform: none;
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0 auto;
        bottom: auto;
        left: auto;
        filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    }

    /* --- Características Mobile (Fondo Rojo) --- */
    .features {
        padding: 60px 0;
        background-color: var(--primary-red);
    }
    .features-container {
        flex-direction: column;
        gap: 0;
    }
    .features-list {
        max-width: 100%;
        gap: 20px;
    }
    .feature-item {
        padding: 15px 25px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    }
    .feature-text h3 {
        font-size: 1.2rem;
    }
    .waiter-image-container {
        display: none;
    }

    /* --- Caos Operacional Mobile --- */
    .operational-chaos {
        padding: 60px 0;
        clip-path: none;
        margin-top: 0;
    }
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .dashboard-img {
        max-width: 100%;
    }

    /* --- Bancard Mobile --- */
    .pos-bancard {
        padding: 60px 0;
    }
    .bancard-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .bancard-image-container img {
        width: 80%;
        max-width: 300px;
    }
    .bancard-title {
        font-size: 2rem;
    }
    .bancard-description {
        font-size: 1rem;
    }

    /* --- Demo Mobile --- */
    .demo {
        padding: 60px 20px;
    }
    .demo-title {
        font-size: 2rem;
    }
    .demo-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* --- Clientes Mobile --- */
    .clients {
        padding: 60px 0;
    }
    .clients-title {
        font-size: 2rem;
    }
    .clients-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .logo-carousel-wrapper {
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
    .logo-track {
        width: calc(150px * 40); 
        animation: scroll 45s linear infinite;
    }
    .logo-slide {
        width: 150px;
        padding: 0 15px;
    }
    .logo-slide img {
        height: 45px;
        opacity: 0.6;
    }

    /* --- FAQ Mobile --- */
    .faq {
        padding: 60px 20px;
    }
    .faq-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .faq-accordion summary {
        font-size: 1rem;
        padding: 15px 20px;
        line-height: 1.3;
    }
    .faq-accordion summary::after {
        font-size: 1.5rem;
        right: 20px;
    }
    .faq-accordion details p {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* --- CTA Mobile --- */
    .cta {
        padding: 60px 20px;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .cta-button {
        padding: 12px 35px;
        font-size: 1rem;
        transform: scale(1); /* Resetea el tamaño en móvil */
    }

    /* --- Footer Mobile --- */
    .main-footer-content {
        padding: 40px 20px;
    }
    .footer-logo {
        height: 40px;
    }
    .footer-credits {
        font-size: 0.85rem;
    }

} /* Fin del @media query */