/* /assets/css/guias-carnivoros.css
   Estilos específicos para la guía de carnívoros.
   Mismo layout que guias-aves.css (max-width, paddings, etc.)
   Cambia sólo la paleta para ambiente bosque / mamíferos nocturnos.
*/

:root {
    --bg-crema: #fff9f3;           /* mantenemos mismo fondo crema para continuidad visual del sitio */
    --bg-card: #ffffff;
    --line-soft: rgba(0,0,0,0.06);
    --text-main: #2b1a12;          /* marrón oscuro legible */
    --text-soft: #6f574b;          /* marrón claro */
    --accent-arcilla: #5a3d1f;     /* para carnívoros: tono tierra más oscuro */
    --accent-mostaza: #8a6a28;     /* dorado más apagado */
    --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;
}

/* cuerpo general */
.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
   OJO: mantenemos mismas clases y misma estructura que guias-aves.css
   para que encaje el spacing y el max-width dentro de *.guia-aves-hero-inner
*/
.guia-aves-hero {
    /* en aves era gradientes; aquí podemos tener foto con overlay oscuro.
       Pero conservamos el border-bottom para que no "flote" diferente */
    background:
        radial-gradient(circle at 20% 20%, rgba(90,61,31,0.18) 0%, rgba(255,249,243,0) 70%),
        radial-gradient(circle at 80% 30%, rgba(138,106,40,0.20) 0%, rgba(255,249,243,0) 70%),
        var(--bg-crema);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}
.guia-aves-hero.foto-hero {
    /* si usas la versión con foto de fondo */
    background-size: cover;
    background-position: center center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.guia-aves-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(45,32,20,0.55), rgba(20,12,8,0.7));
}
.guia-aves-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;          /* <-- igual que guias-aves.css */
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem;  /* <-- igual que guias-aves.css */
    text-align: left;
}
.guia-aves-hero.foto-hero .guia-aves-hero-inner {
    /* versión hero con foto fullscreen:
       centrada en vez de left, pero mantenemos mismo max-width y padding lateral */
    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-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,.6);
    font-size: clamp(2rem,6vw,3.5rem);
    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.2rem;
    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(90,61,31,0.07);              /* tono tierra oscuro */
    border: 1px solid rgba(90,61,31,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)
   IMPORTANTÍSIMO: misma estructura, mismos paddings,
   mismo max-width y margin 0 auto que en guias-aves.css
*/
.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; /* <- igual */
    margin: 0 auto;   /* <- igual */
    padding: .75rem 1rem; /* <- igual */
}
.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;
}
.nav-chip:active,
.nav-chip:focus,
.nav-chip:hover {
    border-color: var(--accent-arcilla);
    color: var(--accent-arcilla);
}

/* MAIN WRAPPER
   MISMO max-width / padding lateral de aves
*/
.guia-aves-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* SECCIONES (intro / habitat-block / tips-block / mapa-block / creditos-block) */
.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;
}

/* TARJETA ANIMAL (mantenemos .ave-card porque tu HTML la usa, y añadimos .animal-card por si la usas en carnívoros) */
.ave-card,
.animal-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(138,106,40,0.12);        /* mostaza más apagada */
    border: 1px solid rgba(138,106,40,0.4);
    border-radius: var(--radius-lg);
    padding: .3rem .6rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.ave-columns {
    display: grid;
    grid-template-columns: minmax(0,120px) 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .ave-columns {
        grid-template-columns: minmax(0,200px) 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: #fdfdfd;
    object-fit: cover;
}

.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;
}

/* LISTA CONSEJOS */
.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-arcilla);
    font-weight: 600;
}

/* RUTAS */
.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 */
.creditos-block {
    font-size: .8rem;
    color: var(--text-soft);
    line-height: 1.5;
    background-color: rgba(90,61,31,0.05);
    border: 1px solid rgba(90,61,31,0.18);
    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;
}

/* FOOTER OPCIONAL */
.guia-aves-footer {
    text-align: center;
    font-size: .75rem;
    color: var(--text-soft);
    padding: 2rem 1rem 4rem;
}

/* MODAL IMAGEN (idéntico layout al de aves: no tocamos medidas ni posicionamiento) */
.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-arcilla);
    color: var(--accent-arcilla);
}
#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;
}
