/*
  Estilo de Mi Pequeño Mundo.
  El fondo escénico (static/img/hero-bg.svg) queda fijo detrás de toda la web,
  en todas las páginas, vía .page-bg (ver base.html).
  El contenido de la página de inicio se organiza en secciones de una sola
  columna; dentro de cada sección los ítems se ordenan en una sola fila.
  Las animaciones con GSAP se agregarán en static/js/main.js más adelante.
*/

:root {
    /* Tipografía */
    --font-heading: 'Fredoka', 'Quicksand', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Paleta (regla 60-30-10) */
    --color-cream: #faf8f5;       /* 60% dominante: fondos y espacio negativo */
    --color-mint: #8fa89b;        /* 30% secundario */
    --color-sky: #92b4a7;         /* 30% secundario */
    --color-leaf: #6fb076;        /* 10% acento: títulos, links y CTA principal */
    --color-forest: #3e7c4f;      /* acento secundario: hover y botones secundarios */
    --color-charcoal: #2b2d2f;    /* texto: gris carbón cálido */

    /* Alias que usan los componentes del sitio */
    --color-amber: var(--color-leaf);
    --color-tiger: var(--color-leaf);
    --color-punch: var(--color-forest);
    --color-purple: var(--color-sky);
    --color-blue: var(--color-mint);

    --color-primary: var(--color-leaf);
    --color-primary-dark: var(--color-forest);

    --color-bg: var(--color-cream);
    --color-bg-alt: #f2eee7;
    --color-text: var(--color-charcoal);
    --color-text-light: #6b6d6f;
    --color-white: #ffffff;
    --color-dark: var(--color-charcoal);

    /* Geometría */
    --radius-btn: 14px;
    --radius: 24px;
    --radius-sm: 16px;
    --max-width: 1140px;

    /* Sombras suaves */
    --shadow: 0 10px 30px rgba(43, 45, 47, 0.1);
    --shadow-lg: 0 20px 45px rgba(43, 45, 47, 0.14);
}

* { box-sizing: border-box; }

html, body { background: transparent; }

body {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.65;
    position: relative;
}

/* Fondo escénico fijo, visible detrás de toda la página en todo momento */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #e0f2fe;
    background-image: url("../img/hero-bg.7a6f1cdf7bd4.svg");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Mascotas flotantes: decoración animada por GSAP, detrás de header/main/footer */
.floating-mascots {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mascot {
    position: absolute;
    width: 70px;
    height: 70px;
    opacity: 0.5;
    filter: drop-shadow(0 8px 16px rgba(43, 45, 47, 0.12));
}

.mascot-sol { top: 10%; left: 6%; width: 80px; }
.mascot-nube { top: 20%; right: 8%; width: 100px; }
.mascot-estrella { bottom: 22%; left: 12%; width: 60px; }
.mascot-sol-2 { bottom: 12%; right: 14%; width: 55px; }
.mascot-estrella-2 { top: 48%; left: 45%; width: 40px; opacity: 0.35; }

/* Jerarquía tipográfica */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-text); margin: 0 0 0.5rem; }
h1 { font-size: 2.75rem; line-height: 1.15; font-weight: 800; }
h2 { font-size: 2rem; line-height: 1.25; font-weight: 700; }
h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 700; }
h4 { font-size: 1.15rem; line-height: 1.35; font-weight: 700; }
p { font-size: 1rem; line-height: 1.6; font-weight: 400; margin: 0 0 1rem; }
small, .text-small { font-size: 0.875rem; line-height: 1.5; font-weight: 500; }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header: transparente sobre el hero, sólido al hacer scroll (ver static/js/main.js) */
.site-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Texto claro mientras el header flota transparente sobre la foto (el nombre del jardín se mantiene siempre verde, ver .brand) */
.site-header:not(.is-scrolled) .site-nav a:not(.nav-cta) {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }

/* El menú móvil desplegado siempre tiene fondo blanco sólido: su texto debe seguir oscuro */
.site-header .site-nav.open a:not(.nav-cta) { color: var(--color-text); text-shadow: none; }

/* Deja espacio para el header fijo; el hero de Inicio lo cancela para llegar hasta arriba */
main { padding-top: var(--header-h, 92px); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.65);
}

.brand-logo { height: 48px; width: auto; }

.brand-mark {
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    font-size: 1.4rem;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }

.site-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.site-nav a:hover { color: var(--color-primary-dark); }
.site-nav a.nav-cta:hover { color: var(--color-charcoal); }

.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: var(--color-leaf);
    color: var(--color-charcoal);
    text-decoration: none;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-family: var(--font-heading);
    border: 2px solid var(--color-leaf);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--color-forest); border-color: var(--color-forest); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--color-primary-dark);
    border-color: var(--color-forest);
    box-shadow: none;
}

.btn-outline:hover { background: var(--color-forest); color: #fff; }
.btn-outline:active { background: var(--color-forest); color: #fff; opacity: 0.9; }

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.9rem; }

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.15rem; }

.admision-cta { margin-top: 2rem; text-align: center; }

