/* ================================================================
   RED NATURA 2000 MÁLAGA — Microsite
   Green Globe SyPA S.L.
   ================================================================ */

/* ----------------------------------------------------------------
   Variables y Reset
---------------------------------------------------------------- */
:root {
    --color-primary:     #00a7ac;
    --color-primary-dk:  #007f83;
    --color-primary-lt:  #e6f8f8;
    --color-dark:        #1a2e35;
    --color-text:        #3a4a4f;
    --color-muted:       #6b7f84;
    --color-light:       #f5f8f8;
    --color-white:       #ffffff;
    --color-border:      #d4e6e7;
    --color-proxima:     #2ecc71;
    --color-finalizada:  #95a5a6;
    --color-en-curso:    #f39c12;

    --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --font-body:    'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;

    --radius:   12px;
    --radius-sm: 6px;
    --shadow:   0 4px 24px rgba(0,0,0,.10);
    --shadow-lg:0 8px 40px rgba(0,0,0,.14);

    --max-w: 1200px;
    --header-h: 70px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dk); }

ul { list-style: none; }

/* ----------------------------------------------------------------
   Layout helpers
---------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--max-w);
    margin-inline: auto;
}

.section {
    padding-block: 90px;
}
.section--light  { background: var(--color-light); }
.section--white  { background: var(--color-white); }
.section--accent { background: var(--color-primary); color: var(--color-white); }

/* ----------------------------------------------------------------
   Tipografía
---------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-dark);
}
.section--accent h1,
.section--accent h2,
.section--accent h3 { color: var(--color-white); }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
h4 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }

/* ----------------------------------------------------------------
   Botones
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dk);
    border-color: var(--color-primary-dk);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,167,172,.35);
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ----------------------------------------------------------------
   CABECERA
---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    height: var(--header-h);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo-link { display: flex; align-items: center; }
.logo-gg   { height: 40px; width: auto; object-fit: contain; }

.main-nav {
    display: flex;
    gap: 2rem;
}
.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-dark);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all .25s;
}

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,20,25,.30) 0%,
        rgba(0,20,25,.50) 45%,
        rgba(0,10,15,.72) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding-block: 120px 80px;
    text-align: center;
}
.hero-programa {
    margin-bottom: 2rem;
}

.hero-programa-titulo {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.75rem);
    color: var(--color-white);
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
    margin-bottom: 1rem;
}

.hero-financiadores {
    background: rgba(255,255,255,.95);
    border-radius: var(--radius-sm);
    padding: .65rem 1.25rem;
    display: inline-block;
    max-width: 90%;
}
.hero-financiadores img {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
}
.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-content h1 span {
    color: var(--color-primary);
}
.hero-sub {
    font-size: 1.15rem;
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-inline: auto;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 12px;
    position: relative;
}
.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,.8);
    border-radius: 2px;
    animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
    0%   { top: 6px; opacity: 1; }
    80%  { top: 20px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

/* ----------------------------------------------------------------
   SECCIÓN HEADER
---------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header--light h2,
.section-header--light p {
    color: var(--color-white);
}
.section-tag {
    display: inline-block;
    background: var(--color-primary-lt);
    color: var(--color-primary-dk);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 50px;
    margin-bottom: .75rem;
}
.section--accent .section-tag {
    background: rgba(255,255,255,.2);
    color: var(--color-white);
}
.section-lead {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 640px;
    margin: .75rem auto 0;
}
.section--accent .section-lead {
    color: rgba(255,255,255,.85);
}

/* ----------------------------------------------------------------
   SOBRE EL PROGRAMA
---------------------------------------------------------------- */
.programa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.programa-text p {
    margin-bottom: 1rem;
    font-size: 1.02rem;
    line-height: 1.8;
}
.programa-cartel {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 360px;
}
.programa-cartel img {
    width: 100%;
    height: auto;
    display: block;
}

.programa-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.stat-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-primary);
}
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: .4rem;
}
.stat-label {
    font-size: .85rem;
    color: var(--color-muted);
    font-weight: 600;
}

/* ----------------------------------------------------------------
   GRID DE ACTIVIDADES
---------------------------------------------------------------- */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* Grid de próximas: centrado y ancho limitado */
.actividades-grid--proximas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
}
.actividades-grid--proximas .actividad-card {
    width: 100%;
    max-width: 480px;
}

