/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
    :root {
    /* Colors - Light Mode Limpio (Tech) */
    --bg-color: #fafafa; /* Blanco muy suave casi puro */
    --bg-secondary: #ffffff; /* Blanco puro para tarjetas/secciones */
    --text-primary: #111827; /* Gris muy oscuro, casi negro */
    --text-secondary: #6b7280; /* Gris medio limpio */
    
    /* Brand Colors - Azul Real & Cian/Teal Corporativo */
    --accent-cyan: #0156b1; /* Azul Real Corporativo */
    --accent-cyan-hover: #004494; /* Azul Real más oscuro */
    --accent-purple: #01a8a1; /* Cian/Teal Corporativo */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(1, 86, 177, 0.3) 0%, rgba(1, 168, 161, 0.3) 100%);
    
    /* Glassmorphism - Adaptado para modo claro limpio */
    --glass-bg: rgba(255, 255, 255, 0.95); /* Blanco cristalino */
    --glass-border: rgba(0, 0, 0, 0.08); /* Borde suave */
    
    /* Other */
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 800;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: #fff;
    transform: translateY(-2px);
}

.btn-icon {
    padding: 0.8rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #0f172a; /* Encabezado oscuro para contraste */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 76px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo-img-dark {
    height: 76px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f8fafc;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content-reverse {
    flex-direction: row-reverse;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem; /* Reducido de 4rem para más espacio */
    position: relative;
    z-index: 2;
}

.hero-text-area {
    flex: 1.2; /* Más espacio para el texto */
    max-width: 650px;
    min-width: 0; /* Previene desbordamiento en flex */
    position: relative;
    z-index: 10; /* Siempre por encima de la imagen */
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px; /* Reducido un poco para evitar que se solape */
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--glass-border);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-glow);
    filter: blur(60px);
    z-index: 1;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
}

/* Background Decorations */
.background-decorations .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.3;
}

.cyan-circle {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
}

.white-circle {
    bottom: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: #ffffff;
    opacity: 0.1 !important;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #475569; /* Gris oscuro para máxima legibilidad */
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   Workflows Section
   ========================================================================== */
.workflows {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.workflows-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.workflow-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
    border-radius: 20px;
    background: var(--bg-secondary);
}

.workflow-card.reverse {
    flex-direction: row-reverse;
}

.workflow-content {
    flex: 1;
}

.workflow-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.workflow-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.workflow-image {
    flex: 1.2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--glass-border);
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.floating-slow {
    animation: floating 6s ease-in-out infinite;
}

.floating-slow-reverse {
    animation: floating 7s ease-in-out infinite alternate-reverse;
}

@media (max-width: 768px) {
    .workflow-card, .workflow-card.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
}

/* ==========================================================================
   Floating Chat Widget
   ========================================================================== */
.floating-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6338f0; /* Morado del diseño */
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 56, 240, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-trigger:hover {
    transform: scale(1.1);
}

.floating-chat-container {
    width: 380px;
    height: 550px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transform-origin: bottom right;
    animation: chatPopUp 0.3s ease-out;
}

@keyframes chatPopUp {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.chat-header {
    background: #4114a8; /* Morado oscuro del diseño */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-avatar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-badge {
    position: relative;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.header-title {
    font-weight: 500;
    font-size: 1.05rem;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}
.close-chat-btn:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
}

.chat-message {
    display: flex;
    width: 100%;
}

.bot-message {
    justify-content: flex-start;
    gap: 10px;
}

.message-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.message-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bot-message .message-content {
    background: #f1f5f9;
    color: #1e293b;
    padding: 12px 16px;
    border-radius: 8px;
    border-top-left-radius: 2px;
    font-size: 0.95rem;
    max-width: 85%;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: #6338f0;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border-top-right-radius: 2px;
    font-size: 0.95rem;
    max-width: 85%;
}

.message-time {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 5px;
    text-align: right;
}

.user-message .message-time {
    color: #e2e8f0;
}

.floating-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 5px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #1e293b;
}

.icon-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 8px;
    transition: color 0.2s;
}

.icon-btn:hover { color: #4114a8; }

.icon-btn.recording {
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.primary-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #cbd5e1; /* Color inactivo */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.primary-btn.active {
    background: #cbd5e1; /* En el mockup el boton era gris */
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    padding: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-top: 0.2rem;
}

.contact-detail strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-detail a, .contact-detail span {
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--accent-cyan);
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.4);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.pricing-card .price {
    margin-bottom: 2rem;
}

