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

html {
    overflow-y: scroll;
    scrollbar-gutter: stable; /* Recomendado junto con overflow-y */
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
   
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   2. VARIABLES CSS
   ============================================ */
:root {
    --primary: #06385f;
    --primary-light: #1a2d4a;
    --accent: #ed2c62;
    --accent-hover: color-mix(in srgb, var(--accent) 82%, black);
    --accent-light: color-mix(in srgb, var(--accent) 12%, white);
    --accent-gradient: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 68%, white) 100%);
    --blue-gradient: linear-gradient(135deg, color-mix(in srgb, var(--primary) 78%, black) 0%, var(--primary) 100%);
    --text-dark: #1a1a2e;
    --text-medium: #4a4a6a;
    --text-light: #7a7a9a;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --border: #e8e8f0;
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.12);
    --shadow-accent: 0 8px 30px color-mix(in srgb, var(--accent) 25%, transparent);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   3. TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
}

/* ============================================
   4. LAYOUT BASE
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   5. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled,
.navbar--solid {
    background: color-mix(in srgb, var(--primary) 95%, transparent);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.navbar-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    height: 44px;
}

.navbar-logo span {
    color: var(--accent);
}

.navbar-logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: white;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--accent-gradient);
    color: white;
    justify-content: center;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-accent);
    width: 200px;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0 24px;
    height: 44px;
    box-sizing: border-box;
}

.btn-nav span {
    line-height: 1;
    display: inline-block;
}

.btn-nav svg {
    flex-shrink: 0; 
    display: block; 
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.35);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

/* ============================================
   6. HERO (HOME) - CON CARRUSEL CROSSFADE
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

/* Carrusel con crossfade perfecto */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 2.6s cubic-bezier(.4, 0, .2, 1), transform 10s ease-out;
    will-change: opacity, transform;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.08);
}

/* Overlay oscuro a la izquierda, transparente a la derecha */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--primary) 95%, black) 0%,
        color-mix(in srgb, var(--primary) 85%, transparent) 30%,
        color-mix(in srgb, var(--primary) 40%, transparent) 65%,
        color-mix(in srgb, var(--primary) 5%, transparent) 100%
    );
    z-index: 3;
}

.hero > .container {
    width: 100%;
    position: relative;
    z-index: 4;
}

/* Indicadores (dots) */
.hero-dots {
    position: absolute;
    bottom: 34px;
    left: calc(50vw - 616px);
    z-index: 5;
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(5, 27, 53, .28);
    box-shadow: 0 10px 30px rgba(3, 20, 39, .2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .4s cubic-bezier(.4, 0, .2, 1), background-color .3s ease, box-shadow .3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, .9);
}

