/* ============================================
   COLEGIO EMILIA RIQUELME - LANDING PAGE
   Diseño basado en Apple HIG (Human Interface Guidelines)
   ============================================ */

/* Variables CSS - Sistema de diseño Apple-inspired */
:root {
    /* Colores institucionales */
    --primary: #1B4F72;
    --primary-dark: #154360;
    --primary-light: #2874A6;
    --secondary: #3498DB;
    --secondary-light: #5DADE2;
    
    /* Colores del sistema - Apple inspired */
    --system-background: #FFFFFF;
    --secondary-background: #F5F5F7;
    --tertiary-background: #FBFBFD;
    --system-gray: #86868B;
    --system-gray-2: #AEAEB2;
    --system-gray-3: #C7C7CC;
    --system-gray-4: #D1D1D6;
    --system-gray-5: #E5E5EA;
    --system-gray-6: #F2F2F7;
    --label-primary: #1D1D1F;
    --label-secondary: #86868B;
    --label-tertiary: #AEAEB2;
    
    /* Tipografía - SF Pro inspired sizing */
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --font-rounded: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Segoe UI', Roboto, sans-serif;
    
    /* Tamaños tipográficos - Apple scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1.0625rem;  /* 17px - Apple base */
    --text-lg: 1.1875rem;    /* 19px */
    --text-xl: 1.375rem;     /* 22px */
    --text-2xl: 1.6875rem;   /* 27px */
    --text-3xl: 2.125rem;    /* 34px */
    --text-4xl: 2.8125rem;   /* 45px */
    --text-5xl: 3.5rem;      /* 56px */
    --text-6xl: 4.5rem;      /* 72px */
    
    /* Espaciado - Apple 8pt grid */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Radios - Apple style */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Sombras - Apple depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    /* Transiciones - Apple motion */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    
    /* Layout */
    --container-max: 980px;
    --container-wide: 1200px;
    --header-height: 52px;
}

/* Reset - Apple clean slate */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-text);
    font-size: var(--text-base);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--label-primary);
    background: var(--system-background);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
}

/* Links & Buttons - Apple style */
a {
    text-decoration: none;
    color: var(--secondary);
    transition: opacity var(--duration-fast) var(--ease-out);
}

a:hover {
    opacity: 0.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-text);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: -0.022em;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

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

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

.btn-link {
    background: none;
    color: var(--secondary);
    padding: 0;
    font-size: var(--text-lg);
}

.btn-link i {
    transition: transform var(--duration-fast) var(--ease-out);
}

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

/* ============================================
   HEADER - Apple Navigation Bar
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-mark i {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--label-primary);
}

/* Navigation — zona central, empujada a la derecha junto a las acciones */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--space-6);
    margin: 0 var(--space-8) 0 auto;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--label-primary);
    opacity: 0.75;
    transition: opacity var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* Acciones — zona derecha (suscribirse + buscar + toggle) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.nav-actions .subscribe-cta {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--label-primary);
    border-radius: 1px;
    transition: all var(--duration-fast) var(--ease-out);
}

/* ============================================
   HERO - Apple Large Title Style with Image
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--header-height) + var(--space-20)) var(--space-6) var(--space-20);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-background .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(27, 79, 114, 0.85) 0%,
        rgba(21, 67, 96, 0.9) 50%,
        rgba(27, 79, 114, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: white;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-eyebrow i {
    color: var(--secondary-light);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: white;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.hero-subtitle {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    letter-spacing: -0.022em;
}

.hero-quote {
    max-width: 600px;
    margin: 0 auto var(--space-10);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-quote p {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    font-weight: 500;
    color: white;
    margin-bottom: var(--space-2);
}

.hero-quote cite {
    font-size: var(--text-sm);
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: white;
    color: var(--primary);
}

.hero-cta .btn-primary:hover {
    background: var(--system-gray-6);
    transform: scale(1.02);
}

.hero-cta .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.hero-scroll a:hover {
    color: white;
}

.hero-scroll i {
    font-size: var(--text-xl);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   SECTION - Apple Section Styles
   ============================================ */
.section {
    padding: var(--space-24) 0;
}

.section-alt {
    background: var(--secondary-background);
}

.section-dark {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: var(--space-3);
}

.section-dark .section-eyebrow {
    color: var(--secondary-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--label-primary);
    margin-bottom: var(--space-4);
}

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

.section-description {
    font-size: var(--text-lg);
    color: var(--label-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FEATURES - Misión, Visión, Filosofía
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-card {
    background: var(--system-background);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--system-gray-5);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: white;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-3);
    color: var(--label-primary);
}