/* Hero: texto a la izquierda, imagen a la derecha (mismo patrón en todas las páginas) */
/* Hero: foto de fondo propia a todo el alto del viewport, bajo el header fijo (igual en todas las páginas) */
.hero {
    position: relative;
    overflow: hidden;
    background-image: url("../img/hero-inicio-bg.e5e833e9fbb7.jpeg");
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    margin-top: calc(-1 * var(--header-h, 92px));
    padding: calc(3.5rem + var(--header-h, 92px)) 0 5.5rem;
    display: grid;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Velo oscuro sobre la foto de fondo para que el texto siga siendo legible */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 45, 47, 0.32), rgba(43, 45, 47, 0.12));
    z-index: 0;
}

/* Onda divisora orgánica al pie del hero */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,90 480,0 720,30 C960,60 1200,90 1440,40 L1440,100 L0,100 Z' fill='%23faf8f5' fill-opacity='0.92'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hero de Inicio: una sola columna centrada (las demás páginas usan el layout de dos columnas de .hero-inner) */
.hero-inicio .hero-inner { grid-template-columns: 1fr; }

.hero-inicio .hero-text-panel { max-width: none; }

.hero-text-panel {
    background: rgba(250, 248, 245, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow);
}

.hero-heading { display: flex; align-items: center; gap: 1.1rem; }
.hero-logo { height: 96px; width: auto; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12)); }
.hero-text h1 { font-size: 2.75rem; line-height: 1.15; color: var(--color-primary-dark); }
.hero-subtitle { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media { position: relative; width: 100%; }

/* Blob orgánico decorativo detrás de la imagen del hero */
.hero-media::before {
    content: '';
    position: absolute;
    inset: -10% -10% 10% 10%;
    background: var(--color-mint);
    opacity: 0.4;
    border-radius: 63% 37% 54% 46% / 55% 45% 55% 45%;
    z-index: 0;
    animation: blobMorph 9s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 63% 37% 54% 46% / 55% 45% 55% 45%; }
    50% { border-radius: 42% 58% 47% 53% / 41% 55% 45% 59%; }
}

.hero-media img,
.hero-media-placeholder {
    position: relative;
    z-index: 1;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.hero-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.75);
    border: 2px dashed var(--color-mint);
    color: var(--color-text-light);
}

.hero-media-placeholder .placeholder-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Secciones: una columna, ancho completo */
.section { padding: 2.5rem 0; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.section-link {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 700;
}

.section-link:hover { text-decoration: underline; }

.rich-text img { border-radius: var(--radius-sm); margin: 1rem 0; }

/* Tarjeta de sección: contenedor legible sobre el fondo escénico */
.section-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.25rem;
}

.section-card h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-primary-dark);
    font-size: 1.4rem;
}

.section-card h2:not(:first-child) { margin-top: 2rem; }

/* Niveles (una fila de ítems) */
.level-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.level-item {
    flex: 1 1 220px;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
}

.level-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.level-item h3 { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--color-text); }
.level-item p { margin: 0; color: var(--color-text-light); font-size: 0.92rem; }

/* Aviso destacado */
.callout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
    margin-top: 1.25rem;
}

.callout-warning {
    background: #e9f4ec;
    border: 1px solid var(--color-forest);
}

.callout-icon { font-size: 1.4rem; flex-shrink: 0; }
.callout strong { color: var(--color-punch); display: block; margin-bottom: 0.2rem; }
.callout p { margin: 0; color: var(--color-text); }