.pricing-card .setup {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-card .plus {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin: 0 0.5rem;
}

.pricing-card .monthly {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-card .features {
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-card .features li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-card .features i {
    color: var(--accent-cyan);
}

/* Modal Checkout */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-color);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--accent-cyan);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 240, 255, 0.2);
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .demo-wrapper { flex-direction: column; }
    .demo-info { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 2.5rem; text-align: center; }
    .demo-info h2 { font-size: 1.8rem; }
    .demo-avatar { margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-list {
        position: absolute;
        top: 100px;
        left: -100%;
        width: 100%;
        background: #0f172a;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-list.active { left: 0; }
    
    .hero-content { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-content-reverse { flex-direction: column; }
    .hero-buttons { justify-content: center; }
    
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* ==========================================================================
   Compliance & Floating Elements (Fase 4)
   ========================================================================== */

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* legal link highlights */
.footer-legal-links a:hover {
    color: var(--accent-purple) !important;
}

/* Form Checkbox Compliance styling */
.checkbox-group a {
    color: var(--accent-cyan);
    text-decoration: underline;
    transition: var(--transition);
}
.checkbox-group a:hover {
    color: var(--accent-purple);
}

/* Legal Modals override/extensions */
.modal-content.glass-effect {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ==========================================================================
   Navigation Dropdowns (Header Adaptation)
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.nav-item-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

/* Dropdown Menu Styles for Desktop */
@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        background: #0f172a; /* matches header dark blue */
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 0.75rem 0;
        min-width: 230px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1001;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-item {
        display: block;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        color: #cbd5e1;
        font-weight: 500;
        transition: var(--transition);
        white-space: nowrap;
        text-align: left;
    }

    .dropdown-item:hover {
        color: #ffffff;
        background: var(--gradient-primary);
        padding-left: 1.8rem;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Responsive Dropdowns for Mobile */
@media (max-width: 768px) {
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
    .dropdown-menu {
        display: none;
        background: rgba(15, 23, 42, 0.5);
        width: 100%;
        padding: 0.5rem 0;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown-item {
        display: block;
        padding: 0.5rem 2rem;
        font-size: 0.9rem;
        color: #94a3b8;
        text-align: center;
        transition: var(--transition);
    }
    .dropdown-item:hover {
        color: #fff;
    }
}

/* ==========================================================================
   Sectores Section Layout & Styling
   ========================================================================== */
.sectores-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.sectores-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    min-height: 580px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.sectores-tabs-wrapper {
    border-right: 1px solid var(--glass-border);
    padding-right: 1.5rem;
}

.sectores-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sector-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.sector-tab i {
    font-size: 1.2rem;
    transition: var(--transition);
    width: 24px;
    text-align: center;
    color: var(--accent-cyan);
}

.sector-tab:hover {
    color: var(--accent-cyan);
    background: rgba(1, 86, 177, 0.05);
}

.sector-tab.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(1, 86, 177, 0.25);
}

.sector-tab.active i {
    color: #fff;
}

.sectores-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sector-pane {
    display: none;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    width: 100%;
    opacity: 0;
    align-items: center;
}

.sector-pane.active {
    display: grid;
    opacity: 1;
    animation: fadeInSector 0.5s ease-out forwards;
}

@keyframes fadeInSector {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-content-left {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pane-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.pane-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pane-checklist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pane-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.pane-checklist li i {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.pane-actions {
    margin-top: 0.5rem;
}

.pane-content-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pane-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustment for Sectores Container & Tabs */
@media (max-width: 992px) {
    .sectores-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        min-height: auto;
    }

    .sectores-tabs-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .sectores-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .sector-tab {
        white-space: nowrap;
        width: auto;
        padding: 0.8rem 1.2rem;
    }
    
    .sector-pane {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 1rem;
    }
    
    .pane-content-right {
        order: -1;
    }
    
    .pane-image {
        max-width: 320px;
    }
}

/* ==========================================================================
   FAQ Section Accordions
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.faq-accordion-container {
    max-width: 850px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(1, 86, 177, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
    border-color: rgba(1, 86, 177, 0.3);
    box-shadow: 0 10px 30px rgba(1, 86, 177, 0.08);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    gap: 1.5rem;
}

.faq-trigger span {
    line-height: 1.4;
}

.faq-trigger i {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.5rem;
    transition: all 0.3s ease-in-out;
}

.faq-panel p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.faq-item.active .faq-panel {
    max-height: 250px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ==========================================================================
   AI News Section
   ========================================================================== */
.news-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.2rem;
    transition: var(--transition);
    cursor: pointer;
    min-height: 260px;
    text-decoration: none !important;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(1, 168, 161, 0.3);
    box-shadow: 0 12px 30px rgba(1, 168, 161, 0.12);
}

.news-source {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(1, 168, 161, 0.1);
    border: 1px solid rgba(1, 168, 161, 0.25);
    color: #007e78;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.news-readmore {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.news-card:hover .news-readmore {
    color: var(--accent-cyan-hover);
    transform: translateX(3px);
}

.news-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    border: 1px dashed var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
}

.news-loading i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Success Stories Section (Casos de Éxito)
   ========================================================================== */
.cases-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(1, 86, 177, 0.3);
    box-shadow: 0 15px 40px rgba(1, 86, 177, 0.1);
}

.case-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(1, 86, 177, 0.08);
    border: 1px solid rgba(1, 86, 177, 0.2);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    text-transform: uppercase;
}

.case-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.case-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.case-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-metric {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.metric-num {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
    font-weight: 500;
}

.detail-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.case-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.2rem;
    margin-top: auto;
}

.case-stat {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-purple);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    max-width: 450px;
    width: calc(100% - 60px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-cyan);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 100000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: cookie-slide-in 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transition: all 0.4s ease;
}

@keyframes cookie-slide-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-banner-hide {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
}

.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-top: 0.1rem;
    animation: cookie-spin 10s linear infinite;
}

@keyframes cookie-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cookie-banner-content p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.cookie-banner-btn {
    align-self: flex-end;
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
        max-width: none;
        padding: 1.2rem;
    }
}