.feature-card p {
    font-size: var(--text-base);
    color: var(--label-secondary);
    line-height: 1.5;
}

/* ============================================
   VALUES - Marquee + Featured Cards
   ============================================ */

/* Marquee Container */
.values-marquee {
    width: 100%;
    overflow: hidden;
    padding: var(--space-6) 0;
    position: relative;
}

.values-marquee::before,
.values-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.values-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.values-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-reverse .marquee-track {
    animation: marquee-reverse 40s linear infinite;
}

.marquee-content {
    display: flex;
    gap: var(--space-4);
    padding-right: var(--space-4);
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-fast) var(--ease-out);
}

.marquee-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause on hover */
.values-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Featured Values */
.values-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.value-featured-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.value-featured-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.value-featured-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: white;
    flex-shrink: 0;
}

.value-featured-content h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-2);
}

.value-featured-content p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

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

@media (max-width: 734px) {
    .values-featured {
        grid-template-columns: 1fr;
    }
    
    .value-featured-card {
        padding: var(--space-6);
    }
    
    .marquee-item {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
    
    .values-marquee::before,
    .values-marquee::after {
        width: 40px;
    }
}

/* ============================================
   STATS BANNER - Apple Numbers Style
   ============================================ */
.stats-banner {
    background: var(--secondary-background);
    padding: var(--space-16) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    padding: var(--space-4);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--label-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   ACTIVITIES - Apple Card Carousel Style
   ============================================ */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.activity-card {
    display: flex;
    background: var(--system-background);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--system-gray-5);
    transition: all var(--duration-normal) var(--ease-out);
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.activity-image {
    width: 140px;
    min-height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: white;
    flex-shrink: 0;
}

.activity-content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.activity-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--label-primary);
    margin-bottom: var(--space-2);
}

.activity-content p {
    font-size: var(--text-base);
    color: var(--label-secondary);
    line-height: 1.5;
}

/* ============================================
   CTA SECTION - Apple Promo Style
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: white;
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--system-gray-6);
    transform: scale(1.02);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CONTACT - Three Cards Layout
   ============================================ */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-action-card {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--system-background);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--system-gray-5);
    transition: all var(--duration-normal) var(--ease-out);
}

.contact-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.contact-action-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: white;
    flex-shrink: 0;
}

.icon-phone {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.icon-instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.icon-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D65D9 100%);
}

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

.contact-action-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--label-primary);
    margin-bottom: var(--space-1);
}

.contact-action-detail {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: var(--space-1);
}

.contact-action-content p {
    font-size: var(--text-xs);
    color: var(--label-secondary);
    margin: 0;
}

.contact-action-arrow {
    color: var(--label-tertiary);
    font-size: var(--text-base);
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.contact-action-card:hover .contact-action-arrow {
    transform: translateX(4px);
    color: var(--secondary);
}

@media (max-width: 834px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 428px) {
    .contact-action-card {
        padding: var(--space-5);
    }
    
    .contact-action-icon {
        width: 52px;
        height: 52px;
        font-size: var(--text-lg);
    }
}

/* ============================================
   FOOTER - Apple Footer Style
   ============================================ */
.footer {
    background: var(--label-primary);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo i {
    font-size: var(--text-2xl);
    color: var(--secondary-light);
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
}

.footer-brand p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-4);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section ul a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul a:hover {
    color: white;
    opacity: 1;
}

.footer-quote {
    font-size: var(--text-sm);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    padding-left: var(--space-4);
    border-left: 2px solid var(--secondary);
    line-height: 1.6;
}

.footer-quote cite {
    display: block;
    margin-top: var(--space-2);
    font-style: normal;
    color: var(--secondary-light);
    font-size: var(--text-xs);
}

.footer-bottom {
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

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

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RESPONSIVE - Apple Breakpoints
   ============================================ */
@media (max-width: 1068px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .feature-card {
        padding: var(--space-8);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 834px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --header-height: 60px;
    }
    
    /* --- Navbar móvil: compacto y limpio --- */
    .navbar { padding: 0 var(--space-4); }

    /* Logo en una sola línea, sin desbordar */
    .logo { gap: var(--space-2); min-width: 0; flex: 1; }
    .logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
    .logo-text {
        font-size: var(--text-base);
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* En móvil, la navegación principal vive en la barra inferior + el menú
       desplegable. Suscribirse y Buscar NO se muestran en el navbar superior
       (Buscar está en la barra inferior; Suscribirse aparece dentro del menú). */
    .nav-actions .subscribe-cta,
    .nav-actions .nav-search {
        display: none;
    }

    .nav-actions { gap: 0; }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        margin: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4) var(--space-6) var(--space-6);
        gap: 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal) var(--ease-out);
        border-bottom: 1px solid var(--system-gray-5);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        padding: var(--space-4) 0;
        font-size: var(--text-base);
        border-bottom: 1px solid var(--system-gray-5);
    }
    .nav-link:last-child { border-bottom: none; }
    
    .values-featured {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-quote {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--secondary);
        padding-top: var(--space-4);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 428px) {
    :root {
        --text-6xl: 2.25rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + var(--space-12));
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .activity-card {
        flex-direction: column;
    }
    
    .activity-image {
        width: 100%;
        min-height: 120px;
    }
    
    .contact-form {
        padding: var(--space-6);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   ANIMATIONS - Apple Motion
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   ACCESSIBILITY - Skip Link
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-4);
}


/* ============================================
   VIDEOS SECTION - YouTube Playlist
   ============================================ */

.videos-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-main {
    margin-bottom: var(--space-8);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--system-gray-6);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-2xl);
}