/* Fila de valores (feature row) */
.feature-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item p { color: var(--color-text-light); font-size: 0.92rem; margin: 0.2rem 0 0; }
.feature-item h3 { margin: 0; font-size: 1.02rem; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-icon-amber { background: #faecd0; }
.feature-icon-punch { background: #f8e1d9; }
.feature-icon-blue { background: #e6ede9; }
.feature-icon-purple { background: #e5ece8; }

/* Fila desplazable (previews de actividades / galería en inicio) */
.preview-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.preview-row .card,
.preview-row .gallery-thumb { scroll-snap-align: start; flex: 0 0 auto; }

/* Tarjetas (actividades) */
.card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease;
    width: 240px;
}

.card:hover { transform: translateY(-4px); }

.card img,
.card-img-placeholder { height: 160px; width: 100%; object-fit: cover; }

.card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--color-bg-alt);
}

.card-body { padding: 1rem 1.1rem 1.3rem; }

.card-date {
    display: inline-block;
    color: var(--color-primary-dark);
    background: var(--color-bg-alt);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: capitalize;
}

.card h3 { margin: 0.6rem 0 0; font-size: 1.05rem; }
.card-snippet { color: var(--color-text-light); font-size: 0.85rem; margin: 0.4rem 0 0; }

/* Semanas de actividades */
.week-block {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.25rem;
}

.week-block + .week-block { margin-top: 2rem; }

.week-title { color: var(--color-primary-dark); margin-bottom: 1.5rem; }

.week-summary { margin-bottom: 1.5rem; }

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

.day-card {
    border: 2px solid var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
}

.day-card .card-date { margin-bottom: 0.5rem; text-transform: none; }

.day-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.day-card-header .card-date {
    background: none;
    padding: 0;
    margin-bottom: 0;
    text-transform: none;
    font-size: 1rem;
    color: var(--color-charcoal);
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #e5f1fb;
    color: #2f6fb0;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.day-card h3 { color: var(--color-tiger); margin: 0 0 0.5rem; }
.day-card img { border-radius: var(--radius-sm); margin-top: 1rem; max-width: 320px; }

/* Galería: tarjetas de 3 columnas con imagen + descripción */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.gallery-item {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption { padding: 1rem 1.15rem 1.3rem; }
.gallery-item figcaption h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.gallery-item figcaption p { font-size: 0.9rem; color: var(--color-text-light); margin: 0; }

/* Mapa de ubicación en la página de inicio */
.map-address { color: var(--color-text-light); margin: 0 0 1rem; }

.map-embed {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link { margin-top: 1.25rem; display: inline-flex; }

/* Tarjeta que enlaza al blog del jardín (página de inicio) */
.blog-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.blog-card-body { flex: 1 1 260px; }
.blog-card-body h2 { color: var(--color-primary-dark); margin-bottom: 0.3rem; }
.blog-card-body p { margin: 0; color: var(--color-text-light); }

/* Documentos: tarjetas con título, descripción y botón de descarga */
.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.documento-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.documento-icon { font-size: 2rem; flex-shrink: 0; }
.documento-body h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.documento-body p { font-size: 0.92rem; color: var(--color-text-light); margin: 0 0 1rem; }

/* Miniaturas de galería en la fila de vista previa del inicio */
.gallery-thumb { width: 180px; }

.gallery-thumb img {
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.gallery-thumb img:hover { transform: scale(1.03); }

.gallery-item-btn {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

/* Miniatura de video de YouTube: mismo formato que una foto, con ícono de play superpuesto */
.gallery-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-play-icon span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(43, 45, 47, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    padding-left: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-item-video:hover .gallery-play-icon span { transform: scale(1.1); background: var(--color-forest); }

.gallery-item-btn:focus-visible img { outline: 3px solid var(--color-leaf); outline-offset: 3px; }

/* Lightbox de galería */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(43, 45, 47, 0.78);
}

.lightbox.is-open { display: flex; }

.lightbox-dialog {
    position: relative;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    background: var(--color-cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lightbox-media {
    width: 100%;
    max-height: 65vh;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media img { max-width: 100%; max-height: 65vh; width: auto; object-fit: contain; }

.lightbox-body { padding: 1.25rem 1.5rem 1.5rem; }
.lightbox-body h3 { margin-bottom: 0.35rem; }
.lightbox-body p { margin: 0; color: var(--color-text-light); }

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-white);
    color: var(--color-charcoal);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover { background: var(--color-forest); color: #fff; }

.content-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.25rem;
}

.content-actions { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }

.empty-state { color: var(--color-text-light); text-align: center; padding: 2rem 0; }

/* Sobre Nosotros */
.mision-vision-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sellos-educativos h3 { color: var(--color-primary-dark); margin-top: 1.5rem; }
.sellos-educativos h3:first-child { margin-top: 0; }

.valores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.valor-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Activities list (página de actividades) */
.activity-list { display: flex; flex-direction: column; gap: 1.5rem; }

.activity-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.activity-item img,
.activity-item .card-img-placeholder { border-radius: var(--radius-sm); height: 100%; min-height: 160px; object-fit: cover; }

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--color-leaf), var(--color-forest));
    color: #fff;
    margin-top: 2rem;
}

.cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
}

.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0.3rem 0 0; opacity: 0.9; }

.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band-actions .btn { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.cta-band-actions .btn:hover { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.cta-band-actions .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.cta-band-actions .btn-outline:hover { background: #fff; color: var(--color-primary-dark); }

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: #eee;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.75rem;
    padding: 2.75rem 1.25rem 1.5rem;
}

.footer-inner .lema { font-style: italic; color: #ccc; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a,
.footer-redes a,
.footer-contacto p { color: #d8d3cc; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--color-amber); }
.footer-contacto p { margin: 0 0 0.3rem; }
.footer-redes { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-redes a { text-decoration: none; }
.footer-redes a:hover { color: var(--color-amber); }

.footer-map {
    min-width: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.15);
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: #a89f94;
    padding: 1rem 0 1.5rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; max-width: 320px; margin: 0 auto; }
    .activity-item { grid-template-columns: 1fr; }
    .activity-item img,
    .activity-item .card-img-placeholder { height: 200px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 1.25rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    }

    .site-nav.open { display: flex; }
    .nav-cta { margin-left: 0; }

    .hero-text h1 { font-size: 1.9rem; }
    .hero-logo { height: 64px; }
    .hero-text-panel { padding: 1.5rem; }
    .section-card { padding: 1.5rem; }
    .cta-band-inner { flex-direction: column; text-align: center; }
    .level-row, .feature-row { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; }
}