.hero-dot.active {
    width: 34px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Contenido del hero - OPTIMIZADO PARA LAPTOPS 15" */
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 720px;
    padding: 40px 0; /* Reducido de 60px */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(233, 30, 99, 0.15);
    border: 1px solid rgba(233, 30, 99, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: #f48fb1;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px; /* Reducido de 28px */
    animation: fadeInRight 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

/* Título con tamaño fluido */
.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
    line-height: 1.05;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px; /* Reducido de 20px */
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.3px;
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px; /* Reducido de 40px */
    max-width: 540px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Buscador del hero */
.hero-search-wrapper {
    position: relative;
    max-width: 640px;
    margin: 0 0 20px; /* Reducido de 32px 0 24px */
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.hero-search-box:focus-within {
    background: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-search-icon {
    color: var(--text-light);
    flex-shrink: 0;
    margin-right: 12px;
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    padding: 12px 0;
    font-family: inherit;
}

.hero-search-input::placeholder {
    color: var(--text-light);
}

.hero-search-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.hero-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.hero-search-btn svg {
    transition: transform 0.3s;
}

.hero-search-btn:hover svg {
    transform: translateX(2px);
}

/* Dropdown de sugerencias */
.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.hero-search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 14px 20px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.dropdown-items {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-item-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.dropdown-item-text {
    flex: 1;
    min-width: 0;
}

.dropdown-item-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.dropdown-item-text span {
    font-size: 0.82rem;
    color: var(--text-light);
}

.dropdown-item-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 300;
    transition: transform 0.3s;
}

.dropdown-item:hover .dropdown-item-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* Chips de servicios rápidos */
.hero-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.chip svg {
    flex-shrink: 0;
}

/* Botones del hero */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px; /* Reducido de 56px */
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
}

.hero-stat-text {
    color: white;
}

.hero-stat-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-stat-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollDown 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE HERO - LAPTOPS 15" Y TABLETS
   ============================================ */
@media (max-width: 1440px) {
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-buttons {
        margin-bottom: 32px;
    }
}

@media (max-width: 1328px) {
    .hero-dots {
        left: 24px;
    }
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .hero-search-wrapper {
        margin-bottom: 16px;
    }
    
    .hero-buttons {
        margin-bottom: 28px;
    }
}

@media (max-width: 768px) {
    .hero-dots {
        left: 20px;
        bottom: 20px;
    }
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    .hero-dot.active {
        width: 28px;
    }
    
    .hero-content {
        padding: 24px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ============================================
   7. BOTONES
   ============================================ */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
}

.btn-primary .arrow {
    transition: var(--transition);
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ============================================
   9. SERVICIOS
   ============================================ */

/* ==========================================
   9.1 GRILLA GENERAL (página /servicios)
   ========================================== */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.services-grid .service-card {
    flex: 0 0 calc(33.333% - 19px);
    max-width: calc(33.333% - 19px);
}

/* ==========================================
   9.2 GRILLA HOME (3 columnas, tarjetas limpias)
   ========================================== */
/* Grilla HOME: flexbox centrado (se adapta a 3, 4 o 5 tarjetas) */
.services-grid--home {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.services-grid--home .service-card--clean {
    flex: 0 0 calc(33.333% - 22px);
    max-width: calc(33.333% - 22px);
}


/* ==========================================
   9.3 TARJETA BASE
   ========================================== */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 30, 99, 0.15);
}

/* ==========================================
   9.4 TARJETA LIMPIA (HOME)
   ========================================== */
.service-card--clean {
    padding: 40px 28px 32px;
    min-height: 280px;
}

.service-card--clean:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 30, 99, 0.2);
}

/* Icono más grande en home */
.service-card--clean .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
    color: var(--accent);
    flex-shrink: 0;
}

.service-card--clean:hover .service-icon {
    background: var(--accent-gradient);
    transform: scale(1.08);
    color: white;
}

.service-card--clean:hover .service-icon svg {
    stroke: white;
}

/* Título con altura mínima para alinear */
.service-card--clean .service-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.3;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Botón siempre al fondo con altura consistente */
.service-card--clean .service-card-action {
    margin-top: auto;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 232, 240, 0.6);
}

.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    min-height: 44px;
}

.btn-service:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-service span {
    transition: transform 0.3s;
}

.btn-service:hover span {
    transform: translateX(4px);
}

/* ==========================================
   9.5 TARJETA DETALLE (página /servicios)
   ========================================== */
.service-card--detail {
    text-align: left;
    padding: 32px;
    align-items: flex-start;
}

.service-card--detail .service-icon {
    margin: 0 0 20px 0;
}

.service-card--detail h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Botón primario adaptado para tarjetas de detalle */
.service-card--detail .btn-primary.btn-card {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    font-size: 0.9rem;
    padding: 12px 24px;
    box-shadow: none;
}

.service-card--detail .btn-primary.btn-card:hover {
    box-shadow: var(--shadow-accent);
}

/* ==========================================
   9.6 ICONO BASE (compartido)
   ========================================== */
.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    color: var(--accent);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    transform: scale(1.05);
    color: white;
}

.service-card:hover .service-icon svg {
    stroke: white;
}