.videos-cta {
    text-align: center;
}

.btn-youtube {
    background: #FF0000;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-youtube:hover {
    background: #CC0000;
    transform: translateY(-2px);
}

.btn-youtube i {
    font-size: 1.25em;
}

/* Responsive */
@media (max-width: 768px) {
    .video-wrapper {
        border-radius: var(--radius-xl);
    }
    
    .btn-youtube {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
}


/* ============================================
   MOBILE BOTTOM NAVIGATION
   Barra de navegación inferior para móviles
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--system-gray-5);
    padding: var(--space-2) var(--space-2) env(safe-area-inset-bottom, var(--space-2));
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-nav {
    display: none;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: var(--space-2) var(--space-2);
    color: var(--system-gray);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: var(--radius-lg);
    min-width: 56px;
    /* reset para el <button> de Buscar */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.2s var(--ease-out);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: var(--primary);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: translateY(-1px) scale(1.08);
}

/* Botón central destacado (Noticias) — elevado tipo app */
.mobile-nav-cta {
    color: #fff !important;
    min-width: 60px;
}

.mobile-nav-cta .mobile-nav-icon {
    width: 30px;
    height: 30px;
    margin-top: -22px;
    margin-bottom: 3px;
    padding: 10px;
    box-sizing: content-box;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 16px rgba(27, 79, 114, 0.45);
    border: 3px solid var(--system-background);
    transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.mobile-nav-cta span { color: var(--primary); font-weight: 600; }

.mobile-nav-cta:hover .mobile-nav-icon,
.mobile-nav-cta.active .mobile-nav-icon {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.04);
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Agregar padding al footer para que no quede oculto */
    .footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Ocultar scroll indicator del hero en móvil si interfiere */
    .hero-scroll {
        bottom: 100px;
    }
}

@media (max-width: 380px) {
    .mobile-nav-item {
        padding: var(--space-2);
        min-width: 50px;
    }
    
    .mobile-nav-item span {
        font-size: 0.65rem;
    }
    
    .mobile-nav-cta {
        padding: var(--space-2) var(--space-3);
        min-width: 60px;
    }
}


/* Footer congregation link */
.footer-congregation-link {
    color: var(--secondary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-congregation-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-congregation-link i {
    font-size: 0.75em;
    margin-left: var(--space-1);
    opacity: 0.7;
}


/* External link icon in navigation */
.nav-external-icon {
    font-size: 0.7em;
    margin-left: var(--space-1);
    opacity: 0.6;
}

.nav-link:hover .nav-external-icon {
    opacity: 1;
}

/* ============================================
   GHOST BLOG STYLES (post, page, tag, author)
   Añadido para el tema Ghost - hereda variables del colegio
   ============================================ */

/* Container narrow para lectura */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* --- Post / Page Header --- */
.post-header,
.page-header,
.archive-header {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + var(--space-16)) var(--space-6) var(--space-16);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Cuando el post tiene imagen destacada, el header se acorta para que la
   imagen se "monte" sobre la transición header → contenido. */
.post-full.has-feature-image .post-header {
    min-height: auto;
    padding-bottom: calc(var(--space-24) + var(--space-8));
}

/* Imagen destacada: grande, nítida, solapando el header */
.post-feature-image {
    position: relative;
    z-index: 2;
    margin-top: calc(var(--space-24) * -1);
    margin-bottom: var(--space-4);
}

.post-feature-image-figure {
    margin: 0;
}

.post-feature-image-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl, 0 20px 50px rgba(0, 0, 0, 0.15));
    background: var(--system-gray-6);
}

