/* =======================================================
   VARIABLES Y BASE
   ======================================================= */
   :root {
    --primary: #0284c7;        /* Azul Profesional */
    --primary-dark: #0369a1;
    --dark: #0f172a;           /* Azul Oscuro Casi Negro */
    --light: #f8fafc;          /* Gris muy claro */
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    
    /* Colores de los Planes */
    --plan-green: #22c55e;
    --plan-blue: #3b82f6;
    --plan-purple: #a855f7;
    --plan-orange: #f97316;
    --plan-red: #ef4444;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark); font-weight: 800; }

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

/* UTILIDADES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light); }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 40px; }
.text-white { color: var(--white) !important; }

/* BOTONES */
.btn-primary, .btn-outline, .btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary-sm { padding: 8px 16px; background-color: var(--primary); color: var(--white); }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover, .btn-primary-sm:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }

.full-width { width: 100%; }

/* --- NAVBAR EFECTO CRISTAL PREMIUM --- */

.navbar {
    position: fixed; /* Se queda arriba al hacer scroll */
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    /* Fondo blanco semi-transparente */
    background: rgba(255, 255, 255, 0.75); 
    /* El efecto mágico de vidrio esmerilado */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    /* Sombre sutil para separarlo del fondo */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* El contenedor que pone todo en una sola línea */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Cero relleno vertical aquí */
}



/* El contenedor de los enlaces */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px; /* Espacio perfecto entre los botones */
}

/* Las letras del menú */
.nav-links a {
    color: #1a1a2e; /* Color oscuro elegante */
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0077b6; /* Tu azul al pasar el mouse */
}

/* El botón de cotizar */
.btn-primary-sm {
    background-color: #0077b6; 
    color: #ffffff !important; /* Letra blanca para el botón */
    padding: 10px 24px;
    border-radius: 6px; 
    transition: background-color 0.3s ease;
}

.btn-primary-sm:hover {
    background-color: #0096c7;
}
/* =======================================================
   HERO SECTION ULTRA PREMIUM (Orbes + Typist + Glass Badge)
   ======================================================= */

   
.relative-hero {
    position: relative;
    overflow: hidden;
    background-color: #0f172a; /* Fondo oscuro tipo SaaS */
    padding: 160px 0 120px;
    text-align: center;
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* ---------------------------------------------------
   1. INSIGNIA DE AUTORIDAD (GLASS PREMIUM)
   --------------------------------------------------- */
.glass-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    perspective: 1000px; 
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(12px) saturate(180%); 
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-badge:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.2);
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.highlight-text {
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-icon {
    font-size: 1.2rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
    animation: floatingIcon 3s ease-in-out infinite;
}

.badge-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 180deg at 50% 50%,
        rgba(2, 132, 199, 0) 0deg,
        rgba(2, 132, 199, 0.15) 120deg,
        rgba(56, 189, 248, 0.05) 240deg,
        rgba(2, 132, 199, 0) 360deg
    );
    animation: borderRotate 6s linear infinite;
    z-index: 1;
}

@keyframes floatingIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes borderRotate {
    100% { transform: rotate(360deg); }
}

/* ---------------------------------------------------
   2. TEXTOS PRINCIPALES Y CURSOR DINÁMICO
   --------------------------------------------------- */
.relative-hero h1 {
    color: white;
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 110px; 
}

