/* ================================
   RESET & VARIABLES
===================================*/
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #8a25b1;
    --secondary-color: #1761a0;
    --accent-color: #691c87;
    --text-color: #3a3a3a;
    --text-light: #7a7c7b;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================================
   NAVBAR
===================================*/
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(26,5,53,0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: background 0.3s;
}
.navbar.scrolled {
    background: rgba(26,5,53,0.98) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}
/* Links del nav en fondo oscuro */
.nav-link { color: rgba(255,255,255,0.85) !important; }
.nav-link:hover { color: #f0c040 !important; }
.nav-link::after { background: #f0c040; }
.logo { color: #f0c040 !important; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img { height: 40px; display: block; }

.nav-menu { display: flex; list-style: none; gap: 2rem; }

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: #f0c040; transition: all 0.3s; }

/* ================================
   BOTONES
===================================*/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--accent-color); transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--primary-color); }
.btn-secondary:hover { background: var(--bg-light); transform: translateY(-2px); }
.btn-success { background: var(--success-color); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-success:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }

/* ================================
   HERO
===================================*/
.hero {
    position: relative;
    min-height: 50vh;
    background: linear-gradient(90deg, #8a25b1 20%, #1761a0 100%);
    display: flex;
    align-items: center;
    padding: 50px 0 20px;
    overflow: hidden;
}

.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.08); }

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-text { color: #fff; }
.hero-title { font-size: 2.2rem; color: #fff; margin-bottom: 1rem; line-height: 1.25; }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.95); margin-bottom: 0.7rem; }
.hero-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; }
.hero-buttons .btn { white-space: nowrap; }
.hero-image { text-align: center; display: flex !important; align-items: center; justify-content: center; overflow: visible; }
.hero-image img { max-width: 260px; height: auto; display: inline-block; }
.hero-divider { position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; z-index: 1; }

/* ================================
   SECCIONES — padding compacto
===================================*/
section { padding: 40px 0; }

.section-title { font-size: 2.2rem; text-align: center; margin-bottom: 0.8rem; text-transform: uppercase; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 1.5rem; }
.section-divider { width: 100%; height: 60px; display: block; }
.section-divider.bottom { transform: rotate(180deg); }

/* ================================
   NOSOTROS
===================================*/
.nosotros { background: #f5f0fc; }

.nosotros-text h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--primary-color); }
.nosotros-text p { margin-bottom: 1rem; line-height: 1.6; }
.nosotros-image { text-align: center; }
.nosotros-image i { font-size: 9rem; color: var(--primary-color); opacity: 0.12; }

/* ================================
   SOLUCIONES
===================================*/
.soluciones {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding-bottom: 50px;
}

.soluciones .section-title,
.soluciones .section-subtitle { color: white; }

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.solucion-card {
    background: rgba(255,255,255,0.12);
    padding: 1.5rem;
    border-radius: 12px;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
}

.solucion-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.18); box-shadow: var(--shadow-lg); }

.solucion-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem; color: white;
}

.solucion-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; text-align: center; color: white; }
.solucion-card p { font-size: 0.9rem; line-height: 1.4; color: rgba(255,255,255,0.95); text-align: center; }

