/* ==========================================================================
   DISEÑO VISUAL PREMIUM - XPERTOS WEB (E-COMMERCE, AUTOMATIZACIÓN & IA)
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    /* Colores Tecnológicos */
    --primary: #6366f1;          /* Indigo */
    --primary-light: #818cf8;    /* Indigo Claro */
    --primary-dark: #4f46e5;     /* Indigo Oscuro */
    --accent: #06b6d4;           /* Cian Eléctrico */
    --accent-light: #22d3ee;     /* Cian Claro */
    --accent-orange: #f97316;    /* Naranja Neón */
    --accent-green: #25d366;     /* Verde WhatsApp */
    
    /* Neutros - Dark Mode */
    --bg-deep: #090d16;          /* Fondo base ultra oscuro */
    --bg-dark: #0f172a;          /* Fondo secundario */
    --bg-card: rgba(30, 41, 59, 0.7); /* Gris azulado translúcido */
    --bg-light: #1e293b;         /* Gris azulado para bordes y detalles */
    --text-dark: #f8fafc;        /* Blanco tiza para títulos */
    --text-muted: #94a3b8;       /* Gris apagado para descripciones */
    --text-light: #cbd5e1;       /* Gris medio para navegación y párrafos */
    
    /* Tipografías */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Medidas y Bordes */
    --topbar-height: 40px;
    --header-height: 90px;
    --header-height-shrink: 75px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(6, 182, 212, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 20px 35px -5px rgba(6, 182, 212, 0.25);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Estilos Base y Reseteo
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height-shrink) + var(--topbar-height));
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-deep);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Contenedor estándar */
.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Secciones generales */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-deep);
}

.section-white {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Cabeceras de sección */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

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

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary) 100%);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Header y Barra de Navegación
   ========================================================================== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Top Bar de Información */