.relative-hero p {
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.highlight.typed-text {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 3.5rem;
    background-color: #38bdf8;
    margin-left: 8px;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
}
.cursor.typing { animation: none; opacity: 1; }

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* ---------------------------------------------------
   3. BOTONES DEL HERO
   --------------------------------------------------- */
.btn-glow { box-shadow: 0 0 25px rgba(2, 132, 199, 0.4); border: none; }
.btn-glow:hover { box-shadow: 0 0 35px rgba(2, 132, 199, 0.6); }

.glass-btn { 
    border-color: rgba(255,255,255,0.2); 
    color: white; 
    background: rgba(255,255,255,0.05); 
    backdrop-filter: blur(10px); 
}
.glass-btn:hover { 
    background: rgba(255,255,255,0.1); 
    color: white; 
    border-color: rgba(255,255,255,0.5); 
}

/* ---------------------------------------------------
   4. ORBES ANIMADOS DE FONDO
   --------------------------------------------------- */
.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); 
    opacity: 0.6;
    animation: float-orb 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.orb-1 { width: 450px; height: 450px; background: #0284c7; top: -150px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 550px; height: 550px; background: #3b82f6; bottom: -200px; right: -150px; animation-delay: -5s; }
.orb-3 { width: 350px; height: 350px; background: #8b5cf6; top: 20%; left: 30%; animation-delay: -10s; }

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(50px, 50px) scale(1.05); }
}

/* ---------------------------------------------------
   5. RESPONSIVE (MÓVILES)
   --------------------------------------------------- */
@media (max-width: 768px) {
    .relative-hero h1 { font-size: 2.2rem; min-height: 80px; }
    .cursor { height: 2rem; }
    .badge-text { font-size: 0.75rem; letter-spacing: 0.5px; }
    .badge-icon { font-size: 1rem; }
}
/* =======================================================
   PLANES / PRECIOS (DISEÑO ULTRA PREMIUM)
   ======================================================= */
.section-header { margin-bottom: 60px; text-align: center; }
.section-header h2 { font-size: 2.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 15px auto 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.pricing-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
}