/* ==========================================
   9.7 TÍTULOS Y DESCRIPCIÓN BASE
   ========================================== */
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* ==========================================
   9.8 LISTA DE CARACTERÍSTICAS
   ========================================== */
.service-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 20px 0;
    flex-grow: 1;
    text-align: left;
    width: 100%;
}

.service-features li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

/* ==========================================
   9.9 ENLACE DE SERVICIO (fallback)
   ========================================== */
.service-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    margin-top: auto;
}

.service-link:hover {
    gap: 10px;
}

/* ==========================================
   9.10 RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .services-grid--home .service-card--clean {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .services-grid--home .service-card--clean {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .services-grid .service-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .services-grid--home {
        grid-template-columns: 1fr;
    }
    
    .service-card--clean .service-card-title {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .services-grid--home {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   10. WHY CHOOSE US
   ============================================ */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.why-us-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.why-us-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 40px;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-us-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.why-us-item:hover {
    background: var(--bg-light);
}

.why-us-item-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--accent-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
    color: var(--accent);
}

.why-us-item:hover .why-us-item-icon {
    background: var(--accent-gradient);
    color: white;
}

.why-us-item:hover .why-us-item-icon svg {
    stroke: white;
}

.why-us-item-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.why-us-item-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   11. RESOURCES (versión compacta)
   ============================================ */
.resources {
    background: var(--bg-light);
    padding: 70px 0; /* Reducido de 100px */
}

.resources .section-header {
    margin-bottom: 40px; /* Reducido de 60px */
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px; /* Reducido de 32px */
}

.resource-card {
    background: white;
    border-radius: var(--radius-md); /* Reducido de lg a md */
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr; /* Imagen fija más pequeña */
    border: 1px solid var(--border);
    transition: var(--transition);
}

.resource-card:hover {
    box-shadow: var(--shadow-md); /* Reducido de lg a md */
    transform: translateY(-3px); /* Reducido de -4px */
}

.resource-card-image {
    position: relative;
    overflow: hidden;
}

.resource-card-image img {
    width: 100%;
    height: 100%;
    min-height: 180px; /* Reducido de 280px */
    object-fit: cover;
    transition: var(--transition);
}

.resource-card:hover .resource-card-image img {
    transform: scale(1.05);
}