.header-topbar {
    height: var(--topbar-height);
    background-color: var(--bg-deep);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info {
    display: flex;
    gap: 1.5rem;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-item i {
    color: var(--accent);
}

.topbar-item a:hover {
    color: var(--text-dark);
}

.topbar-actions {
    display: flex;
    gap: 1.5rem;
}

.topbar-action-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.topbar-action-link i {
    color: var(--accent);
}

.topbar-action-link:hover {
    color: var(--text-dark);
}

/* 2. Main Header (Sticky & Shrink) */
.main-header {
    width: 100%;
    height: var(--header-height);
    background-color: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado al hacer scroll: header compacto */
.header-wrapper.shrink {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-wrapper.shrink .main-header {
    height: var(--header-height-shrink);
    background-color: rgba(9, 13, 22, 0.96);
    border-bottom: 2px solid var(--accent);
}

/* Ocultar barra superior en scroll */
.header-wrapper.shrink .header-topbar {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.header-container {
    height: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: var(--transition);
}

.logo-area img {
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.header-wrapper.shrink .header-logo,
.header-wrapper.shrink .logo-area img {
    height: 46px !important;
    max-height: 46px !important;
}

/* Menú de Navegación */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    padding: 0.6rem 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:not(.btn-nav):hover {
    color: var(--text-dark);
}

.nav-link:not(.btn-nav):hover::after,
.nav-link.active:not(.btn-nav)::after {
    width: 100%;
}

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

/* Botón especial en menú */
.btn-nav {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary) 100%);
    color: var(--text-dark) !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.btn-nav.active {
    background: var(--accent);
}

/* Botón menú móvil (hamburguesa) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Animaciones del botón móvil */
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ajuste margen para compensar el header */
body {
    padding-top: calc(var(--header-height) + var(--topbar-height));
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 80vh;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
                var(--bg-deep);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content-centered {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(249, 115, 22, 0.15);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Sección Servicios (Cards)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--bg-deep);
    transform: scale(1.1) rotate(-3deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.service-card .card-link i {
    transition: var(--transition);
}

.service-card:hover .card-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   Sección Nosotros & Estadísticas
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-full {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    background: var(--bg-light);
}

.about-visual:hover .about-img-full {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   Sección Integraciones / Clientes
   ========================================================================== */
.clients-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.clients-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.client-logo-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.client-logo-item img {
    max-height: 45px;
    width: auto;
    filter: grayscale(1) brightness(0.8);
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: scale(1.05);
}

.client-logo-item:hover img {
    filter: grayscale(0) brightness(1.2);
    opacity: 1;
}

/* ==========================================================================
   Páginas Internas - Cabeceras
   ========================================================================== */
.page-hero {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.page-hero .page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Características e Iconos (Internas)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.feature-box-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Planes y Precios (Pricing)
   ========================================================================== */
.pricing-block {
    margin-top: 4rem;
}

.pricing-block-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.pricing-block-header h3 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.pricing-block-header h3 i {
    color: var(--accent);
}

.pricing-block-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.single-card-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(30, 41, 59, 0.7) 100%);
    box-shadow: var(--shadow-md);
}

.price-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--accent-orange);
    color: var(--bg-deep);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.price-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.price-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.price-val span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-features {
    margin-bottom: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.price-features li {
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.price-features i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.price-feature-highlight {
    font-weight: 700;
    color: var(--text-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Sección de Contacto y Formulario
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-image-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.contact-image {
    width: 100%;
    height: auto;
    display: block;
    background: var(--bg-light);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}

.btn-whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--accent-green);
    color: var(--bg-deep);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Estructura Formulario */
.form-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-container p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

select.form-control option {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.form-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 0.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-btn-area {
    margin-top: 1rem;
}

.form-btn-area button {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.footer-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 4rem;
}

.footer-col h3.footer-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    position: relative;
}

.footer-col h3.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.brand-col .footer-logo-area {
    margin-bottom: 1.5rem;
}

.brand-col .footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.links-col .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-col .footer-links a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links-col .footer-links a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.contact-col .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
}

.contact-col .footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-col .footer-contact-info i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.contact-col .footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    color: var(--bg-deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.accreditation-col .accreditations-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.85rem;
}

.accreditation-col .accreditations-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.accreditation-col .accreditations-list i {
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

/* Banner Subvención */
.footer-subvencion {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem 0;
}

.subvencion-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.subvencion-container i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Bottom Footer */
.footer-bottom {
    background-color: #05070e;
    padding: 2.5rem 0;
    font-size: 0.85rem;
}

.footer-bottom-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Animaciones e Intersection Observer
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media (max-width: 1024px) {
    .header-topbar {
        display: none; /* Simplificamos móvil */
    }
    body {
        padding-top: var(--header-height);
    }
    .hero-title {
        font-size: 3rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-dark);
        border-left: 1px solid rgba(255,255,255,0.05);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        padding: 6rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
    }
    
    .btn-nav {
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-text {
        font-size: 1.05rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   MÓDULO DE BLOG / NOTICIAS (Estética Dark Tech)
   ========================================================================== */
.subpage-hero {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%), var(--bg-dark);
    color: var(--text-dark);
    padding: calc(var(--header-height) + var(--topbar-height) + 4rem) 0 4rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--accent);
    margin-top: calc(-1 * (var(--header-height) + var(--topbar-height))); /* Compensa el padding del body */
}

.subpage-hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subpage-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.news-section {
    padding: 6rem 0;
    background-color: var(--bg-deep);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.news-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: var(--transition);
    opacity: 0.5;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(6, 182, 212, 0.2);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
    background-color: var(--bg-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.news-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-thumb {
    transform: scale(1.05);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(6, 182, 212, 0.15);
    font-size: 3rem;
    background: radial-gradient(circle, var(--bg-dark) 0%, var(--bg-deep) 100%);
}

.news-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-meta i {
    color: var(--accent);
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-card-title a {
    color: inherit;
}

.news-card-title a:hover {
    color: var(--accent);
}

.news-card-summary {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.news-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-link i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-link {
    color: var(--primary-light);
}

.news-card:hover .news-card-link i {
    transform: translateX(4px);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    color: var(--text-light);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.pagination-item:hover:not(.active):not(.disabled) {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--accent);
}

.pagination-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--bg-deep);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.pagination-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.01);
}

/* Vista Detalle Artículo */
.post-detail-section {
    padding: 4rem 0 6rem;
    background-color: var(--bg-deep);
}

.post-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.post-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.post-back-btn:hover {
    transform: translateX(-4px);
    color: var(--primary-light);
}

.post-detail-header {
    margin-bottom: 2.5rem;
}

.post-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-card);
    color: var(--accent-orange);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-detail-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.post-detail-summary {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-light);
    border-left: 4px solid var(--accent-orange);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.post-detail-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto 3.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light) !important;
}

.post-content p,
.post-content span,
.post-content li {
    color: var(--text-light) !important;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.post-content strong {
    color: var(--text-dark) !important;
}

.post-content a {
    color: var(--accent) !important;
}

.post-content a:hover {
    color: var(--accent-light) !important;
}

.post-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.post-content p:empty,
.post-content p:has(> br:only-child) {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 0.5;
}

.post-content h2, 
.post-content h3 {
    color: var(--text-dark);
    margin: 2.5rem 0 1.25rem;
    font-family: var(--font-heading);
}

.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.4rem;
}

.post-content blockquote {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--text-dark);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.post-content ul, 
.post-content ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .subpage-hero {
        margin-top: calc(-1 * (var(--header-height) + var(--topbar-height)));
    }
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: calc(var(--header-height) + var(--topbar-height) + 2rem) 0 3rem;
        margin-top: calc(-1 * (var(--header-height) + var(--topbar-height)));
    }
    
    .subpage-hero-title {
        font-size: 2.25rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-detail-title {
        font-size: 2.2rem;
    }
    
    .post-detail-summary {
        font-size: 1.05rem;
        padding-left: 1rem;
    }
    
    .post-content {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS REDISEÑO UX (PLANTILLA BERATUNG - MODO OSCURO)
   ========================================================================== */

/* 1. Hero Grid Split (2 Columnas Asimétricas) */
.hero-grid-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero-content-left {
    animation: fadeInLeft 1s ease-out;
}

.hero-content-left .hero-tag {
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-content-left .hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.hero-content-left .hero-title span {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content-left .hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-content-left .hero-btns {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-start;
}

.hero-visual-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.hero-visual-right img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.hero-visual-right::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    z-index: -1;
}

/* 2. Sección Beneficios e Integración de Video */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-content-left h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.benefits-list-custom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-list-custom li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefits-list-custom .benefit-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.benefits-list-custom .benefit-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.benefits-list-custom .benefit-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Video Block */
.video-card-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.video-card-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card-wrapper:hover img {
    transform: scale(1.05);
}

.video-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0) 50%, rgba(9, 13, 22, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pulse-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    animation: playGlowPulse 2s infinite;
}

.video-card-wrapper:hover .play-pulse-btn {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
}

@keyframes playGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* Modal de Vídeo */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-modal-close:hover {
    color: var(--accent);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 3. Grid de Especialidades (Nuestra Experiencia) */
.expertise-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card-v3 {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: var(--transition);
}

.expertise-card-v3:hover::before {
    opacity: 1;
}

.expertise-card-v3:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: var(--shadow-glow);
}

.expertise-card-v3 .exp-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.expertise-card-v3 h4 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.expertise-card-v3 p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.expertise-card-v3 .card-cta-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.expertise-card-v3:hover .card-cta-link {
    color: var(--primary-light);
}

.expertise-card-v3 .card-cta-link i {
    transition: var(--transition);
}

.expertise-card-v3:hover .card-cta-link i {
    transform: translateX(5px);
}

/* Tarjeta CTA de la Grilla */
.expertise-card-v3.cta-glow-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(6, 182, 212, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.expertise-card-v3.cta-glow-card h4 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--text-dark) 30%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.expertise-card-v3.cta-glow-card p {
    color: var(--text-light);
}

.expertise-card-v3.cta-glow-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

/* 4. Sección Split "Escala y Optimiza" */
.split-layout-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.split-visual-left {
    position: relative;
}

.split-visual-left img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.split-visual-left::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm) 0 0 0;
    pointer-events: none;
}

.split-content-right h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.split-content-right p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* 5. Sección "Nuestros Valores" (Cuadrícula 3x2) */
.values-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card-v3 {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.value-card-v3:hover {
    background: var(--bg-card);
    border-color: rgba(6, 182, 212, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.value-card-v3 h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-card-v3 h4 i {
    color: var(--accent);
    font-size: 1.1rem;
}

.value-card-v3 p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 6. Sección Casos de Éxito (Tarjetas Premium Lado a Lado) */
.cases-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-card-v3 {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.case-card-v3:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.case-img-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}

.case-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card-v3:hover .case-img-wrapper img {
    transform: scale(1.04);
}

.case-category-tag {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: var(--bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.case-info-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-info-content h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-info-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.case-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-card-v3:hover .case-read-more {
    color: var(--primary-light);
}

.case-read-more i {
    transition: var(--transition);
}

.case-card-v3:hover .case-read-more i {
    transform: translateX(5px);
}

/* 7. Asymmetric Blog Grid (Qué estamos pensando) */
.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.blog-section-header .section-header-left {
    max-width: 600px;
}

.blog-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.asymmetric-blog-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

/* Tarjeta Destacada Grande */
.blog-card-large {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-large:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: var(--shadow-glow);
}

.blog-large-img {
    width: 100%;
    height: 340px;
    overflow: hidden;
}

.blog-large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card-large:hover .blog-large-img img {
    transform: scale(1.03);
}

.blog-large-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-row {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-meta-row .blog-cat {
    color: var(--accent);
}

.blog-large-content h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.blog-large-content h3 a:hover {
    color: var(--accent);
}

.blog-large-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Pila de Tarjetas Pequeñas a la Derecha */
.blog-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-between;
}

.blog-card-small {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: grid;
    grid-template-columns: 180px 1fr;
    height: calc(50% - 1rem);
}

.blog-card-small:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: var(--shadow-sm);
}

.blog-small-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card-small:hover .blog-small-img img {
    transform: scale(1.05);
}

.blog-small-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-small-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.5rem;
    line-height: 1.35;
}

.blog-small-content h4 a:hover {
    color: var(--accent);
}

/* 8. Ready to Achieve Goals Banner */
.ready-banner-v3 {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(9, 13, 22, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 5rem 4rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.ready-banner-v3 h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.ready-cards-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
}

.ready-action-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.ready-action-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(6, 182, 212, 0.25);
    transform: translateY(-3px);
}

.ready-card-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.ready-card-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* 9. Newsletter Section (Stay Ahead) */
.newsletter-section-v3 {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 5rem 0;
}

.newsletter-grid-v3 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.newsletter-form-wrapper {
    position: relative;
}

.newsletter-form-v3 {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form-v3 input[type="email"] {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-form-v3 input[type="email"]:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.newsletter-form-v3 .btn-submit-v3 {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary) 100%);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form-v3 .btn-submit-v3:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* ==========================================================================
   ANIMACIONES Y RESPONSIVE ADICIONAL
   ========================================================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries Responsivas */
@media (max-width: 1024px) {
    .hero-grid-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content-left .hero-btns {
        justify-content: center;
    }
    
    .hero-content-left .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual-right img {
        max-height: 380px;
    }
    
    .benefits-grid,
    .split-layout-section,
    .newsletter-grid-v3 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .split-visual-left img {
        height: 360px;
    }
    
    .expertise-custom-grid,
    .values-custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .asymmetric-blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-cards-stack {
        gap: 1.5rem;
    }
    
    .blog-card-small {
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero-content-left .hero-title {
        font-size: 2.8rem;
    }
    
    .expertise-custom-grid,
    .values-custom-grid,
    .cases-grid-v3,
    .ready-cards-split {
        grid-template-columns: 1fr;
    }
    
    .ready-banner-v3 {
        padding: 3rem 2rem;
    }
    
    .ready-banner-v3 h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .ready-action-card {
        padding: 2.5rem 2rem;
    }
    
    .blog-card-small {
        grid-template-columns: 1fr;
    }
    
    .blog-small-img {
        height: 180px;
    }
    
    .newsletter-form-v3 {
        flex-direction: column;
    }
    
    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
}

/* ==========================================================================
   ESTILOS DE PÁGINAS SECUNDARIAS (UX SUBPLANTILLA BERATUNG)
   ========================================================================== */

/* 1. Hero de Subpágina Premium (Con Imagen y Overlay) */
.subpage-hero-premium {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 500px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.subpage-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.82) 100%);
    z-index: 1;
}

.subpage-hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.subpage-hero-premium .container {
    position: relative;
    z-index: 3;
}

.subpage-hero-content {
    max-width: 900px;
}

.subpage-hero-content .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.subpage-hero-content .breadcrumb a:hover {
    color: var(--accent-light);
}

.subpage-hero-content h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.subpage-hero-desc {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--accent);
    padding-left: 2rem;
    max-width: 780px;
}

/* 2. Grid 2x2 de Enfoque */
.subpage-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.focus-card-v3 {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    transition: var(--transition);
}

.focus-card-v3:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: var(--shadow-sm);
}

.focus-card-v3 h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.focus-card-v3 h4 i {
    color: var(--accent);
    font-size: 1.15rem;
}

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

/* 3. Split Asimétrico de Metodología y Estadísticas */
.subpage-stats-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.how-we-help-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.how-we-help-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.how-we-help-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.how-we-help-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.how-we-help-list li i {
    width: 24px;
    height: 24px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.how-we-help-list li span {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Panel de contadores */
.subpage-stats-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(9, 13, 22, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-counter-large {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-counter-large .stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
}

.stat-counter-large .stat-desc {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* 4. Grid de Competencias (Asimétrico 3 Columnas) */
.competence-custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.competence-card-v3 {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.competence-card-v3:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: var(--shadow-sm);
}

.competence-card-v3 .comp-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.competence-card-v3 h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.competence-card-v3 p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.competence-card-v3.cta-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(249, 115, 22, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.competence-card-v3.cta-card h4 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark) 40%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.competence-card-v3.cta-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* 5. Barra de Acción Inferior */
.bottom-action-bar-v3 {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(9, 13, 22, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6rem;
    box-shadow: var(--shadow-sm);
}

.bottom-bar-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.bottom-bar-info p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.bottom-bar-info a {
    color: var(--accent-light);
    font-weight: 700;
}

.bottom-bar-info a:hover {
    color: var(--accent);
}

/* Media Queries Subpáginas */
@media (max-width: 1024px) {
    .subpage-hero-content h1 {
        font-size: 3rem;
    }
    
    .subpage-hero-desc {
        font-size: 1.05rem;
        padding-left: 1.5rem;
    }
    
    .subpage-intro-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subpage-intro-right-content p {
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-left: 0;
        padding-top: 1.5rem;
    }
    
    .subpage-focus-grid,
    .competence-custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subpage-stats-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .bottom-action-bar-v3 {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .subpage-hero-premium {
        padding: 5rem 0;
        text-align: center;
        min-height: auto;
    }
    
    .subpage-hero-content .breadcrumb {
        justify-content: center;
    }
    
    .subpage-hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 2rem;
    }
    
    .subpage-intro-section {
        padding: 3.5rem 0;
    }
    
    .subpage-focus-grid,
    .competence-custom-grid {
        grid-template-columns: 1fr;
    }
    
    .subpage-stats-panel {
        padding: 2.5rem 1.5rem;
    }
}



