/**
 * Grupo SNB - Estilos Profesionales
 * Colores corporativos segun Manual Corporativo Enero 2024:
 * Azul principal (Pantone 7692 C): #0C5C8B / web #006699
 * Naranja secundario (Pantone 144 C): #FB8B04 / web #FF9900
 * Gris secundario (Pantone 424 C): #737373 / web #666666
 */

:root {
    --primary: #0C5C8B;
    --primary-dark: #004571;
    --primary-light: #006699;
    --secondary: #FB8B04;
    --secondary-dark: #DB7100;
    --secondary-light: #FF9900;
    --accent: #00609b;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #737373;
    --gray-600: #495057;
    --gray-700: #343a40;
    --text-dark: #333333;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(12, 92, 139, 0.97) 0%, rgba(0, 69, 113, 0.95) 50%, rgba(0, 102, 153, 0.92) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ===================== GENERAL ===================== */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', Calibri, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
}

a {
    transition: var(--transition-fast);
    color: var(--primary);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===================== BOTONES ===================== */
.btn {
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(12, 92, 139, 0.3);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 139, 4, 0.3);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================== NAVBAR ===================== */
.navbar {
    padding: 10px 0;
    transition: var(--transition);
    background: #fff;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    transition: var(--transition);
    height: 55px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 10px 18px !important;
    margin: 0 2px;
    border-radius: 6px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: rgba(12, 92, 139, 0.08);
}

.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:not(.dropdown-toggle):hover::after {
    width: 50%;
}

.nav-link:not(.dropdown-toggle).active::after {
    width: 70%;
    height: 3px;
}

/* Focus states para accesibilidad */
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 92, 139, 0.3);
}

.navbar .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Dropdown Productos y Servicios */
.dropdown-mega {
    position: static;
}

.dropdown-menu-productos {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--primary);
    padding: 20px 0;
    margin-top: 0;
}

.dropdown-menu-productos .dropdown-header-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 8px 8px;
    margin-bottom: 2px;
}

.dropdown-menu-productos .dropdown-item {
    padding: 5px 8px;
    font-size: 0.82rem;
    color: var(--text-dark);
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu-productos .dropdown-item:hover,
.dropdown-menu-productos .dropdown-item:focus {
    background: rgba(12, 92, 139, 0.07);
    color: var(--primary);
}

.dropdown-menu-productos .dropdown-item i {
    color: var(--gray-500);
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    transition: color 0.15s ease;
}

.dropdown-menu-productos .dropdown-item:hover i {
    color: var(--primary);
}

/* ===================== HERO ESPECTACULAR ===================== */
.hero {
    min-height: auto;
    padding: 80px 0 50px;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero), url('../img/SNB-bg.jpg') center/cover no-repeat;
    color: white;
    overflow: hidden;
}

/* Eliminado efecto radial - fondo limpio */

/* Particulas animadas del fondo hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    line-height: 1.1;
}

.hero h1 strong {
    font-weight: 800;
    color: #fff;
    display: block;
    font-size: 1.3em;
}

.hero h2 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    color: #fff;
    max-width: 500px;
}

.hero .btn {
    padding: 18px 45px;
    font-size: 1rem;
}

/* ===================== SECCIONES ===================== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Section title en fondos oscuros */
.section-title.text-white,
.bg-primary-gradient .section-title,
.bg-dark .section-title,
.text-white .section-title {
    color: #fff !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.bg-light-gradient {
    background: linear-gradient(180deg, var(--gray-100) 0%, white 100%);
}

.bg-gray {
    background: var(--gray-100);
}

/* ===================== CARDS ===================== */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-service {
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.card-service:hover {
    border-color: var(--primary);
}

.card-service .icon-box {
    width: 85px;
    height: 85px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(12, 92, 139, 0.2);
}

.card-service:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(12, 92, 139, 0.3);
}

/* Efecto hover con borde superior coloreado */
.card-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.card-service:hover::before {
    transform: scaleX(1);
}

.card-service {
    position: relative;
    overflow: hidden;
}

.card-service h5 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-service p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===================== EQUIPO ===================== */
.team-card {
    text-align: center;
    padding: 35px 25px;
}

.team-card .team-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
    transition: var(--transition);
}