.resource-card-content {
    padding: 24px 20px; /* Reducido de 36px 28px */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resource-card-icon {
    width: 42px; /* Reducido de 52px */
    height: 42px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: white;
    font-size: 1.2rem;
}

.resource-card-content h3 {
    font-size: 1.1rem; /* Reducido de 1.3rem */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.resource-card-content p {
    font-size: 0.85rem; /* Reducido de 0.9rem */
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-resource {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 20px; /* Reducido de 12px 24px */
    border-radius: 50px;
    font-size: 0.82rem; /* Reducido de 0.85rem */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-resource:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .resource-card {
        grid-template-columns: 1fr;
    }
    .resource-card-image img {
        min-height: 160px;
    }
}

/* ============================================
   12. BLOG
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

/* Imagen clickeable */
.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título clickeable */
.blog-card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s;
}

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

.blog-card-content h3 a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.blog-card-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Botón del blog */
.blog-card .btn-blog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    min-height: 44px;
    margin-top: auto;
}

.blog-card .btn-blog:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.blog-card .btn-blog span {
    transition: transform 0.3s;
}

.blog-card .btn-blog:hover span {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   13. PLATFORMS
   ============================================ */
.platforms {
    background: var(--bg-light);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.platform-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.platform-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.platform-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 8px;
}

.platform-logo.sunat { color: #1a237e; }
.platform-logo.sunafil { color: #c62828; }
.platform-logo.essalud { color: #1565c0; }
.platform-logo.afpnet { color: #d32f2f; }
.platform-logo.confie { color: #2e7d32; }

.platform-external {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   14. CTA
   ============================================ */
.cta {
    background: var(--accent-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    background: white;
    color: var(--accent);
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   15. PÁGINAS INTERNAS (SHARED)
   ============================================ */
.site-main {
    min-height: 60vh;
    background: var(--bg-light);
}

.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 95px 0 40px;
    color: #fff;
    text-align: left;
    background-image:
        linear-gradient(90deg, rgba(7, 31, 64, .9) 0%, rgba(13, 55, 101, .72) 55%, rgba(13, 55, 101, .42) 100%),
        url('../images/general.webp');
    background-position: center;
    background-size: cover;
}

.inner-hero--nosotros {
    background-image:
        linear-gradient(90deg, rgba(7, 31, 64, .9) 0%, rgba(13, 55, 101, .72) 55%, rgba(13, 55, 101, .42) 100%),
        url('../images/nosotros.webp');
    background-position: center;
    background-size: cover;
}

.inner-hero--servicios {
    background-image:
        linear-gradient(90deg, rgba(7, 31, 64, .9) 0%, rgba(13, 55, 101, .72) 55%, rgba(13, 55, 101, .42) 100%),
        url('../images/servicios.webp');
}

.inner-hero--contacto {
    background-image:
        linear-gradient(90deg, rgba(7, 31, 64, .9) 0%, rgba(13, 55, 101, .72) 55%, rgba(13, 55, 101, .42) 100%),
        url('../images/contacto.webp');
}

.inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .2;
    background: radial-gradient(circle at 15% 10%, var(--accent) 0, transparent 35%),
                radial-gradient(circle at 90% 90%, #4976ad 0, transparent 36%);
}

.inner-hero .container {
    position: relative;
    z-index: 1;
}

.inner-hero .section-label {
    color: #fff;
    opacity: .8;
}

.inner-hero .section-label::before {
    background: #fff;
}

.inner-hero h1 {
    font-size: clamp(2.1rem, 3.4vw, 2.5rem);
    margin: 14px 0;
}

.inner-hero p {
    max-width: 720px;
    margin: 0;
    font-size: 1.1rem;
    opacity: .82;
}

.page-section {
    padding: 60px 0px 80px 0px;
}

.page-section--white {
    background: #fff;
}

.page-section--gray {
    background: var(--bg-light);
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.page-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cards de contenido */
.content-card,
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.content-card {
    padding: 36px;
}

.content-card h2,
.content-card h3 {
    color: var(--primary);
    margin: 0 0 16px;
}

.content-card p,
.rich-content p {
    color: var(--text-medium);
    margin-bottom: 18px;
}

.rich-content {
    font-size: 1.02rem;
    line-height: 1.8;
}

.rich-content h2,
.rich-content h3 {
    color: var(--primary);
    margin: 30px 0 14px;
}

.rich-content ul,
.rich-content ol {
    margin: 0 0 22px 22px;
    color: var(--text-medium);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Listing cards (blog, servicios) */
.listing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

a.listing-card {
    color: inherit;
    text-decoration: none;
}

a.listing-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.listing-card__icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.listing-card__image {
    width: calc(100% + 64px);
    height: 210px;
    margin: -32px -32px 24px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.listing-card h2,
.listing-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.listing-card p {
    color: var(--text-medium);
    margin-bottom: 18px;
}

.listing-card__link {
    color: var(--accent);
    font-weight: 700;
    margin-top: auto;
}

.listing-card__meta {
    color: var(--text-light);
    font-size: .8rem;
    margin-bottom: 10px;
}

.listing-card__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 12px;
    margin-bottom: 14px;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Filtros de categoría */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
   /* margin-bottom: 40px;*/
}

.category-filter a {
    padding: 9px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: .88rem;
    transition: var(--transition);
}

.category-filter a:hover,
.category-filter a.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* Artículo individual */
.article-shell {
    max-width: 900px;
    margin: 0 auto;
}

.article-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--text-light);
    font-size: .9rem;
}

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

/* Formularios */
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 30px;
    align-items: start;
}

.form-card {
    padding: 40px;
}

.form-card h2 {
    color: var(--primary);
    margin-bottom: 8px;
}

.form-card > p {
    color: var(--text-medium);
    margin-bottom: 28px;
}

.public-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.public-form .form-group {
    margin-bottom: 20px;
}

.public-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 700;
}

.public-form input,
.public-form textarea,
.public-form select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    transition: var(--transition);
}

.public-form input:focus,
.public-form textarea:focus,
.public-form select:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-color: var(--accent);
}

.public-form .required::after {
    content: ' *';
    color: var(--accent);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: var(--transition);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.35);
}

.alert {
    padding: 15px 18px;
    margin-bottom: 22px;
    border-radius: 10px;
}

.alert--success {
    background: #e8f5e9;
    color: #256c2a;
    border-left: 4px solid #3a9b42;
}

.alert--error {
    background: #ffebee;
    color: #a9222e;
    border-left: 4px solid #d33a48;
}

/* Panel de contacto */
.contact-panel {
    padding: 32px;
    color: #fff;
    background: var(--blue-gradient);
    border-radius: var(--radius-lg);
}

.contact-panel h3 {
    margin-bottom: 18px;
}

.contact-panel p {
    margin-bottom: 14px;
    opacity: .88;
    overflow-wrap: anywhere;
}

.contact-panel a {
    color: #fff;
}

/* Info de contacto con iconos */
.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text {
    flex: 1;
    line-height: 1.6;
}

.contact-info-text a:hover {
    color: var(--accent) !important;
}

/* Mapa */
/* Mapa */
.map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    height: 450px; /* Altura fija */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Elimina espacio extra */
}

/* Feature list */
.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 25px;
    list-style: none;
}

.feature-list li {
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--primary);
}

/* Empty states */
.empty-panel,
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 55px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    color: var(--text-medium);
}

