:root {
    --purple-main: #3b1c71;
    --purple-dark: #1a0a33;
    --cian: #00bcd4;
    --rosa: #e91e63;
    --verde: #4caf50;
    --naranja: #ffb300;
    --celeste: #03a9f4;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--white); color: #333; line-height: 1.6; overflow-x: hidden; }

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: var(--white); position: fixed;
    width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.logo { font-size: 1.6rem; font-weight: 800; color: var(--purple-main); display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--cian); }

.nav-links { display: flex; list-style: none; gap: 5px; }

.nav-links a { 
    text-decoration: none; 
    color: #444; 
    font-weight: 600; 
    font-size: 0.95rem; 
    padding: 10px 15px; 
    border-radius: 10px; 
    transition: all 0.3s ease;
}

.nav-links a:hover { 
    background: #f0f0f0; 
    color: var(--purple-main); 
}

/* EFECTO DE TOQUE/CLICK */
.nav-links a:active {
    background: var(--purple-main) !important;
    color: white !important;
    transform: scale(0.95);
}

.menu-btn { 
    display: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--purple-main);
    padding: 5px;
}

/* --- HERO --- */
.hero {
    height: 100vh; min-height: 700px;
    background: linear-gradient(rgba(26, 10, 51, 0.85), rgba(59, 28, 113, 0.85)), 
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1350&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; color: white; text-align: center;
    padding: 0 20px;
}
.hero-content { max-width: 900px; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: clamp(0.9rem, 4vw, 1.2rem); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 35px; color: var(--cian); font-weight: 600; }

/* --- SECCIONES GENERALES --- */
section { padding: 100px 8%; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.8rem; color: var(--purple-main); font-weight: 800; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 5px; background: var(--rosa); margin: 15px auto; border-radius: 10px; }

