/* /assets/css/guias-setas.css
   Guía de setas del Cantábrico · Valle de Liébana
   - Misma MAQUETACIÓN que guias-aves.css (márgenes, max-width, paddings).
   - Misma NOMENCLATURA de clases (.guia-aves-*, .habitat-block, .animal-card...).
   - Paleta propia: bosque húmedo, musgo, ocre, corteza mojada.
*/

:root {
    --bg-crema: #f8f6f2;          /* fondo general de la guía */
    --bg-card: #ffffff;           /* tarjetas/fichas */
    --line-soft: rgba(0,0,0,0.07);
    --text-main: #2a251c;         /* marrón oscuro con un punto verdoso */
    --text-soft: #5f5748;         /* marrón/gris suave */
    --accent-musgo: #3a5033;      /* chip bosque húmedo */
    --accent-ocre: #8b6a2f;       /* ocre de hojarasca */
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-soft: 0 12px 32px rgba(0,0,0,0.07);
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------
   BODY / BASE
------------------------------------------------- */

.guia-aves-body {
    background-color: var(--bg-crema);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    margin: 0;
}

/* -------------------------------------------------
   HERO
   (mantenemos mismos contenedores y max-width que aves/carnívoros)
------------------------------------------------- */

.guia-aves-hero {
    /* Para setas: normalmente ponemos foto de suelo de hayedo húmedo */
    background:
        radial-gradient(circle at 30% 20%, rgba(58,80,51,0.25) 0%, rgba(248,246,242,0) 60%),
        radial-gradient(circle at 80% 30%, rgba(139,106,47,0.22) 0%, rgba(248,246,242,0) 65%),
        var(--bg-crema);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}
.guia-aves-hero.foto-hero {
    /* Versión con foto de fondo (hero-setas.webp) */
    background-size: cover;
    background-position: center center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.45);
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.guia-aves-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,20,15,0.55), rgba(10,10,6,0.7));
}
.guia-aves-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;          /* MISMO ancho que aves */
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem;  /* MISMO padding lateral */
    text-align: left;
}
.guia-aves-hero.foto-hero .guia-aves-hero-inner {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 900px;
}

.guia-aves-eyebrow {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0 0 .5rem;
}
.guia-aves-hero.foto-hero .guia-aves-eyebrow {
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 4px rgba(0,0,0,.6);
}

.guia-aves-title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 .5rem;
}
.guia-aves-hero.foto-hero .guia-aves-title {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.7);
    font-size: clamp(2rem,6vw,3.4rem);
    margin-bottom: .3em;
}

.guia-aves-subtitle {
    font-size: 1.05rem;
    max-width: 50ch;
    color: var(--text-soft);
    margin: 0 0 1rem;
}
.guia-aves-hero.foto-hero .guia-aves-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.guia-aves-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    font-size: .85rem;
    color: var(--bg-crema);
    margin-bottom: 1rem;
}
.guia-aves-meta span {
    background-color: rgba(58,80,51,0.07);              /* musgo claro */
    border: 1px solid rgba(58,80,51,0.25);
    border-radius: var(--radius-lg);
    padding: .4rem .6rem;
    color: var(--text-main);
}
.guia-aves-hero.foto-hero .guia-aves-meta {
    justify-content: center;
    margin-bottom: 1.2rem;
}
.guia-aves-hero.foto-hero .guia-aves-meta span {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.6);
    border-radius: 999px;
    padding: .35em .9em;
}

.guia-aves-credito {
    font-size: .8rem;
    color: var(--text-soft);
    max-width: 60ch;
    line-height: 1.4;
}
.guia-aves-hero.foto-hero .guia-aves-credito {
    color: rgba(255,255,255,0.7);
    font-size: .85rem;
    text-align: center;
}

/* -------------------------------------------------
   NAV STICKY / CHIPS
   (misma estructura y medidas que el resto de guías)
------------------------------------------------- */

.guia-aves-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-crema);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 10px 20px rgb(0 0 0 / 0.04);
}

.guia-aves-nav-scroll {
    display: flex;
    overflow-x: auto;
    gap: .5rem;
    scrollbar-width: thin;
    max-width: 1200px;  /* MISMO ancho */
    margin: 0 auto;     /* centrado */
    padding: .75rem 1rem; /* MISMO padding lateral */
}

.nav-chip {
    flex-shrink: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: .5rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.nav-chip:active,
.nav-chip:focus,
.nav-chip:hover {
    border-color: var(--accent-musgo);
    color: var(--accent-musgo);
}

/* -------------------------------------------------
   MAIN WRAPPER
   (idéntico layout: max-width 1200, padding 1rem lateral)
------------------------------------------------- */

.guia-aves-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Secciones contenedoras */
.intro,
.habitat-block,
.tips-block,
.mapa-block,
.creditos-block {
    margin-bottom: 3rem;
}

.habitat-head h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 .4rem;
    color: var(--text-main);
}
.habitat-head p {
    margin: 0 0 1rem;
    color: var(--text-soft);
    max-width: 60ch;
    font-size: .95rem;
}