.empty-panel h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.empty-panel p {
    color: var(--text-light);
}

/* ============================================
   16. FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    padding: 80px 0 0;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-logo {
    display: block;
    width: auto;
    height: 59px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    font-size: 1.1rem;
}

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

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-item .icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.footer-contact-item span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ============================================
   17. ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   18. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid--home {
        grid-template-columns: repeat(3, 1fr);
    }
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    .navbar-menu.active {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: var(--primary);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }
    .navbar-menu.active a {
        display: block;
        padding: 12px 14px;
    }
    .btn-nav {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .hero-content {
        padding: 40px 0;
    }
    .services-grid--home {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .resource-card {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-grid,
    .page-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .inner-hero {
        padding: 135px 0 65px;
    }
    .page-section {
        padding: 56px 0;
    }
    .page-grid,
    .page-grid--two,
    .public-form .form-row {
        grid-template-columns: 1fr;
    }
    .content-card,
    .form-card {
        padding: 26px 20px;
    }
}

@media (max-width: 480px) {
    .services-grid--home {
        grid-template-columns: 1fr;
    }
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
/* ============================================
   BLOG - MEJORAS: BUSCADOR, FILTROS, PAGINACIÓN
   ============================================ */

/* Buscador */
.blog-search-bar {
    max-width: 600px;
    margin: 0 auto 32px;
}

.blog-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    pointer-events: none;
}