/* ================================
   EDUCACIÓN FINANCIERA
===================================*/
.educacion-section { background: #12082a; padding: 40px 0; }

.educacion-section .section-title { color: #fff; }
.educacion-section .section-subtitle { color: rgba(255,255,255,0.6); }

.video-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-tab {
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    background: transparent;
    font-family: 'Open Sans', sans-serif;
}

.video-tab.active,
.video-tab:hover {
    background: linear-gradient(135deg, #8a25b1, #1761a0);
    border-color: transparent;
    color: white;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138,37,177,0.5);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #1a0a2e;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-card:hover .video-overlay { background: rgba(0,0,0,0.1); }

.play-btn {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.play-btn i { color: #8a25b1; font-size: 1rem; margin-left: 3px; }
.video-card:hover .play-btn { transform: scale(1.15); }

.video-type-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
}

.badge-yt { background: #ff0000; color: white; }
.badge-local { background: #f0c040; color: #12082a; }

.video-info { padding: 14px; }
.video-category { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #a855c8; margin-bottom: 5px; }
.video-title { font-size: 0.88rem; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { font-size: 0.72rem; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 6px; }

/* Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.video-modal.open { display: flex; }

.modal-inner {
    background: #1a0a2e;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 840px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-header h4 { color: white; font-size: 0.9rem; font-weight: 600; font-family: 'Open Sans', sans-serif; }

.modal-close {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 6px;
    color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-video { position: relative; aspect-ratio: 16/9; background: black; }
.modal-video iframe { width: 100%; height: 100%; border: none; }

/* ================================
   CONSULTA ESTADO DE CUENTA
===================================*/
.consulta-sunat { padding: 40px 0; background: var(--bg-white); }

.consulta-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.formulario-col { width: 100%; max-width: 480px; }

.consulta-form {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.fila-inputs-combinados { display: flex; gap: 15px; width: 100%; }
.grupo-mitad { flex: 1; }
.boton-consultar { margin-top: 15px; width: 100%; }

.form-group { display: flex; flex-direction: column; margin-bottom: 0; }
.form-group label { margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.form-group label i { color: var(--primary-color); }
.form-group input, .form-group select, .form-group textarea { padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 0.95rem; background: white; outline: none; }
.form-group input:focus { border-color: var(--primary-color); }

.resultado-col { min-height: 0; }

.loading { text-align: center; padding: 1.5rem; color: var(--primary-color); }

.resultado-consulta {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.resultado-header { display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--border-color); }
.resultado-header h3 { color: var(--primary-color); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }

.btn-close { background: none; border: none; color: var(--text-light); font-size: 1.3rem; cursor: pointer; }

.fila-compacta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.fila-compacta .item { background: #f7f9fc; padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--secondary-color); }
.label { display: block; font-size: 0.72rem; font-weight: 600; color: #555; margin-bottom: 2px; text-transform: uppercase; }
.valor { font-size: 0.9rem; font-weight: 700; color: #000; }

.fila-badges { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0; }
.badge-card { background: #eef3fd; padding: 10px; border-radius: 8px; text-align: center; border-top: 3px solid #004aad; }
.badge-card.azul { border-color: #007bff; background: #eff6ff; }
.badge-card.rojo { border-color: #d32f2f; background: #fff1f2; }
.badge-label { display: block; font-size: 0.68rem; text-transform: uppercase; color: #555; margin-bottom: 3px; font-weight: 600; }
.badge-value { font-weight: 700; font-size: 0.95rem; color: #000; }
.badge-card.azul .badge-value { color: #1d4ed8; }
.badge-card.rojo .badge-value { color: #dc2626; }

.documento-acciones { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.documento-acciones .btn { flex: 1; min-width: 100px; }

/* ================================
   ALERTAS
===================================*/
.alert-error, .alert-success {
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.alert-error { background: #fee2e2; color: var(--error-color); }
.alert-success { background: #d1fae5; color: var(--success-color); }

/* ================================
   CONTACTO — columna izquierda alineada
===================================*/
.contacto { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; }
.contacto .section-title, .contacto .section-subtitle { color: white; }

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 28px;
    align-items: start;
}

.contacto-info { display: flex; flex-direction: column; gap: 12px; }

.info-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.15);
    padding: 14px 16px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    text-align: left;
}

.info-icon {
    width: 42px; height: 42px;
    min-width: 42px;
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: white;
}

.info-card-text { display: flex; flex-direction: column; min-width: 0; }
.info-card h4 { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 2px 0; font-family: 'Open Sans', sans-serif; }
.info-card p { font-size: 0.9rem; color: white; font-weight: 600; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.contact-form {
    background: rgba(255,255,255,0.15);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { color: white; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.contact-form input, .contact-form textarea { background: rgba(255,255,255,0.9); border-radius: 6px; border: none; width: 100%; padding: 10px; font-size: 0.9rem; }
.contact-form textarea { resize: vertical; min-height: 110px; }

#mensajeExito { margin-top: 1rem; }

/* ================================
   FOOTER
===================================*/
.footer { background: var(--text-color); color: white; padding: 2rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-section h4 { margin-bottom: 0.8rem; color: white; }
.footer-section p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; }
.footer-section ul { list-style: none; }
.footer-section ul li { font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-section ul li a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-section ul li a:hover { color: #f0c040; }
.footer-bottom { text-align: center; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ================================
   WHATSAPP FLOTANTE
===================================*/
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; }
.whatsapp-btn {
    width: 54px; height: 54px;
    background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: transform 0.3s; position: relative;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn .pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    background: rgba(37,211,102,0.3);
    animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse { 0% { transform:scale(1); opacity:0.8; } 100% { transform:scale(1.6); opacity:0; } }
.whatsapp-tooltip {
    position: absolute; right: 64px; top: 50%;
    transform: translateY(-50%);
    background: #12082a; color: white;
    padding: 7px 12px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 500;
    white-space: nowrap; opacity: 0;
    pointer-events: none; transition: opacity 0.3s;
}
.whatsapp-tooltip::after {
    content: ''; position: absolute; right: -6px; top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent; border-right: none; border-left-color: #12082a;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }


/* ================================
   HERO DARK — fondo púrpura animado
===================================*/
.hero-dark {
    background: #1a0535 !important;
    min-height: auto;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.hero-dark-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 75% 50%, rgba(100,20,140,0.65) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 15% 85%, rgba(30,10,80,0.8) 0%, transparent 60%),
        radial-gradient(ellipse 30% 40% at 8% 18%,  rgba(80,20,120,0.35) 0%, transparent 50%);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-particles .hp {
    position: absolute; border-radius: 50%;
    background: rgba(240,192,64,0.5);
    animation: hpFloat linear infinite;
}
.hero-particles .hp:nth-child(1) { width:4px;height:4px; top:20%;left:10%; animation-duration:9s; }
.hero-particles .hp:nth-child(2) { width:3px;height:3px; top:60%;left:5%;  animation-duration:13s; animation-delay:2s;  background:rgba(168,85,200,0.6); }
.hero-particles .hp:nth-child(3) { width:5px;height:5px; top:80%;left:30%; animation-duration:11s; animation-delay:4s;  background:rgba(255,255,255,0.4); }
.hero-particles .hp:nth-child(4) { width:3px;height:3px; top:15%;left:55%; animation-duration:8s;  animation-delay:1s; }
.hero-particles .hp:nth-child(5) { width:4px;height:4px; top:45%;left:85%; animation-duration:12s; animation-delay:3s;  background:rgba(46,134,222,0.6); }
.hero-particles .hp:nth-child(6) { width:6px;height:6px; top:70%;left:70%; animation-duration:7s;  animation-delay:5s;  background:rgba(168,85,200,0.4); }
@keyframes hpFloat { 0%{transform:translateY(0) scale(1);opacity:0.6;} 50%{opacity:1;} 100%{transform:translateY(-100px) scale(0.5);opacity:0;} }

.hero-dark .hero-content {
    position: relative; z-index: 2;
    padding-top: 90px; padding-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.hero-dark .hero-title  { color: #fff; font-size: 2.4rem; }
.hero-dark .hero-subtitle { color: rgba(255,255,255,0.8); }
.hero-highlight {
    background: linear-gradient(135deg, #f0c040, #f97316);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(240,192,64,0.15); border: 1px solid rgba(240,192,64,0.4);
    color: #f0c040; padding: 5px 14px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 18px;
}
.btn-outline {
    background: transparent; color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 10px 22px; border-radius: 6px;
    font-weight: 600; font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; transition: all 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ================================
   HERO SVG ILUSTRACIÓN ANIMADA
===================================*/
.hero-image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Wrapper del SVG animado — tamaño desktop */
.hero-svg-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
}

/* Anillos concéntricos pulsantes */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 4s ease-in-out infinite;
}
.ring-1 { width: 420px; height: 420px; border: 1px solid rgba(255,255,255,0.07);  animation-delay: 0s; }
.ring-2 { width: 320px; height: 320px; border: 1px solid rgba(240,192,64,0.18);  animation-delay: 0.7s; }
.ring-3 { width: 230px; height: 230px; border: 1px solid rgba(240,192,64,0.28);  animation-delay: 1.4s; }
@keyframes ringPulse {
    0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.04); }
}

/* Centro — escudo dorado */
.hero-svg-center {
    position: absolute;
    width: 130px; height: 130px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 40% 35%, rgba(240,192,64,0.2), rgba(138,37,177,0.45));
    border-radius: 50%;
    border: 2px solid rgba(240,192,64,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(240,192,64,0.3), 0 0 80px rgba(138,37,177,0.2);
}
.hero-svg-center svg { filter: drop-shadow(0 0 12px rgba(240,192,64,0.6)); }

/* Orbs flotantes — posicionados alrededor en desktop */
.hero-orb {
    position: absolute;
    background: rgba(40,15,70,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(240,192,64,0.35);
    border-radius: 30px;
    padding: 9px 16px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    animation: orbFloat 4s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10;
}
.hero-orb i { color: #f0c040; font-size: 0.8rem; }
.orb-1 { top: 12%;  left: -10%;  animation-delay: 0s; }
.orb-2 { bottom: 16%; right: -8%; animation-delay: 1.5s; }
.orb-3 { top: 54%;  left: -14%;  animation-delay: 0.8s; }
@keyframes orbFloat {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-10px); }
}

/* ================================
   NOSOTROS VISUAL
===================================*/
.nosotros-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
}
.nosotros-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}
.nosotros-feature-item {
    display: flex; align-items: flex-start; gap: 10px;
    background: #ede8f7; border-radius: 10px; padding: 12px 14px;
}
.nf-icon {
    width: 36px; height: 36px; min-width: 36px;
    background: linear-gradient(135deg, #7c1fa0, #1761a0);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 0.85rem;
}
.nosotros-feature-item strong { font-size: 0.82rem; color: #12082a; display: block; margin-bottom: 2px; }
.nosotros-feature-item p { font-size: 0.75rem; color: #6b6b7a; margin: 0; line-height: 1.3; }

.nosotros-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 340px;
}
.nosotros-main-card {
    background: linear-gradient(135deg, #7c1fa0 0%, #1761a0 100%);
    border-radius: 24px;
    padding: 48px 38px;
    text-align: center;
    color: white;
    box-shadow: 0 25px 60px rgba(124,31,160,0.4);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 260px;
}
.nosotros-main-card i { font-size: 3.8rem; display: block; margin-bottom: 14px; }
.nosotros-main-card h3 { color: white; font-size: 1.3rem; margin-bottom: 8px; font-weight: 700; }
.nosotros-main-card p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin: 0; }

.nosotros-stat-card {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    text-align: center;
    z-index: 3;
    animation: statFloat 5s ease-in-out infinite;
}
.stat-top    { top: 10px;  right: 0px; animation-delay: 0s; }
.stat-bottom { bottom: 10px; left: 0px; animation-delay: 2s; }
@keyframes statFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.nsc-num { font-size: 1.8rem; font-weight: 900; color: #7c1fa0; font-family: 'Montserrat', sans-serif; line-height: 1; }
.nsc-lbl { font-size: 0.68rem; color: #7a7c7b; font-weight: 600; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }

.nosotros-badge {
    display: inline-block;
    background: rgba(124,31,160,0.1);
    color: #7c1fa0;
    border: 1px solid rgba(124,31,160,0.25);
    padding: 5px 16px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 14px;
}

/* ================================
   RESPONSIVE
===================================*/

/* TABLET GRANDE 769–1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Navbar compacto */
    .nav-menu { gap: 0.7rem; }
    .nav-menu a { font-size: 0.82rem; }
    .navbar .btn-nav { font-size: 0.78rem; padding: 7px 12px; }

    /* Hero */
    .hero-dark .hero-content { padding-top: 80px; padding-bottom: 30px; }
    .hero-dark .hero-title { font-size: 1.8rem; }
    .hero-svg-wrap { width: 300px; height: 300px; }
    .ring-1 { width: 300px; height: 300px; }
    .ring-2 { width: 225px; height: 225px; }
    .ring-3 { width: 155px; height: 155px; }
    .hero-svg-center { width: 100px; height: 100px; }
    .hero-svg-center svg { width: 70px; height: 70px; }
    .orb-1 { font-size: 0.7rem; padding: 7px 11px; left: -22%; top: 10%; }
    .orb-2 { font-size: 0.7rem; padding: 7px 11px; right: -22%; bottom: 14%; }
    .orb-3 { font-size: 0.7rem; padding: 7px 11px; left: -26%; top: 52%; }

    /* Nosotros tablet — visible pero más compacta */
    .nosotros-content { grid-template-columns: 1.2fr 0.85fr; gap: 30px; }
    .nosotros-visual { padding: 25px 15px; min-height: 280px; }
    .nosotros-main-card { padding: 36px 28px; max-width: 220px; }
    .nosotros-main-card i { font-size: 3rem; }
    .stat-top { top: 5px; right: -5px; }
    .stat-bottom { bottom: 5px; left: -5px; }
    .nsc-num { font-size: 1.5rem; }
}

/* MOBILE ≤768px */
@media (max-width: 768px) {
    /* Navbar hamburguesa */
    .menu-toggle { display: flex !important; }
    .nav-menu {
        display: none !important;
        flex-direction: column;
        background: rgba(26,5,53,0.98);
        width: 100%;
        position: absolute;
        top: 60px; left: 0;
        padding: 8px 20px 16px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        z-index: 9999;
    }
    .nav-menu.active { display: flex !important; }
    .nav-menu li { padding: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu .nav-link { display: block; padding: 9px 4px; font-size: 0.9rem; }

    /* Hero genérico */
    .hero { padding: 65px 0 25px !important; min-height: auto; text-align: center; }
    .hero-content { grid-template-columns: 1fr !important; gap: 0.8rem; text-align: center; }
    .hero:not(.hero-dark) .hero-image { display: none !important; }
    .hero-title { font-size: 1.5rem !important; }
    .hero-buttons { flex-direction: row !important; justify-content: center; flex-wrap: wrap; gap: 0.6rem; }

    /* Hero dark mobile: texto arriba, SVG compacto abajo de los botones */
    .hero-dark .hero-content {
        grid-template-columns: 1fr !important;
        padding-top: 72px;
        padding-bottom: 20px;
        text-align: center;
        gap: 0.6rem;
    }
    .hero-dark .hero-title { font-size: 1.45rem !important; }
    .hero-dark .hero-subtitle { font-size: 0.88rem; }
    .hero-badge { font-size: 0.62rem; padding: 4px 10px; }
    .hero-dark .hero-buttons { justify-content: center; flex-wrap: wrap; gap: 0.6rem; }

    /* SVG: sale DESPUÉS de los botones (order: 2), centrado, sin anillos */
    .hero-dark .hero-image {
        order: 2;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 8px;
    }
    /* SVG wrap en mobile: layout flex vertical para mostrar escudo + chips */
    .hero-svg-wrap {
        position: static;
        width: auto !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    /* Ocultar anillos en móvil */
    .hero-ring { display: none !important; }
    /* Centro del escudo sin posición absoluta */
    .hero-svg-center {
        position: static !important;
        transform: none !important;
        width: 85px !important;
        height: 85px !important;
    }
    .hero-svg-center svg { width: 60px !important; height: 60px !important; }
    /* Orbs como chips en fila */
    .hero-orb {
        position: static !important;
        transform: none !important;
        animation: orbFloat 4s ease-in-out infinite !important;
        font-size: 0.68rem !important;
        padding: 6px 10px !important;
        margin: 0;
    }
    /* Fila de 3 orbs */
    .hero-svg-wrap::before {
        content: '';
        display: none;
    }

    /* Nosotros mobile: solo texto + features, sin tarjeta visual */
    .nosotros-content { grid-template-columns: 1fr !important; gap: 1.2rem; }
    .nosotros-visual {
        display: flex !important;
        justify-content: center;
        padding: 10px 0 0;
        min-height: auto;
    }
    .nosotros-main-card { max-width: 220px; padding: 28px 24px; }
    .nosotros-main-card i { font-size: 2.6rem; margin-bottom: 10px; }
    .nosotros-main-card h3 { font-size: 1.1rem; }
    .nosotros-stat-card { display: none; }
    .nosotros-features { grid-template-columns: 1fr 1fr; gap: 8px; }

    /* Resto */
    .soluciones-grid { grid-template-columns: repeat(2,1fr) !important; }
    .consulta-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .fila-inputs-combinados { flex-direction: column; gap: 10px; }
    .resultado-col { min-height: 0 !important; }
    .contacto-grid { grid-template-columns: 1fr !important; }
    .info-card p { white-space: normal; }
    .videos-grid { grid-template-columns: 1fr !important; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .fila-badges { grid-template-columns: 1fr 1fr; }
    .fila-badges .badge-card:first-child { grid-column: 1 / -1; }
}

/* MOBILE PEQUEÑO ≤480px */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-dark .hero-title { font-size: 1.25rem !important; }
    .hero-dark .hero-subtitle { font-size: 0.82rem; }
    .hero-svg-center { width: 72px !important; height: 72px !important; }
    .hero-svg-center svg { width: 50px !important; height: 50px !important; }
    .hero-orb { font-size: 0.62rem !important; padding: 5px 8px !important; }
    .btn { font-size: 0.8rem; padding: 8px 14px; }
    .soluciones-grid { grid-template-columns: 1fr !important; }
    .nosotros-features { grid-template-columns: 1fr; }
    .fila-compacta { grid-template-columns: 1fr; }
    .fila-badges { grid-template-columns: 1fr; }
    .fila-badges .badge-card:first-child { grid-column: auto; }
}

/* Orbs desktop vs mobile chips */
.hero-orbs-row { display: none; } /* Oculto en desktop */

@media (max-width: 768px) {
    /* Ocultar orbs absolutos del SVG wrap */
    .orb-desktop { display: none !important; }

    /* SVG wrap: solo el escudo centrado */
    .hero-svg-wrap {
        position: static !important;
        width: auto !important;
        height: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-ring { display: none !important; }
    .hero-svg-center {
        position: static !important;
        transform: none !important;
        width: 88px !important;
        height: 88px !important;
    }
    .hero-svg-center svg { width: 62px !important; height: 62px !important; }

    /* Chips en fila */
    .hero-orbs-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }
    .hero-orb-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(40,15,70,0.75);
        border: 1px solid rgba(240,192,64,0.35);
        border-radius: 20px;
        padding: 6px 11px;
        font-size: 0.68rem;
        color: rgba(255,255,255,0.95);
        font-weight: 600;
        animation: orbFloat 4s ease-in-out infinite;
    }
    .hero-orb-chip:nth-child(2) { animation-delay: 1.2s; }
    .hero-orb-chip:nth-child(3) { animation-delay: 2.4s; }
    .hero-orb-chip i { color: #f0c040; font-size: 0.72rem; }

    /* Nosotros: overflow hidden para que nada se salga */
    .nosotros { overflow: hidden; }
}

@media (max-width: 480px) {
    .hero-svg-center { width: 74px !important; height: 74px !important; }
    .hero-svg-center svg { width: 52px !important; height: 52px !important; }
    .hero-orb-chip { font-size: 0.62rem; padding: 5px 9px; }
}

/* Botón directo YouTube en tarjeta de video */
.yt-direct {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    background: #ff0000;
    color: white !important;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    vertical-align: middle;
    transition: background 0.2s;
}
.yt-direct:hover { background: #cc0000; }