.actividad-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.actividad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.actividad-card--proxima {
    border: 2px solid var(--color-proxima);
}

/* Badge */
.actividad-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 50px;
}
.badge--finalizada { background: rgba(0,0,0,.55); color: var(--color-white); }
.badge--proxima    { background: var(--color-proxima); color: var(--color-white); }
.badge--en_curso   { background: var(--color-en-curso); color: var(--color-white); }

/* Imagen */
.actividad-card__img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-light);
}
.actividad-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.actividad-card:hover .actividad-card__img-wrap img {
    transform: scale(1.04);
}

/* Tarjetas próximas: cartel completo sin recorte */
.actividad-card--proxima .actividad-card__img-wrap {
    aspect-ratio: unset;
    height: auto;
}
.actividad-card--proxima .actividad-card__img-wrap img {
    height: auto;
    object-fit: unset;
}
.actividad-card--proxima:hover .actividad-card__img-wrap img {
    transform: none;
}
.actividad-card__img-wrap.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.actividad-card__img-wrap.no-img::after {
    content: '🌿';
    font-size: 3rem;
    opacity: .3;
}

/* Overlay en hover */
.actividad-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,167,172,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.actividad-card:hover .actividad-card__overlay { opacity: 1; }
.btn-ver-mas {
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    border-radius: 50px;
    padding: .65rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: transform .15s;
}
.btn-ver-mas:hover { transform: scale(1.05); }

/* Cuerpo */
.actividad-card__body {
    padding: 1.4rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.actividad-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
}
.actividad-card__espacio {
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-primary-dk);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.actividad-card__fecha {
    font-size: .78rem;
    color: var(--color-muted);
}
.actividad-card__body h3 {
    font-size: 1rem;
    line-height: 1.35;
}
.actividad-card__body p {
    font-size: .9rem;
    color: var(--color-muted);
    line-height: 1.6;
    flex: 1;
}
.actividad-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .25rem;
}
.tag {
    background: var(--color-primary-lt);
    color: var(--color-primary-dk);
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 50px;
}
.inscripcion-box {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.inscripcion-gratuita {
    display: inline-block;
    background: #e8f8ee;
    color: #1a7a3a;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 50px;
    width: fit-content;
}
.inscripcion-limite {
    font-size: .85rem;
    color: var(--color-muted);
}
.btn-inscripcion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-proxima);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: .6rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s;
    width: fit-content;
}
.btn-inscripcion:hover {
    background: #27ae60;
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46,204,113,.35);
}

.actividad-card__municipio {
    font-size: .82rem;
    color: var(--color-muted);
    margin-top: .25rem;
}

/* ----------------------------------------------------------------
   FILTROS
---------------------------------------------------------------- */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.5rem;
}
.filtro-btn {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .82rem;
    padding: .4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all .18s;
}
.filtro-btn:hover,
.filtro-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.actividad-card.hidden { display: none; }

.empty-state {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.1rem;
    padding: 3rem;
}

/* ----------------------------------------------------------------
   SUSCRIPCIÓN
---------------------------------------------------------------- */
.suscripcion-block {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}
.suscripcion-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.suscripcion-block h2 { margin-bottom: .75rem; }
.suscripcion-block > p {
    opacity: .9;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.suscripcion-form { width: 100%; }
.form-group {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.form-group input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: .85rem 1.25rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.15);
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
}
.form-group input[type="email"]::placeholder { color: rgba(255,255,255,.6); }
.form-group input[type="email"]:focus { border-color: var(--color-white); }

.suscripcion-legal {
    font-size: .75rem;
    opacity: .7;
    margin-top: 1.25rem;
    line-height: 1.6;
}
.suscripcion-legal a { color: rgba(255,255,255,.9); text-decoration: underline; }

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,.8);
    padding-top: 3.5rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { filter: brightness(0) invert(1); opacity: .85; height: 35px; margin-bottom: 1rem; }
.footer-brand p  { font-size: .9rem; line-height: 1.7; margin-bottom: .75rem; }
.footer-brand address { font-style: normal; font-size: .88rem; line-height: 1.7; }
.footer-brand a { color: rgba(255,255,255,.7); }
.footer-brand a:hover { color: var(--color-white); }

