/* /assets/css/guias-aves.css
   Estilos específicos para la guía de aves.
   Usa la paleta orgánica de deliebana.es:
   - Marrón / tierra
   - Terracota / arcilla
   - Mostaza cálida
   - Fondo crema suave
*/

:root {
    --bg-crema: #fff9f3;
    --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: #C75B35; /* terracota de tu theme */
    --accent-mostaza: #c19a2e; /* dorado/mostaza orgánico */
    --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;
}

.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 */
.guia-aves-hero {
    background: radial-gradient(circle at 20% 20%, rgba(199,91,53,0.18) 0%, rgba(255,249,243,0) 70%),
                radial-gradient(circle at 80% 30%, rgba(193,154,46,0.22) 0%, rgba(255,249,243,0) 70%),
                var(--bg-crema);
    border-bottom: 1px solid var(--line-soft);
}

.guia-aves-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem;
}

.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-subtitle {
    font-size: 1.05rem;
    max-width: 50ch;
    color: var(--text-soft);
    margin: 0 0 1rem;
}

.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(199,91,53,0.07);
    border: 1px solid rgba(199,91,53,0.2);
    border-radius: var(--radius-lg);
    padding: .4rem .6rem;
}

.guia-aves-credito {
    font-size: .8rem;
    color: var(--text-soft);
    max-width: 60ch;
    line-height: 1.4;
}

/* NAV SUPERIOR TIPO CHIPS */
.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;
    margin: 0 auto;
    padding: .75rem 1rem;
}

.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 */
.guia-aves-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* SECCIONES */
.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 DE AVE */
.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(193,154,46,0.12);
    border: 1px solid rgba(193,154,46,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;
}

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

/* CRÉDITOS */
.creditos-block {
    font-size: .8rem;
    color: var(--text-soft);
    line-height: 1.5;
    background-color: rgba(199,91,53,0.05);
    border: 1px solid rgba(199,91,53,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 */
.guia-aves-footer {
    text-align: center;
    font-size: .75rem;
    color: var(--text-soft);
    padding: 2rem 1rem 4rem;
}

/* ===== Lightbox / Modal imagen ave ===== */

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

/* === Hero con foto de fondo === */
.foto-hero {
  position: relative;
  background-image: url("/assets/img/quebrantahuesos.webp"); /* puedes poner aquí la que quieras */
  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;
  justify-content: center;
}

.foto-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(199,91,53,0.65), rgba(68,41,21,0.7));
  backdrop-filter: brightness(0.9);
}

.foto-hero .guia-aves-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  text-align: center;
}

.foto-hero .guia-aves-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: .3em;
  color: #fff;
}

.foto-hero .guia-aves-subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.foto-hero .guia-aves-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.2rem;
}

.foto-hero .guia-aves-meta span {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: .35em .9em;
  font-size: .9rem;
}

.foto-hero .guia-aves-credito {
  font-size: .85rem;
  color: rgba(255,255,255,0.7);
}