.post-feature-image-figure figcaption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--label-secondary);
    margin-top: var(--space-3);
}

/* Si NO hay imagen, el contenido arranca con un respiro normal */
.post-full.no-feature-image .post-content { padding-top: var(--space-16); }
.post-full.has-feature-image .post-content { padding-top: var(--space-10); }

@media (max-width: 767px) {
    .post-feature-image { margin-top: calc(var(--space-16) * -1); }
    .post-feature-image-figure img { border-radius: var(--radius-lg); }
    .post-full.has-feature-image .post-header { padding-bottom: calc(var(--space-16) + var(--space-8)); }
}

.post-header-background,
.page-header-background,
.archive-header-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.post-header-background img,
.page-header-background img,
.archive-header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header-overlay,
.page-header-overlay,
.archive-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 79, 114, 0.78) 0%, rgba(21, 67, 96, 0.92) 100%);
}

.post-header-content,
.page-header-content,
.archive-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: white;
}

.post-tag,
.archive-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.post-title,
.page-title,
.archive-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-4);
}

.post-excerpt,
.page-excerpt,
.archive-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: inherit;
}

.author-avatar,
.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
}

/* --- Post Content --- */
.post-content,
.page-content {
    padding: var(--space-16) 0;
}

.content {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--label-primary);
}

.content h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}

.content h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-3);
}

.content p {
    margin-bottom: var(--space-6);
}

.content a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content img {
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
}

.content blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-6) var(--space-8);
    background: var(--secondary-background);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--label-secondary);
}

.content ul,
.content ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-8);
}

.content li {
    margin-bottom: var(--space-2);
}

.content pre {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    background: var(--label-primary);
    color: var(--system-gray-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.content figure {
    margin: var(--space-8) 0;
}

.content figcaption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--label-secondary);
    margin-top: var(--space-3);
}

/* --- Post Footer (tags + share) --- */
.post-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--system-gray-5);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.tag-pill {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--secondary-background);
    color: var(--label-primary);
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast);
}

.tag-pill:hover {
    background: var(--primary);
    color: white;
    opacity: 1;
}

.post-share {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.share-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--label-secondary);
}

.share-buttons {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--secondary-background);
    color: var(--label-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.share-btn i, .share-btn svg { pointer-events: none; }

.share-btn:hover {
    color: #fff;
    opacity: 1;
    transform: translateY(-2px);
}

.share-twitter:hover  { background: #000000; }
.share-facebook:hover { background: #1877F2; }
.share-whatsapp:hover { background: #25D366; }
.share-copy:hover     { background: var(--primary); }

/* Estado "copiado" del botón de enlace */
.share-copy.copied {
    background: #1E8449;
    color: #fff;
}

/* --- Author box --- */
.author-section {
    padding: var(--space-12) 0;
    background: var(--secondary-background);
}

.author-box {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-8);
    background: var(--system-background);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.author-box-avatar,
.author-box-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--secondary-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--label-tertiary);
}

.author-box-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.author-box-bio {
    font-size: var(--text-base);
    color: var(--label-secondary);
    line-height: 1.6;
}

/* --- Posts grid (blog listado) --- */
.section-posts { padding: var(--space-24) 0; }

/* CTA del resumen de noticias en la home */
.posts-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--system-background);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--system-gray-5);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Tarjeta 100% clickeable: el enlace del título se estira sobre toda la card */
.post-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Foco accesible visible en toda la tarjeta */
.post-card:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.35), var(--shadow-lg);
}

.post-card-link:focus-visible {
    outline: none;
}

.post-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--system-gray-6);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: var(--text-4xl);
}

/* Etiqueta superpuesta sobre la imagen (deferencia al contenido) */
.post-card-tag {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 2;
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-6);
}

.post-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.post-card-link {
    color: var(--label-primary);
    transition: color var(--duration-fast) var(--ease-out);
}

.post-card:hover .post-card-link {
    color: var(--primary);
    opacity: 1;
}

.post-card-excerpt {
    font-size: var(--text-base);
    color: var(--label-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer de la tarjeta — estructura robusta e idéntica en landing y noticias.
   Fila 1: autor (avatar + nombre).
   Fila 2: fecha · tiempo de lectura ...... Leer más → */
.post-card-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "author author"
        "meta   more";
    row-gap: var(--space-3);
    column-gap: var(--space-3);
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--system-gray-6);
}