.footer-nav h4 { color: var(--color-white); margin-bottom: 1rem; }
.footer-nav ul li + li { margin-top: .5rem; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-nav a:hover { color: var(--color-primary); }

.footer-ue {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .6rem;
}
.footer-ue-text {
    font-size: .78rem;
    opacity: .6;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.footer-financiadores {
    background: rgba(255,255,255,.97);
    border-radius: var(--radius-sm);
    padding: .75rem 1.25rem;
    display: block;
    max-width: 320px;
    width: 100%;
}
.footer-financiadores img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-bottom {
    padding-block: 1.25rem;
    background: rgba(0,0,0,.2);
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
}
.footer-bottom p {
    font-size: .82rem;
    opacity: .55;
    margin: 0;
}
.footer-bottom a { color: var(--color-primary); }

/* Legal links */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    font-size: .78rem;
    opacity: .55;
}
.footer-legal a {
    color: var(--color-primary);
    text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }
.footer-legal span { opacity: .5; }

/* ----------------------------------------------------------------
   BLOQUE PRÓXIMAMENTE
---------------------------------------------------------------- */
.proximamente-box {
    text-align: center;
    padding-block: 3rem 3.5rem;
    max-width: 600px;
    margin-inline: auto;
}
.proximamente-icon {
    width: 36px;
    height: 36px;
    margin-inline: auto;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.65);
}
.proximamente-icon svg {
    width: 100%;
    height: 100%;
}
.proximamente-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}
.proximamente-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .9;
    margin-bottom: 2rem;
}

/* ----------------------------------------------------------------
   BANNER DE COOKIES (RGPD)
---------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 1rem 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
    animation: slideUpBanner .35s ease;
}
@keyframes slideUpBanner {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cookie-banner__text {
    flex: 1 1 300px;
    font-size: .88rem;
    line-height: 1.55;
    opacity: .9;
}
.cookie-banner__text a {
    color: var(--color-primary);
    text-decoration: underline;
    margin-left: .25rem;
}
.cookie-banner__actions {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: .55rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, background .2s;
}
.cookie-btn--accept {
    background: var(--color-primary);
    color: var(--color-white);
}
.cookie-btn--accept:hover { background: var(--color-primary-dk); }
.cookie-btn--reject {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,.35);
}
.cookie-btn--reject:hover { background: rgba(255,255,255,.08); }

@media (max-width: 520px) {
    .cookie-banner__actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
    .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ----------------------------------------------------------------
   MODAL
---------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal.open { display: flex; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    cursor: pointer;
}
.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius);
    max-width: 640px;
    width: 100%;
    max-height: 90svh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    animation: modal-in .25s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: sticky;
    top: 1rem;
    float: right;
    margin: 1rem 1rem 0 0;
    background: var(--color-light);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: background .15s;
}
.modal-close:hover { background: var(--color-border); }
.modal-body { padding: 0 2rem 2rem; clear: both; }
.modal-body img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.modal-body h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.modal-body p  { color: var(--color-muted); line-height: 1.75; margin-bottom: .75rem; }
.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.modal-meta-item {
    font-size: .85rem;
    color: var(--color-muted);
}
.modal-meta-item strong { color: var(--color-dark); }

/* ----------------------------------------------------------------
   Animación de entrada (gestionada por JS + IntersectionObserver)
---------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 900px) {
    .programa-grid { grid-template-columns: 1fr; }
    .footer-inner  { grid-template-columns: 1fr 1fr; }
    .footer-ue     { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .section { padding-block: 60px; }

    .main-nav {
        display: none;
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 99;
    }
    .main-nav.open { display: flex; }
    .main-nav a { font-size: 1.1rem; }

    .nav-toggle { display: flex; }

    .hero-content { padding-block: 100px 60px; }
    .hero-cta { flex-direction: column; }

    .actividades-grid { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-financiadores { max-width: 100%; }

    .hero-programa { max-width: 100%; }
    .hero-financiadores { max-width: 100%; width: 100%; }
    .hero-financiadores img { height: auto; width: 100%; }

    .form-group { flex-direction: column; }
    .form-group .btn { width: 100%; justify-content: center; }
}