.blog-search-input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    background: white;
    transition: var(--transition);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-clear {
    position: absolute;
    right: 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.search-clear:hover {
    color: var(--accent);
}

/* Filtros: Categorías + Orden */
.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
   /* margin-bottom: 40px;*/
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.blog-order-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-select {
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4a6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: var(--transition);
}

.order-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Info de resultados de búsqueda */
.search-results-info {
    margin-bottom: 24px;
    padding: 12px 18px;
    background: var(--accent-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Paginación */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-num:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-num.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination-dots {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .blog-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-pagination {
        flex-wrap: wrap;
    }
}

/* Botón "Ver más artículos" en el home */
.blog-view-more {
    text-align: center;
    margin-top: 48px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view-more:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-view-more svg {
    transition: transform 0.3s;
}

.btn-view-more:hover svg {
    transform: translateX(4px);
}

/* ============================================
   BLOG POST - ARTÍCULO INDIVIDUAL
   ============================================ */

/* 1. IMAGEN DESTACADA (arriba, primera) */
.blog-post-image-top {
    background: var(--bg-white);
    padding: 100px 0 0;
}

.blog-post-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
}

/* 2. BARRA DE DATOS PEGADA DEBAJO DE LA IMAGEN */
.blog-post-meta-bar {
    background: var(--bg-white);
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.blog-post-meta-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.85rem;
    color: #1a1a2e;
    font-weight: 500;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a2e;
}

.meta-item svg {
    color: #1a1a2e;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.meta-item span {
    white-space: nowrap;
}

/* Responsive: en móvil se apilan */
@media (max-width: 768px) {
    .blog-post-meta-compact {
        gap: 12px;
    }
}

/* 3. TÍTULO */
.blog-post-title-section {
    background: var(--bg-white);
    padding: 20px 0 40px;
}

.blog-post-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0;
}

/* 4. CONTENIDO */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content .rich-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-medium);
}

.blog-post-content .rich-content h2,
.blog-post-content .rich-content h3 {
    color: var(--primary);
    margin: 40px 0 20px;
    font-weight: 700;
    line-height: 1.3;
}

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

.blog-post-content .rich-content h3 {
    font-size: 1.35rem;
}

.blog-post-content .rich-content p {
    margin-bottom: 24px;
}

.blog-post-content .rich-content ul,
.blog-post-content .rich-content ol {
    margin: 24px 0;
    padding-left: 28px;
}

.blog-post-content .rich-content li {
    margin-bottom: 12px;
}

.blog-post-content .rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.blog-post-content .rich-content .article-image {
    max-width: 100%;
    margin: 32px auto;
    clear: both;
}

.blog-post-content .rich-content .article-image.align-left {
    margin-left: 0;
    margin-right: auto;
}

.blog-post-content .rich-content .article-image.align-right {
    margin-left: auto;
    margin-right: 0;
}

.blog-post-content .rich-content .article-image img {
    width: 100%;
    margin: 0;
}

.blog-post-content .rich-content .article-image figcaption {
    margin-top: 10px;
    color: var(--text-light);
    font-size: .85rem;
    text-align: center;
}

.blog-post-content .rich-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--primary);
}