/* -------------------------------------------------
   FICHAS DE SETA
   (reutilizamos .animal-card / .ave-card-header / .ave-columns igual que aves y carnívoros)
------------------------------------------------- */

.animal-card,
.ave-card {
    background-color: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 1rem;
}

.ave-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem .75rem;
    margin-bottom: .75rem;
}

.ave-nombre {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}
.ave-cientifico {
    font-size: .9rem;
    font-weight: 400;
    color: var(--text-soft);
}

.ave-habitat-chip {
    background-color: rgba(58,80,51,0.12);        /* musgo translúcido */
    border: 1px solid rgba(58,80,51,0.4);
    border-radius: var(--radius-lg);
    padding: .3rem .6rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

/* columnas imagen + texto de ficha */
.ave-columns {
    display: grid;
    grid-template-columns: minmax(0,120px) 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .ave-columns {
        grid-template-columns: minmax(0,220px) 1fr;
        gap: 1.25rem 2rem;
    }
}

.ave-foto img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    display: block;
    background-color: #fefefe;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Para la tarjeta con vídeo de YouTube:
   si el <div> con el iframe está dentro de .ave-foto,
   hereda el ancho / radios y queda alineado */
.ave-foto > div {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.ave-info {
    font-size: .9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.animal-desc,
.ave-desc {
    margin: 0 0 .75rem;
    color: var(--text-main);
    font-size: .95rem;
}

.ave-datos {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-soft);
}
.ave-datos li {
    margin-bottom: .4rem;
    font-size: .9rem;
    line-height: 1.4;
}

/* -------------------------------------------------
   BLOQUE DE CONSEJOS / SEGURIDAD
------------------------------------------------- */

.tips-block {
    /* igual spacing que otras secciones, pero con caja visual */
}
.tips-list {
    background-color: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1rem 1rem;
    font-size: .9rem;
    color: var(--text-main);
    line-height: 1.5;
}
.tips-list li {
    margin-bottom: .6rem;
}
.tips-list li:last-child {
    margin-bottom: 0;
}
.tips-list strong {
    color: var(--accent-ocre);
    font-weight: 600;
}

/* -------------------------------------------------
   BLOQUE DE RUTAS / NOTAS (por si lo acabas usando aquí también)
------------------------------------------------- */

.ruta-card {
    background-color: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 1rem;
}
.ruta-titulo {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}
.ruta-desc {
    margin: 0 0 .75rem;
    font-size: .9rem;
    color: var(--text-main);
    line-height: 1.5;
}
.ruta-datos {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-soft);
    font-size: .85rem;
}
.ruta-datos li {
    margin-bottom: .3rem;
}
.nota-mapa {
    font-size: .8rem;
    color: var(--text-soft);
    font-style: italic;
    margin-top: .5rem;
}

/* -------------------------------------------------
   CRÉDITOS / AVISO FINAL
------------------------------------------------- */

.creditos-block {
    font-size: .8rem;
    color: var(--text-soft);
    line-height: 1.5;
    background-color: rgba(58,80,51,0.06);         /* musgo lavado */
    border: 1px solid rgba(58,80,51,0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1rem 1rem;
}
.creditos-texto {
    margin: 0 0 .8rem;
}
.creditos-texto:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------
   MODAL DE IMAGEN (lightbox)
   Igual que en aves/carnívoros para compatibilidad JS:
------------------------------------------------- */

.imgModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: var(--font-stack);
}
.imgModal.open {
    display: flex;
}
.imgModal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px);
}
.imgModal-content {
    position: relative;
    max-width: min(90vw, 800px);
    max-height: 90vh;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,.1);
    padding: 1rem 1rem 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: imgModal-pop .18s ease-out;
}
@keyframes imgModal-pop {
    0% { transform: scale(.9) translateY(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.imgModal-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}
.imgModal-close:hover {
    border-color: var(--accent-musgo);
    color: var(--accent-musgo);
}
#imgModal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    background: #fff;
}
.imgModal-caption {
    font-size: .8rem;
    color: var(--text-soft);
    margin: .75rem 0 .5rem;
    text-align: center;
    max-width: 60ch;
    line-height: 1.4;
}

/* -------------------------------------------------
   RESPONSIVE
   (idéntico patrón responsive que carnivoros para que
   en móviles los márgenes sean iguales en TODAS las guías)
------------------------------------------------- */

@media (max-width: 700px) {
    .guia-aves-hero-inner {
        padding: 2rem 1rem;
    }
    .guia-aves-title {
        font-size: 1.7rem;
    }
    .guia-aves-hero.foto-hero .guia-aves-title {
        font-size: clamp(1.9rem,5vw,2.4rem);
    }

    .guia-aves-nav-scroll {
        padding: .6rem 1rem;
    }

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

    .ave-foto img {
        width: 100%;
        height: auto;
    }
}