/* --- TABLA DIFERENCIACIÓN --- */
.diff-container { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.comparison-table th, .comparison-table td { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.comparison-table th { background: var(--purple-main); color: white; font-weight: 600; }
.comparison-table .highlight { background: #fdf0f5; color: var(--rosa); font-weight: 800; }
.comparison-table tr:last-child td { border-bottom: none; }

/* --- CTA INTERMEDIO --- */
.cta-mid { background: var(--light-bg); text-align: center; padding: 60px 8%; border-radius: 30px; margin: 40px 0; border: 2px dashed #ddd; }
.cta-mid h3 { font-size: 1.8rem; color: var(--purple-dark); margin-bottom: 15px; }

/* --- INSTITUCIONES --- */
.instituciones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; }
.inst-card { 
    background: var(--white); padding: 50px 30px; border-radius: 25px; text-align: center; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 2px solid #f0f0f0;
}
.inst-card i { font-size: 3.5rem; color: var(--rosa); margin-bottom: 20px; display: block; }
.inst-card h4 { font-size: 1.4rem; font-weight: 700; color: var(--purple-dark); }
.inst-card:hover { transform: translateY(-15px); border-color: var(--rosa); box-shadow: 0 20px 40px rgba(233, 30, 99, 0.15); }

/* --- ACERCA DE --- */
/* --- AJUSTE PARA QUE LA IMAGEN SE VEA GRANDE COMO EN LA FOTO --- */
.about-container { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; /* La izquierda es un poco más ancha que la derecha */
    gap: 50px; 
    align-items: center; 
}

.about-image img { 
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    border-radius: 40px; /* Bordes más redondeados como en la foto */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-top: 30px; 
}

.stat-item { 
    text-align: center; 
    padding: 20px 10px; 
    background: var(--white); 
    border-radius: 20px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    border: 1px solid #eee;
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-number { 
    display: block; 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #333; 
}

.stat-item p { 
    font-size: 0.85rem; 
    color: #777; 
}

.about-text { 
    font-size: 1.1rem; 
    color: #555; 
    margin-bottom: 20px; 
    text-align: justify; /* Esto justifica el texto */
    line-height: 1.6;    /* Esto le da aire entre líneas para que sea fácil de leer */
}

/* Mejora adicional para que el título también se vea alineado a la izquierda */
.about-content .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-content .section-title::after {
    margin: 15px 0; /* Mueve la rayita rosa a la izquierda en lugar de centrada */
}


/* Responsivo: En móvil se ponen uno debajo de otro */
@media (max-width: 992px) {
    .about-container { 
        grid-template-columns: 1fr; 
    }
    .about-image {
        order: -1; /* La imagen pasa arriba en móviles */
    }
}

/* --- MÓDULOS --- */
.grid-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.mod-item { background: white; border-radius: 25px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.06); transition: 0.3s; border: 1px solid #eee; }
.mod-item:hover { box-shadow: 0 20px 45px rgba(0,0,0,0.1); }
.mod-card { padding: 45px 30px; text-align: center; cursor: pointer; border-bottom: 6px solid transparent; transition: 0.3s; }
.mod-card i { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.mod-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.mod-content { max-height: 0; overflow: hidden; transition: 0.5s ease-in-out; background: #fafafa; padding: 0 30px; }
.mod-content.active { max-height: 600px; padding: 30px; border-top: 1px solid #eee; }
.mod-content li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.mod-content li i { color: var(--verde); font-size: 1.1rem; }

/* --- FAQ --- */
.faq-section { background: var(--light-bg); }
.faq-container { max-width: 850px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.faq-question { padding: 22px 30px; background: var(--white); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; transition: 0.3s; font-size: 1.1rem; }
.faq-question:hover { color: var(--rosa); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.4s ease; background: #fff; padding: 0 30px; color: #666; border-top: 0 solid #eee; }
.faq-item.active .faq-answer { max-height: 300px; padding: 25px 30px; border-top-width: 1px; }
.faq-item.active .faq-question { color: var(--rosa); background: #fffcfd; }

/* --- TESTIMONIOS --- */
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.t-card { background: var(--light-bg); padding: 50px; border-radius: 30px; position: relative; transition: 0.3s; }
.t-card i.quote { position: absolute; top: 30px; right: 40px; font-size: 3rem; color: rgba(0,0,0,0.05); }
.t-info { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.t-info img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- CTA FINAL & FOOTER --- */
.cta-final { background: linear-gradient(135deg, var(--purple-dark), var(--purple-main)); color: white; text-align: center; padding: 120px 8%; }
.cta-final h2 { font-size: 3rem; margin-bottom: 20px; font-weight: 800; }
.btn-large { 
    display: inline-block; padding: 22px 50px; background: var(--rosa); color: white; 
    border-radius: 50px; font-weight: 800; text-decoration: none; transition: 0.4s; 
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4); border: none; cursor: pointer; font-size: 1.1rem; text-transform: uppercase;
}
.btn-large:hover { transform: translateY(-8px); background: #c2185b; }

footer { background: #0a0514; color: #888; padding: 80px 8% 40px; text-align: center; }
.footer-logo { color: white; font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.footer-links a { color: #bbb; margin: 0 20px; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--cian); }

/* --- WHATSAPP FLOATING BUTTON --- */
.ws-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ws-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.ws-menu.active {
    display: flex;
    animation: slideInUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ws-item {
    background: white;
    color: #333;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: 0.3s;
}

.ws-item.ventas { border-left: 5px solid #25d366; }
.ws-item.demo { border-left: 5px solid var(--cian); }
.ws-item:hover { transform: translateX(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.ws-float { 
    background: #25d366; color: white; width: 70px; height: 70px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 38px; 
    border: none; cursor: pointer; box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4); transition: 0.4s;
}
.ws-float:hover { transform: scale(1.1) rotate(10deg); }

/* --- MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 99999;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(10px);
    overflow-y: auto; 
    align-items: flex-start;
    justify-content: center;
    padding: 40px 15px;
    -webkit-overflow-scrolling: touch; 
}

.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background-color: white; 
    margin: auto;
    border-radius: 24px;
    width: 100%; 
    max-width: 460px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    position: relative; 
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.close-modal {
    position: absolute;
    top: -15px;    
    right: -15px;   
    font-size: 26px; 
    font-weight: bold; 
    color: #ffffff !important; 
    cursor: pointer;
    z-index: 100002; 
    line-height: 1;
    transition: all 0.3s ease;
    background: var(--rosa); 
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal:hover { 
    background: #c2185b;
    transform: rotate(90deg) scale(1.1); 
}

.modal-header { 
    background: linear-gradient(135deg, var(--purple-main), #5a2da1); 
    color: white; 
    padding: 50px 25px 30px; 
    text-align: center; 
    border-radius: 24px 24px 0 0; 
}

.modal-header h3 { font-size: 1.6rem; margin-bottom: 8px; margin-top: 0; }
.modal-header p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 0; }

.modal-body { 
    padding: 30px; 
    background: #ffffff;
    border-radius: 0 0 24px 24px; 
}

.form-group { margin-bottom: 22px; text-align: left; }
.form-group label { 
    display: block; margin-bottom: 10px; font-weight: 600; 
    color: var(--purple-dark); font-size: 0.95rem; 
}
.form-group input, .form-group select { 
    width: 100%; padding: 15px; border: 2px solid #f0f0f0; 
    border-radius: 12px; font-size: 1rem; box-sizing: border-box; 
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--cian); outline: none; background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.btn-confirm { 
    width: 100%; padding: 18px; background-color: #25d366; 
    color: white; border: none; border-radius: 14px; 
    font-weight: 800; cursor: pointer; transition: 0.3s; 
    font-size: 1.05rem; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
}
.btn-confirm:hover { background-color: #128c7e; transform: translateY(-3px); }

/* --- ANIMACIONES --- */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .menu-btn { display: block; }

    /* REDISEÑO COMPLETO DEL MENÚ MÓVIL */
    .nav-links { 
        display: none; 
        flex-direction: column; 
        width: 90%;             /* No ocupa todo el ancho, queda como tarjeta */
        position: absolute; 
        top: 80px;              /* Separado del top */
        left: 5%;               /* Centrado horizontalmente */
        background: white; 
        padding: 25px; 
        border-radius: 25px;    /* Bordes muy redondeados */
        box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* Sombra pesada para profundidad */
        gap: 12px;
        border: 1px solid #eee;
    }

    .nav-links.active { 
        display: flex; 
        animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links a {
        font-size: 1.2rem;     /* Texto mucho más grande */
        text-align: left;
        padding: 18px 25px;    /* Mucho más espacio para tocar */
        background: #f8f9fa;
        border-radius: 15px;
        color: var(--purple-dark);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid transparent;
    }

    /* Pequeña flecha decorativa a la derecha de cada opción en móvil */
    .nav-links a::after {
        content: '→';
        font-size: 1.2rem;
        color: var(--cian);
        opacity: 0.5;
    }

    /* Resaltado cuando tocan en móvil */
    .nav-links a:active {
        background: var(--purple-main) !important;
        color: white !important;
        border-color: var(--purple-main);
    }

    .hero h1 { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .modal { padding: 20px 10px; }
    .close-modal { top: -10px; right: -5px; width: 35px; height: 35px; font-size: 20px; }
}

@media (max-width: 480px) {
    .ws-container { bottom: 20px; right: 20px; }
    .ws-float { width: 60px; height: 60px; font-size: 32px; }
}



.showcase-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, #fdfdfd 0%, #f4f7ff 100%);
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-top: -20px;
    margin-bottom: 50px;
}

.showcase-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Items laterales */
.showcase-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.showcase-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.showcase-icon {
    width: 50px;
    height: 50px;
    background: var(--purple-main);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.showcase-text h4 { margin-bottom: 5px; color: #333; }
.showcase-text p { font-size: 0.85rem; color: #777; margin: 0; }

/* Centro: El efecto de pulso */
.showcase-center {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
}

.main-device {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    z-index: 2;
    border: 8px solid #f0f4ff;
}

.screen-content {
    text-align: center;
}

.screen-content i {
    font-size: 5rem;
    color: var(--purple-main);
    display: block;
    margin-bottom: 15px;
}

.screen-content span {
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
}

.pulse-ring {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 2px solid var(--cian);
    border-radius: 50%;
    animation: pulse 3s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Responsivo */
@media (max-width: 992px) {
    .showcase-container { flex-direction: column; }
    .showcase-side { gap: 20px; width: 100%; }
    .pulse-ring { display: none; }
}