/* Acentos superiores para cada tarjeta */
.card-top-accent { position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.accent-green { background: linear-gradient(90deg, #22c55e, #16a34a); }
.accent-purple { background: linear-gradient(90deg, #a855f7, #9333ea); }
.accent-orange { background: linear-gradient(90deg, #f97316, #ea580c); }

.card-header { text-align: center; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px dashed #e2e8f0; }

/* Iconos con aura brillante (Glow effect) */
.icon-wrapper {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}
.glow-green { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3); }
.glow-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }
.glow-purple { background: linear-gradient(135deg, #a855f7, #9333ea); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3); }
.glow-orange { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3); }
.glow-red { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }

/* Tipografía de Precios */
.price-container { margin: 15px 0 5px; display: flex; justify-content: center; align-items: baseline; gap: 5px; }
.price-container .currency { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); }
.price-container .price { font-size: 2.8rem; font-weight: 800; color: var(--dark); line-height: 1; letter-spacing: -1px; }
.plan-desc { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }

/* Lista de características mejorada */
.features { list-style: none; margin-bottom: 35px; flex-grow: 1; }
.features li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; color: var(--text-main); font-weight: 500; font-size: 0.95rem; }

/* El "Chulito" encapsulado */
.check-bg {
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Tarjeta Popular (Destacada de verdad) */
.popular-card { 
    border: 2px solid var(--primary); 
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15);
    transform: scale(1.05); 
    z-index: 10; 
}
.popular-card:hover { transform: scale(1.05) translateY(-10px); }
.popular-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), #0ea5e9);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 0 0 15px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

/* Tarjeta Dark Mode (Sistema a medida) */
.dark-premium-card { 
    background: linear-gradient(145deg, var(--dark) 0%, #1e293b 100%); 
    border: 1px solid rgba(255,255,255,0.1); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.dark-premium-card h3 { color: var(--white); }
.dark-premium-card .card-header { border-bottom-color: rgba(255,255,255,0.1); }
.dark-premium-card .price-container .currency { color: #94a3b8; }
.dark-premium-card .price-container .price { color: var(--white); }
.dark-premium-card .features li { color: #e2e8f0; }
.check-bg-dark { background: rgba(255,255,255,0.1); color: #38bdf8; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

/* Banner de Suscripciones */
.glass-banner {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    gap: 40px;
}
.sub-plan { flex: 1; }
.sub-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sub-header h4 { font-size: 1.3rem; margin: 0; }
.sub-header i { font-size: 1.8rem; }
.sub-price { color: var(--dark); font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: 8px;}
.sub-price span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); font-family: var(--font-body); }
.sub-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.divider { width: 1px; background: #e2e8f0; }

/* Responsive para que no se deforme en celulares */
@media (max-width: 992px) {
    .popular-card { transform: scale(1); }
    .popular-card:hover { transform: translateY(-10px); }
    .glass-banner { flex-direction: column; gap: 30px; }
    .divider { width: 100%; height: 1px; }
}
/* =======================================================
   CONTACTO
   ======================================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-text p { font-size: 1.1rem; color: var(--text-muted); }

.contact-rules {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.contact-rules h4 { margin-bottom: 10px; }
.contact-rules ul { list-style: none; }
.contact-rules li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text-main); font-weight: 500;}
.contact-rules i { color: var(--primary); font-size: 1.2rem;}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); font-size: 0.9rem;}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }

/* Alerta Formulario */
.alert.success { background: #dcfce7; color: #166534; padding: 15px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid #bbf7d0; font-weight: 600;}

/* =======================================================
   FOOTER
   ======================================================= */
footer { background: var(--dark); color: var(--white); padding: 40px 0 20px; }
footer h3 { color: var(--white); margin-bottom: 10px; font-size: 1.5rem; }
footer p { color: #94a3b8; }
footer .copyright { margin-top: 30px; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;}

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 992px) {
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-10px); }
    .subscription-banner { flex-direction: column; gap: 30px;}
    .divider { width: 100%; height: 1px; }
    .contact-container { grid-template-columns: 1fr; gap: 40px;}
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .nav-links { display: none; /* Ocultamos links en móvil por ahora */ }
    .pricing-grid { grid-template-columns: 1fr; }
}



/* =======================================================
   NUEVAS MEJORAS ULTRA-PROFESIONALES
   ======================================================= */

/* Stack Tecnológico */
.tech-stack { background-color: var(--white); padding: 40px 0; border-bottom: 1px solid #e2e8f0; }
.tech-subtitle { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 20px; }
.tech-icons { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.tech-icons i { font-size: 3rem; color: #94a3b8; transition: var(--transition); cursor: pointer; }
.tech-icons i:hover { color: var(--primary); transform: translateY(-5px); }

/* Portafolio */
.portfolio { background-color: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; margin-top: 40px; }
.portfolio-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid #e2e8f0; transition: var(--transition); }
.portfolio-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.portfolio-img { height: 200px; display: flex; align-items: center; justify-content: center; }
.bg-dark-blue { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.bg-green { background: linear-gradient(135deg, #065f46 0%, #047857 100%); }
.project-icon { font-size: 5rem; color: rgba(255,255,255,0.8); }
.portfolio-info { padding: 30px; }
.project-tag { display: inline-block; background: #e0f2fe; color: var(--primary-dark); font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase;}
.portfolio-info h3 { margin-bottom: 15px; font-size: 1.4rem; }
.portfolio-info p { color: var(--text-muted); font-size: 0.95rem; }

/* Botón WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); color: #FFF; }

/* Estilos para las imágenes del Portafolio */
.portfolio-img { 
    height: 220px; 
    width: 100%; 
    overflow: hidden; /* Evita que la imagen se salga del borde */
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen perfectamente sin deformarla */
    object-position: top; /* Enfoca la parte superior de la captura */
    transition: transform 0.5s ease;
}

/* Efecto Zoom ultra premium al pasar el mouse por toda la tarjeta */
.portfolio-card:hover .portfolio-img img {
    transform: scale(1.08);
}

/* =======================================================
   TESTIMONIOS
   ======================================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0; position: relative; transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-icon { font-size: 2.5rem; color: #e2e8f0; position: absolute; top: 20px; right: 20px; opacity: 0.5; }
.quote { font-style: italic; color: var(--text-main); margin-bottom: 20px; z-index: 1; position: relative; }
.stars { color: #f59e0b; margin-bottom: 15px; font-size: 1.2rem; }
.client-info h4 { font-size: 1.1rem; margin-bottom: 2px; }
.client-info span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase;}

/* =======================================================
   PREGUNTAS FRECUENTES (FAQ)
   ======================================================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius); margin-bottom: 15px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px; background: transparent; border: none; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--primary); }
.faq-question i { font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: var(--light); }
.faq-answer p { padding: 0 20px 20px; margin: 0; color: var(--text-main); }
/* Clase activa para Javascript */
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-item.active .faq-answer { max-height: 200px; /* Ajuste para el despliegue */ }

/* =======================================================
   AUTORIDAD LOCAL Y GLOBAL
   ======================================================= */
.local-authority { 
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%); 
    padding: 80px 0; 
    color: var(--white); 
    border-top: 4px solid var(--primary); 
}

.authority-badges { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 25px; 
    flex-wrap: wrap; 
}

.badge-dark { 
    background: rgba(255,255,255,0.05); 
    padding: 8px 18px; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #e2e8f0;
}

.badge-dark i { 
    color: var(--primary); 
    font-size: 1.2rem; 
}

.local-authority h2 { 
    color: var(--white); 
    margin-bottom: 20px; 
    font-size: 2.5rem; 
}

/* Efecto de texto con gradiente (Muy usado por Apple y agencias top) */
.text-gradient { 
    background: linear-gradient(to right, #38bdf8, #3b82f6); 
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.local-authority p { 
    color: #94a3b8; 
    font-size: 1.15rem; 
    max-width: 750px; 
    margin: 0 auto; 
    line-height: 1.8; 
}

.world-stats { 
    display: flex; 
    justify-content: center; 
    gap: 50px; 
    flex-wrap: wrap; 
    margin-top: 40px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 40px;
}

.stat-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
}

.stat-item i { 
    font-size: 2.5rem; 
    color: var(--primary); 
    transition: var(--transition);
}

.stat-item:hover i {
    transform: translateY(-5px) scale(1.1);
}

.stat-item span { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: #cbd5e1; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* =======================================================
   PANTALLA DE CARGA (PRELOADER)
   ======================================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark); /* Usa el azul oscuro de tu paleta */
    z-index: 99999; /* Para que quede por encima de TODO */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-icon {
    font-size: 4.5rem;
    color: var(--primary); /* Azul celeste de tu marca */
    animation: pulse-spin 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 3px;
    animation: pulse-fade 1.5s infinite alternate;
}

.loader-text strong {
    font-weight: 800;
}

/* Animación del Icono */
@keyframes pulse-spin {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.8) rotate(360deg); opacity: 0.6; }
}

/* Animación del Texto */
@keyframes pulse-fade {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Clase que aplicará JavaScript para ocultarlo suavemente */
.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* =======================================================
   SECCIÓN NOSOTROS (BENTO GRID APPLE STYLE)
   ======================================================= */
.about-section {
    background-color: #f8fafc; 
    padding: 100px 0;
}

.badge-blue {
    display: inline-block;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-section .section-header h2 {
    font-size: 2.8rem;
    color: var(--dark);
    line-height: 1.2;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 24px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.bento-card {
    background: white;
    border-radius: 28px;
    padding: 45px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.bento-large {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.bento-card h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.story-card p {
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2,132,199,0.04) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Firma del Fundador */
.founder-signature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
    position: relative;
    z-index: 2;
}

.avatar-placeholder {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--dark), #1e293b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.signature-info strong {
    display: block;
    color: var(--dark);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.signature-info span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Carta Oscura (Estadísticas) */
.dark-bento {
    background: linear-gradient(145deg, var(--dark) 0%, #1e293b 100%);
    color: white;
    grid-column: span 1;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.dark-bento h3 {
    color: white;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 600;
}

/* Carta del Stack Tecnológico */
.tech-card {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 35px 45px;
}

.tech-card h3 { margin-bottom: 5px; }
.tech-card p { color: #64748b; margin: 0; font-size: 1.05rem; }
.tech-info { display: flex; align-items: center; }
.tech-info .bento-icon { margin: 0 25px 0 0; }

.tech-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.tech-badge:hover {
    border-color: #cbd5e1;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tech-badge i {
    font-size: 1.4rem;
    color: var(--primary);
}

/* Diseño Responsive para móviles */
@media (max-width: 992px) {
    .about-section .section-header h2 { font-size: 2.2rem; }
    .bento-large, .tech-card, .dark-bento { grid-column: span 3; }
    .tech-card { flex-direction: column; text-align: left; gap: 30px; align-items: flex-start; }
    .stats-grid { flex-direction: row; justify-content: space-between; }
}

@media (max-width: 576px) {
    .stats-grid { flex-direction: column; gap: 20px;}
    .tech-info { flex-direction: column; text-align: center; }
    .tech-info .bento-icon { margin: 0 auto 15px; }
    .tech-card { align-items: center; }
    .tech-icons { justify-content: center; }
}



.whatsapp-float {
    position: fixed;
    bottom: 120px; /* Lo empujamos hacia arriba para darle espacio a Tidio */
    right: 20px;
    z-index: 999;
}

/* --- ESTILOS DE MARCA PREMIUM PARA PÁRAMO DIGITAL --- */

/* 1. Contenedor de la Marca (Asegura el centrado vertical) */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Un poco más de espacio profesional */
    text-decoration: none;
    padding: 15px 0; /* Respiro vertical para un look más "aireado" y limpio */
}

.logo-principal {
    height: 45px; /* Mantenemos este alto base para que la barra siga delgadita */
    width: auto;
    object-fit: contain;
    
    /* EL TRUCO DE MAGIA: */
    transform: scale(2.0); /* 1.4 significa 40% más grande. Puedes probar con 1.5 o 1.6 si lo quieres más gigante */
    transform-origin: left center; /* Muy importante: hace que el logo crezca hacia la derecha, para que no se salga de la pantalla por la izquierda */
}

.logo-principal:hover {
    transform: scale(2.0); /* Pequeño zoom al pasar el mouse */
}

/* 3. Nombre de la Agencia - ¡El Verdadero Cambio! */
.agency-name {
    /* Tipografía de Agencia de Lujo */
    font-size: 26px; /* Más grande e impactante */
    font-weight: 800; /* Extra bold para autoridad máxima */
    text-transform: uppercase;
    letter-spacing: 2px; /* Más espaciado entre letras para elegancia */
    white-space: nowrap;
    
    /* Fuente Profesional - Asegúrate de importarla en tu HTML (Poppins) */
    font-family: 'Poppins', sans-serif;

    /* --- EFECTO METÁLICO PLATINUM Y BRILLO LLAMATIVO --- */
    
    /* Texto en degradado de platino/plata */
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #f5f5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* Reemplazamos la sombra oscura por un halo/brillo platinum */
    text-shadow: 0 0 10px rgba(224, 224, 224, 0.6); /* Brillo suave color plata */
    
    /* Toque final: Brillo interior sutil */
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.1); /* Línea muy fina interior */
    
    /* Pequeño toque premium final al pasar el mouse */
    transition: text-shadow 0.3s ease;
}

.brand-container:hover .agency-name {
    text-shadow: 0 0 15px rgba(224, 224, 224, 0.8); /* Brillo más intenso al hover */
}

#inicio {
    padding-top: 200px; /* Súbele este número. Si aún lo ves pegado, ponle 180px */
    /* ... mantén los otros estilos que tengas aquí ... */
}