.post-card-author {
    grid-area: author;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
    font-size: var(--text-sm);
    color: var(--label-secondary);
}

.post-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.post-card-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-background);
    color: var(--label-tertiary);
    font-size: 0.7rem;
}

.post-card-author-name {
    font-weight: 500;
    color: var(--label-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.post-card-meta {
    grid-area: meta;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--label-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-meta time { white-space: nowrap; }

.post-card-dot { color: var(--system-gray-3); flex-shrink: 0; }

.post-card-readtime { white-space: nowrap; }

.post-card-more {
    grid-area: more;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    flex-shrink: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    position: relative;
    z-index: 2;
    transition: gap var(--duration-fast) var(--ease-out);
}

.post-card-more i { transition: transform var(--duration-fast) var(--ease-out); }

.post-card:hover .post-card-more { gap: var(--space-2); }
.post-card:hover .post-card-more i { transform: translateX(3px); }

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-12);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--system-background);
    color: var(--label-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--system-gray-5);
    transition: all var(--duration-fast);
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    opacity: 1;
}

.pagination-info { font-size: var(--text-sm); color: var(--label-secondary); }

/* --- Empty / Error --- */
.posts-empty,
.error-content {
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.posts-empty i {
    font-size: var(--text-5xl);
    color: var(--system-gray-4);
    margin-bottom: var(--space-6);
}

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title { font-size: var(--text-3xl); margin: var(--space-4) 0; }
.error-message { color: var(--label-secondary); margin-bottom: var(--space-8); }

/* --- Ghost Koenig cards --- */
.kg-width-wide { margin-inline: calc(50% - 50vw + var(--space-6)); max-width: 1100px; margin-left: auto; margin-right: auto; }
.kg-width-full { width: 100%; }
.kg-image { border-radius: var(--radius-lg); }
.kg-embed-card,
.kg-video-card { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); margin: var(--space-8) 0; }
.kg-embed-card iframe,
.kg-video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Section related --- */
.section-related { padding: var(--space-20) 0; background: var(--secondary-background); }

@media (max-width: 834px) {
    .post-title, .page-title, .archive-title { font-size: var(--text-3xl); }
    .post-meta { gap: var(--space-4); }
    .author-box { flex-direction: column; text-align: center; align-items: center; }
    .post-footer { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   UI/UX PRO — enlaces de retorno, headers, featured
   ============================================ */

/* Enlace "Volver a noticias" en archivos (tag/author) */
.archive-back {
    margin-bottom: var(--space-8);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--label-secondary);
    transition: color var(--duration-fast) var(--ease-out), gap var(--duration-fast) var(--ease-out);
}

.back-link:hover {
    color: var(--primary);
    gap: var(--space-3);
    opacity: 1;
}

/* Variante de section-header alineada a la izquierda (related) */
.section-header--left {
    text-align: left;
    margin-bottom: var(--space-10);
}

.section-header--left .section-description { margin-left: 0; }

/* --- Featured post (marca nativa de Ghost) --- */
/* Se mantiene el mismo tamaño que las demás cards (HIG: consistencia).
   Solo se distingue con un badge y un borde de acento sutil. */
.post-card.featured {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    outline: 2px solid rgba(232, 184, 74, 0.6);
    outline-offset: -2px;
}

.post-card.featured .post-card-image::before {
    content: "\f005  Destacado";
    font-family: "Font Awesome 6 Free", var(--font-display);
    font-weight: 700;
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    letter-spacing: 0.03em;
    color: var(--primary);
    background: var(--accent, #E8B84A);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   BÚSQUEDA NATIVA (Ghost sodo-search) — botón lupa
   ============================================ */
.nav-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--label-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.nav-search:hover {
    background: var(--system-gray-6);
    color: var(--primary);
}

/* ============================================
   PORTAL / SUSCRIPCIÓN (Ghost Members)
   ============================================ */
.subscribe-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* ============================================
   KOENIG CARDS — tarjetas nativas del editor Ghost
   ============================================ */

/* Anchos de contenido */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: 1100px;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: none;
    border-radius: 0;
}

/* Imagen con pie de foto */
.kg-image-card {
    margin: var(--space-10) 0;
}

.kg-image-card img.kg-image {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
}

.kg-image-card figcaption,
.kg-embed-card figcaption,
.kg-gallery-card figcaption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--label-secondary);
    margin-top: var(--space-3);
}