.team-card:hover .team-img {
    transform: scale(1.08);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(251, 139, 4, 0.2);
}

.team-card h5 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.team-card .cargo {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===================== STATS ===================== */
.stat-box {
    text-align: center;
    padding: 35px 20px;
}

.stat-box .number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-box .label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats en fondo oscuro */
.bg-stats {
    background: var(--gradient-primary);
}

.bg-stats .stat-box .number {
    color: #fff;
}

.bg-stats .stat-box .label {
    color: rgba(255,255,255,0.8);
}

/* Garantizar texto blanco en secciones con fondo primario */
.bg-primary-gradient .stat-box .number,
.bg-primary-gradient .stat-box .label {
    color: #fff !important;
}

.bg-primary-gradient .opacity-85 {
    opacity: 0.85;
}

/* CTA Section */
.cta-section h3,
.cta-section p {
    color: #fff !important;
}

/* Secciones oscuras */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark p, .bg-dark .lead {
    color: #fff !important;
}

.bg-dark .section-title {
    color: #fff !important;
}

.bg-dark .section-title::after {
    background: var(--secondary);
}

/* ===================== TABS SERVICIOS ===================== */
.nav-pills-custom {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.nav-pills-custom::-webkit-scrollbar {
    display: none;
}

.nav-pills-custom .nav-link {
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 600;
    color: var(--text-dark) !important;
    background: var(--gray-100) !important;
    margin: 5px;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-pills-custom .nav-link.active,
.nav-pills-custom .nav-link.active:hover,
.nav-pills-custom .nav-link.active:focus {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    box-shadow: 0 5px 20px rgba(12, 92, 139, 0.3);
    border-color: transparent;
}

.nav-pills-custom .nav-link:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: #fff !important;
}

.nav-pills-custom .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(12, 92, 139, 0.3);
}

/* Animacion suave al cambiar de tab */
.tab-pane {
    animation: fadeInTab 0.4s ease;
}

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

/* ===================== OFICINAS ===================== */
.office-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.office-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.office-card h5 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.office-card .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.office-card .info-item i {
    width: 28px;
    color: var(--secondary);
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.office-card .info-item span,
.office-card .info-item a {
    color: var(--text-muted);
}

/* ===================== CONTACTO ===================== */
.contact-form {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-xl);
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(12, 92, 139, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Labels de formulario */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Validacion visual mejorada */
.form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Mensajes de exito/error */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.contact-info-box {
    background: var(--gradient-primary);
    color: white;
    border-radius: 24px;
    padding: 50px;
    height: 100%;
}

.contact-info-box h3 {
    margin-bottom: 35px;
    font-size: 1.5rem;
    color: #fff;
}

.contact-info-box .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-info-box .info-item i {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 18px;
    flex-shrink: 0;
}

/* ===================== LABORATORIO CARDS ===================== */
.lab-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: var(--transition);
}

.lab-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-5px);
}

.lab-card h5 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.lab-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lab-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}