/* Tags */
.blog-post-tags {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.blog-post-tags strong {
    display: block;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 0.95rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Compartir en redes */
.blog-post-share {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.blog-post-share strong {
    display: block;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    color: white;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* CTA final */
.blog-post-cta {
    margin-top: 48px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
}

.blog-post-cta h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.blog-post-cta p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

.blog-post-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Botón volver */
.blog-post-back {
    margin-top: 32px;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post-image-top {
        padding: 80px 0 0;
    }
    
    .blog-post-featured-image {
        max-height: 280px;
    }
    
    .blog-post-meta-compact {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-separator {
        display: none;
    }
    
    .blog-post-title {
        font-size: 1.6rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   BUSCADOR CON AUTOCOMPLETADO
   ============================================ */

.blog-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.blog-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-container .search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-light);
    pointer-events: none;
    z-index: 2;
}

.blog-search-input {
    width: 100%;
    padding: 16px 50px 16px 56px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.search-clear {
    position: absolute;
    right: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    z-index: 2;
}

.search-clear:hover {
    color: var(--accent);
}

/* Dropdown de resultados */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-result-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.result-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-content p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Scrollbar personalizado */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
    }
    
    .result-image {
        width: 100%;
        height: 120px;
    }
}

/* ============================================
   PLANTILLAS DE PÁGINA (Template Layouts)
   ============================================ */

/* 1. DEFAULT (Reducido, centrado, con bordes) */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 2. ANCHO EXPANDIDO (1280px, sin bordes, con padding pequeño) */
.container-wide {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-wide .article-shell {
    max-width: 100%;
    margin: 0;
}

.container-wide .content-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* 3. ANCHO COMPLETO (100% pantalla, sin bordes, sin padding) */
.container-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.container-full .article-shell {
    max-width: 100%;
    margin: 0;
}

.container-full .content-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .container-wide {
        padding: 0 20px;
    }
}

/* ============================================
   PÁGINA NOSOTROS - CON LUCIDE ICONS
   ============================================ */

.nosotros-content .section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: var(--accent-light);
    border-radius: 50px;
}

.nosotros-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.nosotros-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.nosotros-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.nosotros-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 16px;
}

/* HISTORIA */
.nosotros-historia {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.historia-imagen {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.historia-imagen img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.historia-imagen:hover img {
    transform: scale(1.05);
}

/* MISIÓN Y VISIÓN */
.nosotros-mision-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 80px;
}

.mv-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.mv-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mv-mision {
    background: linear-gradient(135deg, var(--primary) 0%, #1a5276 100%);
}

.mv-vision {
    background: linear-gradient(135deg, var(--accent) 0%, #c0392b 100%);
}

.mv-icon {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.mv-icon svg {
    width: 56px;
    height: 56px;
    stroke-width: 1.5;
}

.mv-card h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.mv-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* VALORES */
.nosotros-valores {
    margin-bottom: 80px;
}

.valores-header {
    text-align: center;
    margin-bottom: 48px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.valor-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.valor-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.valor-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s ease;
}

.valor-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.valor-card:hover .valor-icon {
    background: var(--accent-gradient);
    color: white;
}

.valor-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.valor-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* POR QUÉ ELEGIRNOS */
.nosotros-porque {
    margin-bottom: 40px;
}

.porque-header {
    text-align: center;
    margin-bottom: 48px;
}

.porque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.porque-card {
    background: var(--bg-light);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.porque-card:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.porque-icon {
    margin-bottom: 20px;
    color: var(--accent);
}

.porque-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.porque-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.porque-card p {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nosotros-historia {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .historia-imagen img { height: 320px; }
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nosotros-content h2 { font-size: 1.6rem; }
    .nosotros-mision-vision { grid-template-columns: 1fr; }
    .mv-card { padding: 32px 24px; }
    .valores-grid { grid-template-columns: 1fr; }
    .porque-grid { grid-template-columns: 1fr; }
    .nosotros-historia, .nosotros-mision-vision, .nosotros-valores, .nosotros-porque { margin-bottom: 60px; }
}

/* ============================================
   BLOG HOME - FONDO OSCURO CON DEGRADADO
   ============================================ */

/* Fondo degradado azul (similar al footer) */
.blog--dark {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        #0a4a7a 50%,
        #0d5a94 100%
    );
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo sutil (círculos como en el CTA) */
.blog--dark::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.blog--dark::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(237, 44, 98, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Header de sección adaptado a fondo oscuro */
.blog--dark .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.blog--dark .section-label::before {
    background: rgba(255, 255, 255, 0.6);
}

.blog--dark .section-title {
    color: white;
}

.blog--dark .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* Tarjetas de blog - FONDO BLANCO SÓLIDO */
.blog--dark .blog-card {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog--dark .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

/* Títulos de las tarjetas en azul oscuro */
.blog--dark .blog-card-content h3 {
    color: var(--primary);
}

.blog--dark .blog-card-content h3:hover {
    color: var(--accent);
}

/* Texto de las tarjetas en gris medio */
.blog--dark .blog-card-content p {
    color: var(--text-medium);
}

/* Botón de las tarjetas - estilo rosa */
.blog--dark .blog-card .btn-blog {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.blog--dark .blog-card .btn-blog:hover {
    background: var(--accent);
    color: white;
}

/* Tag de categoría */
.blog--dark .blog-card-tag {
    background: var(--accent);
    color: white;
}

/* Botón "Ver más artículos" adaptado */
.blog--dark .btn-view-more {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.blog--dark .btn-view-more:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .blog--dark::before,
    .blog--dark::after {
        display: none;
    }
}