/* Galería */
.kg-gallery-card { margin: var(--space-10) 0; }

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.kg-gallery-row {
    display: flex;
    gap: var(--space-3);
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

/* Bookmark (tarjeta de enlace enriquecida) */
.kg-bookmark-card { margin: var(--space-8) 0; }

.kg-bookmark-container {
    display: flex;
    min-height: 148px;
    color: var(--label-primary);
    background: var(--system-background);
    border: 1px solid var(--system-gray-5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
}

.kg-bookmark-container:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    opacity: 1;
}

.kg-bookmark-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-5) var(--space-6);
    overflow: hidden;
}

.kg-bookmark-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--label-primary);
}

.kg-bookmark-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--label-secondary);
    line-height: 1.5;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--label-secondary);
}

.kg-bookmark-icon {
    width: 18px;
    height: 18px;
    margin-right: var(--space-1);
}

.kg-bookmark-thumbnail {
    position: relative;
    flex: 0 0 33%;
    min-height: 148px;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón nativo */
.kg-button-card {
    display: flex;
    margin: var(--space-8) 0;
}

.kg-button-card.kg-align-center { justify-content: center; }
.kg-button-card.kg-align-left { justify-content: flex-start; }

.kg-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-8);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.kg-btn:hover { transform: translateY(-2px); opacity: 0.95; }

.kg-btn-accent {
    background: var(--ghost-accent, var(--primary));
    color: #fff;
}

/* Callout */
.kg-callout-card {
    display: flex;
    gap: var(--space-3);
    margin: var(--space-8) 0;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--secondary-background);
}

.kg-callout-emoji { font-size: var(--text-xl); line-height: 1.4; }

.kg-callout-text { color: var(--label-primary); }

/* Toggle (acordeón) */
.kg-toggle-card {
    margin: var(--space-6) 0;
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--system-gray-5);
    border-radius: var(--radius-lg);
}

.kg-toggle-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.kg-toggle-card.kg-toggle-state-close .kg-toggle-content { display: none; }
.kg-toggle-content { margin-top: var(--space-4); color: var(--label-secondary); }

.kg-toggle-card-icon .kg-toggle-card-icon { transition: transform var(--duration-fast) var(--ease-out); }

/* Embeds y video responsive */
.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--space-8) 0;
}

.kg-embed-card iframe {
    max-width: 100%;
    border-radius: var(--radius-lg);
}

.kg-video-card, .kg-audio-card {
    margin: var(--space-8) 0;
}

/* Product card */
.kg-product-card-container {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    border: 1px solid var(--system-gray-5);
    border-radius: var(--radius-lg);
}

@media (max-width: 640px) {
    .kg-bookmark-container { flex-direction: column-reverse; }
    .kg-bookmark-thumbnail { flex-basis: auto; min-height: 160px; }
    .kg-gallery-row { flex-direction: column; }
}

/* ============================================
   ACCESIBILIDAD TRANSVERSAL (HIG)
   ============================================ */

/* Foco visible por teclado en todo lo interactivo */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.pagination-btn:focus-visible,
.back-link:focus-visible,
.social-link:focus-visible,
.nav-search:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-animate] { opacity: 1 !important; transform: none !important; }

    .marquee-track { animation: none !important; }

    .post-card-more { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   AUTHOR HERO — página de autor/administrador
   ============================================ */

/* El header del autor usa el mismo degradado institucional, más aire */
.archive-header-author {
    min-height: 48vh;
}

.author-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    max-width: 640px;
    margin: 0 auto;
}

/* Avatar con presencia: círculo grande con borde y sombra */
.author-header-avatar,
.author-header-avatar-placeholder {
    width: 104px;
    height: 104px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: var(--space-5);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.author-header-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 2.5rem;
}

/* Nombre y bio */
.archive-header-author .archive-title {
    margin-bottom: var(--space-3);
}

.archive-header-author .archive-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

/* Meta: ubicación + contador como "chips" legibles */
.author-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.author-location,
.archive-count {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.archive-count::before {
    content: "\f1ea"; /* fa-newspaper */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    opacity: 0.85;
}

/* Redes sociales del autor */
.author-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.author-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    transition: transform var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.author-social .social-link:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    opacity: 1;
}

@media (max-width: 767px) {
    .author-header-avatar,
    .author-header-avatar-placeholder {
        width: 84px;
        height: 84px;
        font-size: 2rem;
    }
    .archive-header-author { min-height: 42vh; }
}