/* ===================== PROYECTO PAYK ===================== */
.project-section {
    background: var(--gray-100);
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* ===================== PROPOSITO / VISION / COMO LO HACEMOS ===================== */
.pv-section {
    background: var(--bg-light, #f8f9fa);
}

.pv-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pv-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.pv-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.pv-card:hover .pv-card-icon {
    transform: scale(1.08);
}

.pv-card-title {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pv-card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0;
    flex-grow: 1;
}

.pv-card-accent {
    height: 4px;
    border-radius: 2px;
    margin-top: 24px;
    width: 48px;
    transition: width 0.3s ease;
}

.pv-card:hover .pv-card-accent {
    width: 80px;
}

/* ===================== CERTIFICACIONES ===================== */
.cert-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
}

.cert-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.cert-card img {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

/* ===================== FOOTER ESTILO ORIGINAL ===================== */
.pre-footer {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    text-align: center;
    padding: 25px 0;
    border-top: 3px solid var(--secondary);
}

.pre-footer a {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    padding: 10px 25px;
    border-radius: 50px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pre-footer a:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pre-footer i {
    font-size: 1.4rem;
    color: #fff;
    background: var(--secondary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer.main-footer {
    background: var(--gray-100);
    padding: 50px 0 30px;
}

.footer-logo {
    max-width: 130px;
    margin-bottom: 15px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-column h6 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-column ul li span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-300);
    padding-top: 25px;
    margin-top: 30px;
}

.footer-certs img {
    height: 45px;
    margin-left: 15px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-certs img:hover {
    opacity: 1;
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner p,
.cookie-banner span,
.cookie-banner {
    color: #fff !important;
}

.cookie-banner a {
    color: var(--secondary) !important;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #FFB347 !important;
}

/* ===================== SCROLL TO TOP ===================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 139, 4, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

/* ===================== ANIMACIONES AOS CUSTOM ===================== */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"] {
    transform: translate3d(0, 50px, 0);
}

[data-aos="zoom-in-up"] {
    transform: translate3d(0, 30px, 0) scale(0.9);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .hero {
        padding: 75px 0 45px;
    }
    .hero h1 { font-size: 3.2rem; }
    .hd-scene { height: 460px; }
    .hd-window { width: 400px; }
    .hd-notif-2 { left: -10%; }
}

@media (max-width: 992px) {
    .hero {
        padding: 70px 0 40px;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero h2 { font-size: 1.2rem; }
    .hd-scene { display: none; }
    section { padding: 70px 0; }
    .section-title { font-size: 2rem; }
    .contact-form { padding: 30px; }

    /* Menu mobile centrado */
    .navbar-collapse {
        text-align: center;
        padding: 20px 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .navbar-nav {
        align-items: center;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        display: block;
        padding: 12px 20px !important;
    }
    .navbar .ms-lg-3 {
        margin: 15px auto 0 !important;
        text-align: center;
    }

    /* Dropdown mobile */
    .dropdown-mega {
        position: relative;
    }
    .dropdown-menu-productos {
        position: static !important;
        box-shadow: none;
        border-top: 1px solid var(--gray-200);
        padding: 8px 0;
        background: var(--gray-100);
        width: auto;
    }
    .dropdown-menu-productos .row {
        flex-direction: column;
    }
    .dropdown-menu-productos .dropdown-header-title {
        padding: 8px 8px 4px;
        margin-top: 6px;
    }
    .dropdown-menu-productos .dropdown-item {
        text-align: center;
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 65px 0 35px;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero h2 { margin: 0 auto 2rem; font-size: 1.1rem; }
    .hd-scene { display: none; }
    .stat-box .number { font-size: 2.5rem; }
    .footer-column { margin-bottom: 30px; }
    .footer-certs { margin-top: 20px; }
    .footer-certs img { height: 35px; margin: 5px; }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0 30px;
    }
    .hero h1 { font-size: 1.8rem; }
    .hero h2 { font-size: 1rem; }
    .hero .btn { padding: 14px 30px; font-size: 0.85rem; }
    .hd-scene { display: none; }
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumb-light {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-light .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ===================== PAGINAS LEGALES ===================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary);
    margin-top: 45px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--text-dark);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* ===================== UTILIDADES ===================== */
/* Override Bootstrap utilities para colores corporativos */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }
.badge.bg-primary { background-color: var(--primary) !important; }
.badge.bg-secondary { background-color: var(--secondary) !important; }
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); }

/* Texto blanco dentro de bg-primary (cards, badges, etc.) */
.bg-primary,
.bg-primary h1, .bg-primary h2, .bg-primary h3,
.bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-primary p, .bg-primary span:not(.badge),
.bg-primary small, .bg-primary strong,
.bg-primary i, .bg-primary li, .bg-primary a:not(.btn),
.bg-primary .opacity-75, .bg-primary .opacity-85 {
    color: #fff !important;
}
.bg-primary-gradient {
    background: var(--gradient-primary);
}
.bg-primary-gradient,
.bg-primary-gradient h1,
.bg-primary-gradient h2,
.bg-primary-gradient h3,
.bg-primary-gradient h4,
.bg-primary-gradient h5,
.bg-primary-gradient h6,
.bg-primary-gradient p,
.bg-primary-gradient i,
.bg-primary-gradient li,
.bg-primary-gradient small,
.bg-primary-gradient a:not(.btn),
.bg-primary-gradient .lead {
    color: #fff !important;
}

/* Strong naranja en headers de paginas internas (no home) */
/* Naranja mas brillante (#FFAA33) con sombras para separar del fondo azul */
.bg-primary-gradient h1 strong,
.bg-primary-gradient p strong,
.bg-primary-gradient .lead strong {
    color: #FFAA33 !important; /* Naranja mas claro y brillante */
    font-weight: 800;
    text-shadow:
        /* Sombra oscura para separacion del fondo */
        0 2px 4px rgba(0, 0, 0, 0.4),
        /* Resplandor naranja sutil */
        0 0 30px rgba(255, 170, 51, 0.4),
        /* Contorno fino oscuro para definicion */
        1px 1px 2px rgba(0, 40, 70, 0.5),
        -1px -1px 2px rgba(0, 40, 70, 0.3);
    letter-spacing: 0.5px;
}
.bg-secondary-gradient { background: var(--gradient-secondary); }
.rounded-xl { border-radius: 24px; }
.fw-800 { font-weight: 800; }

/* Badge personalizado */
.badge-primary {
    background: var(--primary);
    color: #fff;
}

.badge-secondary {
    background: var(--secondary);
    color: #fff;
}

/* Hover links en footer oscuro */
.hover-link {
    transition: var(--transition-fast);
}
.hover-link:hover {
    color: var(--secondary) !important;
    padding-left: 5px;
}

/* ===================== HERO DASHBOARD 3D ===================== */
.hd-scene {
    position: relative;
    width: 100%;
    height: 520px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Resplandor ambiental de fondo */
.hd-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(251, 139, 4, 0.12) 0%, rgba(12, 92, 139, 0.1) 40%, transparent 70%);
    filter: blur(60px);
    animation: hdGlow 4s ease-in-out infinite;
    pointer-events: none;
}

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

/* --- Dashboard principal - 3D flotante --- */
.hd-window {
    position: relative;
    width: 460px;
    background: rgba(10, 18, 36, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        -20px 20px 60px rgba(12, 92, 139, 0.12),
        0 0 100px rgba(12, 92, 139, 0.06);
    z-index: 10;
}

.hd-window:hover {
    transform: rotateY(-3deg) rotateX(2deg) scale(1.03);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        -25px 30px 80px rgba(12, 92, 139, 0.18),
        0 0 120px rgba(251, 139, 4, 0.06);
}

/* Barra superior tipo macOS */
.hd-topbar {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hd-dots {
    display: flex;
    gap: 7px;
}

.hd-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.hd-dots span:nth-child(1) { background: #ff5f57; }
.hd-dots span:nth-child(2) { background: #ffbd2e; }
.hd-dots span:nth-child(3) { background: #28c840; }

.hd-topbar-title {
    flex: 1;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hd-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    color: #28c840;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

/* Punto pulsante de estado */
.hd-pulse-dot {
    width: 8px;
    height: 8px;
    background: #28c840;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.hd-pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #28c840;
    transform: translate(-50%, -50%);
    animation: hdPulseDot 2s ease-out infinite;
}

@keyframes hdPulseDot {
    0%   { width: 8px; height: 8px; opacity: 1; }
    100% { width: 30px; height: 30px; opacity: 0; }
}

/* Cuerpo del dashboard */
.hd-body {
    padding: 20px;
}

/* Metricas principales */
.hd-metrics {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hd-metric {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    animation: hdSlideUp 0.7s ease-out both;
}

.hd-metric:nth-child(2) {
    animation-delay: 0.15s;
}

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

.hd-metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(12, 92, 139, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4db8e8;
    font-size: 1rem;
    flex-shrink: 0;
}

.hd-metric-icon.orange {
    background: rgba(251, 139, 4, 0.2);
    color: #ffa940;
}

.hd-metric-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hd-metric-value {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hd-metric-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    white-space: nowrap;
}

.hd-metric-badge {
    font-family: 'Roboto', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    white-space: nowrap;
    margin-left: auto;
}

.hd-metric-badge.up {
    background: rgba(40, 200, 64, 0.12);
    color: #28c840;
}

/* Mini chart de barras */
.hd-chart {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    animation: hdSlideUp 0.7s ease-out 0.3s both;
}

.hd-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.hd-chart-title {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.hd-chart-period {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.hd-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 65px;
}

.hd-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(to top, rgba(12, 92, 139, 0.3) 0%, rgba(12, 92, 139, 0.6) 100%);
    border-radius: 4px 4px 0 0;
    animation: hdBarGrow 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
    transition: background 0.3s ease;
}

.hd-bar:nth-child(1) { animation-delay: 0.5s; }
.hd-bar:nth-child(2) { animation-delay: 0.6s; }
.hd-bar:nth-child(3) { animation-delay: 0.7s; }
.hd-bar:nth-child(4) { animation-delay: 0.8s; }
.hd-bar:nth-child(5) { animation-delay: 0.9s; }
.hd-bar:nth-child(6) { animation-delay: 1.0s; }
.hd-bar:nth-child(7) { animation-delay: 1.1s; }
.hd-bar:nth-child(8) { animation-delay: 1.2s; }

.hd-bar.active {
    background: linear-gradient(to top, var(--secondary) 0%, var(--secondary-light) 100%);
    box-shadow: 0 0 14px rgba(251, 139, 4, 0.35);
}

@keyframes hdBarGrow {
    from { height: 0; opacity: 0; }
    to   { height: var(--h); opacity: 1; }
}

/* Fila inferior de mini stats */
.hd-bottom {
    display: flex;
    gap: 8px;
    animation: hdSlideUp 0.7s ease-out 0.5s both;
}

.hd-mini {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.hd-mini i {
    color: #4db8e8;
    font-size: 0.85rem;
}

/* --- Efecto shimmer --- */
.hd-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: hdShimmer 5s ease-in-out infinite 2s;
    pointer-events: none;
    z-index: 20;
}

@keyframes hdShimmer {
    0%       { left: -100%; }
    40%, 100% { left: 100%; }
}

/* --- Notificaciones flotantes --- */
.hd-notif {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 18, 36, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    z-index: 25;
    animation: hdNotifSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hd-notif i {
    font-size: 1.1rem;
}

.hd-notif-1 {
    top: 6%;
    right: -12%;
    animation-delay: 1.5s;
}

.hd-notif-1 i { color: #28c840; }

.hd-notif-2 {
    bottom: 28%;
    left: -18%;
    animation-delay: 2.5s;
}

.hd-notif-2 i { color: #4db8e8; }

.hd-notif-3 {
    bottom: 6%;
    right: -8%;
    animation-delay: 3.5s;
}

.hd-notif-3 i { color: var(--secondary); }

@keyframes hdNotifSlide {
    0%   { opacity: 0; transform: translateX(40px) scale(0.92); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Particulas con div en lugar de span */
.hero-particles .particle {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: particleFloat 20s infinite;
}

.hero-particles .particle:nth-child(1) { left: 10%; width: 60px; height: 60px; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.hero-particles .particle:nth-child(3) { left: 40%; width: 25px; height: 25px; animation-delay: 4s; }
.hero-particles .particle:nth-child(4) { left: 60%; width: 50px; height: 50px; animation-delay: 0s; animation-duration: 18s; }
.hero-particles .particle:nth-child(5) { left: 70%; width: 15px; height: 15px; animation-delay: 0s; }
.hero-particles .particle:nth-child(6) { left: 80%; width: 80px; height: 80px; animation-delay: 3s; }
.hero-particles .particle:nth-child(7) { left: 30%; width: 100px; height: 100px; animation-delay: 7s; }
.hero-particles .particle:nth-child(8) { left: 90%; width: 30px; height: 30px; animation-delay: 5s; animation-duration: 25s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Min height helper */
.min-vh-75 {
    min-height: auto;
}

/* Footer certs centered */
.footer-certs {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--gray-300);
}

/* Footer social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

/* Footer title */
.footer-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer links y list */
.footer-links,
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Pre-footer phone styling */
.pre-footer-phone {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.pre-footer-phone:hover {
    color: var(--primary);
}

.pre-footer-phone i {
    font-size: 1.3rem;
    color: var(--secondary);
}

/* ===================== CLASES AUXILIARES CONTRASTE ===================== */
/* Garantizar visibilidad de texto blanco - WCAG AA mejorado */
.text-white { color: #fff !important; }
.text-white-50 { color: rgba(255,255,255,0.7) !important; } /* Mejorado de 0.5 a 0.7 */
.text-white-75 { color: rgba(255,255,255,0.85) !important; }

/* Icon box en fondos oscuros */
.bg-dark .icon-box,
.bg-primary-gradient .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards en fondos oscuros */
.bg-dark .card {
    background: rgba(255,255,255,0.08);
}

.bg-dark .card h5 {
    color: #fff;
}

.bg-dark .card p {
    color: rgba(255,255,255,0.75);
}

/* Opacidad helper */
.opacity-85 { opacity: 0.85 !important; }
.opacity-90 { opacity: 0.9 !important; }

/* ===================== FOCUS STATES GLOBALES (A11Y) ===================== */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(251, 139, 4, 0.4);
}

a:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

.form-control:focus-visible,
.form-select:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(12, 92, 139, 0.15);
}

/* ===================== LOADING STATES ===================== */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    border-top-color: #fff;
}

.btn-light.loading::after {
    border-top-color: var(--primary);
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ===================== MODAL PROMO HOME ===================== */
.promo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 30, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 16px;
}

.promo-overlay.activo {
    opacity: 1;
    visibility: visible;
}

.promo-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 680px;
    width: 100%;
    position: relative;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    transform: scale(0.9) translateY(40px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 94vh;
    overflow-y: auto;
    cursor: pointer;
}

.promo-modal::-webkit-scrollbar { width: 4px; }
.promo-modal::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

.promo-overlay.activo .promo-modal {
    transform: scale(1) translateY(0);
}

/* Barra de progreso */
.promo-timer-bar {
    height: 3px;
    background: rgba(255,255,255,0.15);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.promo-timer-bar span {
    display: block;
    height: 100%;
    background: var(--secondary);
    width: 100%;
    transform-origin: left;
    border-radius: 0 3px 3px 0;
}

/* Boton cerrar */
.promo-cerrar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    transition: all 0.2s;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.promo-cerrar:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Cabecera del modal */
.promo-header {
    background:
        linear-gradient(135deg, rgba(0, 45, 89, 0.97) 0%, rgba(12, 92, 139, 0.95) 50%, rgba(0, 69, 113, 0.97) 100%);
    padding: 36px 36px 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Patron decorativo sutil */
.promo-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 139, 4, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.promo-brand {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 14px;
    position: relative;
}

.promo-titular {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.35;
    margin-bottom: 12px;
    position: relative;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.promo-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75) !important;
    margin: 0;
    line-height: 1.55;
    position: relative;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de caracteristicas 2x2 */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6px;
    gap: 6px;
    background: var(--gray-100);
}

.promo-feat {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #fff;
    align-items: flex-start;
    border-radius: 10px;
    transition: box-shadow 0.2s;
}

.promo-feat:hover {
    box-shadow: 0 2px 12px rgba(12, 92, 139, 0.08);
}

.promo-feat i {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(12, 92, 139, 0.1) 0%, rgba(12, 92, 139, 0.05) 100%);
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-feat strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.promo-feat span {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: block;
}

/* Extras en fila */
.promo-extras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--gray-200);
}

.promo-extra {
    padding: 16px 18px;
    background: var(--gray-100);
    border-right: 1px solid var(--gray-200);
    text-align: center;
}

.promo-extra:last-child {
    border-right: none;
}

.promo-extra strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 4px;
    line-height: 1.3;
}

.promo-extra span {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: block;
}

/* CTA footer del modal */
.promo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, #006B5A 0%, #008C78 50%, #009688 100%);
    color: #fff;
    gap: 20px;
    position: relative;
}

.promo-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 100%);
    pointer-events: none;
}

.promo-cta-left {
    position: relative;
}

.promo-cta-main {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
}

.promo-cta-sub {
    font-size: 0.82rem;
    opacity: 0.8;
    font-style: italic;
}

.promo-cta-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}

.promo-cta-right a {
    color: #fff !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.promo-cta-right a:hover {
    color: #fff !important;
    transform: translateX(2px);
}

.promo-cta-right i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

/* Ocultar modal promo en mobile */
@media (max-width: 768px) {
    .promo-overlay {
        display: none !important;
    }
}

/* Responsive modal */
@media (max-width: 700px) {
    .promo-overlay {
        padding: 12px;
    }
    .promo-modal {
        max-width: 96%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .promo-header {
        padding: 24px 20px 18px;
    }
    .promo-titular {
        font-size: 1.12rem;
    }
    .promo-desc {
        font-size: 0.8rem;
    }
    .promo-feat {
        padding: 14px;
        gap: 10px;
    }
    .promo-feat i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .promo-cta {
        padding: 16px 20px;
    }
}

@media (max-width: 576px) {
    .promo-overlay {
        padding: 8px;
        align-items: flex-start;
        padding-top: 10px;
    }
    .promo-modal {
        max-width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
    }
    .promo-header {
        padding: 20px 16px 14px;
    }
    .promo-brand {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }
    .promo-titular {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .promo-desc {
        font-size: 0.76rem;
        line-height: 1.4;
    }
    .promo-grid {
        grid-template-columns: 1fr 1fr;
        padding: 4px;
        gap: 4px;
    }
    .promo-feat {
        padding: 10px;
        gap: 8px;
        border-radius: 8px;
    }
    .promo-feat i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-radius: 7px;
    }
    .promo-feat strong {
        font-size: 0.73rem;
    }
    .promo-feat span {
        font-size: 0.67rem;
        line-height: 1.35;
    }
    .promo-extras {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .promo-extra {
        padding: 10px 8px;
    }
    .promo-extra strong {
        font-size: 0.65rem;
    }
    .promo-extra span {
        font-size: 0.6rem;
    }
    .promo-cta {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px 16px;
    }
    .promo-cta-main {
        font-size: 0.95rem;
    }
    .promo-cta-sub {
        font-size: 0.75rem;
    }
    .promo-cta-right {
        align-items: center;
        font-size: 0.75rem;
    }
    .promo-cta-right span {
        font-size: 0.72rem;
    }
    .promo-cerrar {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 390px) {
    .promo-overlay {
        padding: 6px;
        padding-top: 8px;
    }
    .promo-modal {
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 12px;
    }
    .promo-header {
        padding: 16px 14px 12px;
    }
    .promo-brand {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }
    .promo-titular {
        font-size: 0.92rem;
    }
    .promo-desc {
        font-size: 0.72rem;
    }
    .promo-grid {
        grid-template-columns: 1fr;
        padding: 3px;
        gap: 3px;
    }
    .promo-feat {
        padding: 10px 12px;
        flex-direction: row;
        align-items: center;
    }
    .promo-extras {
        grid-template-columns: 1fr;
    }
    .promo-extra {
        padding: 8px 12px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .promo-extra:last-child {
        border-bottom: none;
    }
    .promo-cta {
        padding: 12px 14px;
        gap: 8px;
    }
    .promo-cta-main {
        font-size: 0.85rem;
    }
}

/* ===================== CIBERSEGURIDAD ===================== */

/* Tarjetas de intro */
.cs-intro-card {
    border-radius: 12px;
    transition: var(--transition);
}
.cs-intro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Numero del pilar */
.cs-pilar-numero {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

/* Tarjeta de servicio dentro del pilar */
.cs-servicio-card {
    border-radius: 10px;
    transition: var(--transition);
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}
.cs-servicio-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.cs-servicio-card h5 {
    font-size: 1rem;
    font-weight: 700;
}

/* Subitems dentro de servicio */
.cs-subitems {
    list-style: none;
    padding-left: 0;
}
.cs-subitems li {
    padding: 4px 0 4px 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.cs-subitems li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.7rem;
    top: 7px;
}

/* Nota inferior del pilar */
.cs-pilar-nota {
    background: rgba(12, 92, 139, 0.06);
    border-radius: 10px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Principios Security by Design */
.cs-principio-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.cs-principio-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Nota en Security by Design */
.cs-nota-design {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Responsive ciberseguridad */
@media (max-width: 768px) {
    .cs-pilar-numero {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.2rem;
        border-radius: 12px;
    }
    .cs-pilar-nota {
        font-size: 0.88rem;
        padding: 14px 18px;
    }
}

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switcher a {
    color: var(--gray-500);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.lang-switcher a:hover {
    color: var(--primary);
}

.lang-switcher a.active {
    color: var(--primary);
    background: rgba(12, 92, 139, 0.08);
}

.lang-divider {
    color: var(--gray-400);
    font-weight: 300;
}

@media (max-width: 991.98px) {
    .lang-switcher {
        padding: 10px 0;
        justify-content: center;
    }
}

