/* ==========================================================================
   Huellaranda · hoja de estilos principal (rediseño 2026)
   Paleta tomada del logo: azul tinta + naranja, sobre crema cálido.
   ========================================================================== */

:root {
  --crema: #fbf6ee;
  --crema-2: #f4ebdd;
  --arena: #ead9c1;
  --blanco: #ffffff;
  --tinta: #1d3341;          /* azul del logo */
  --tinta-2: #4a5b66;
  --tinta-3: #7b8790;
  --naranja: #e5640f;        /* naranja del logo */
  --naranja-hover: #c95409;
  --naranja-suave: #fde4d0;
  --salvia: #5f7d5c;
  --salvia-suave: #e3ebdc;
  --rosa: #f3c9bd;
  --linea: rgba(29, 51, 65, .12);

  --f-titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --f-texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --sombra: 0 1px 2px rgba(29,51,65,.06), 0 8px 24px rgba(29,51,65,.08);
  --sombra-alta: 0 2px 4px rgba(29,51,65,.06), 0 18px 40px rgba(29,51,65,.14);
  --ancho: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--naranja); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--naranja-hover); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 800; }
h1, h2, h3, h4, h5 {
  font-family: var(--f-titulo);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
em.acento, .acento { font-style: italic; color: var(--naranja); }
::selection { background: var(--naranja-suave); }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.contenedor-estrecho { max-width: 820px; }
.seccion { padding: clamp(56px, 8vw, 110px) 0; }
.seccion-s { padding: clamp(40px, 5vw, 64px) 0; }
.fondo-arena { background: var(--crema-2); }
.fondo-salvia { background: var(--salvia-suave); }
.fondo-tinta { background: var(--tinta); color: #f4ede3; }
.fondo-tinta h2, .fondo-tinta h3 { color: #fff; }
.centrado { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.texto-suave { color: var(--tinta-2); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--tinta-2); line-height: 1.6; }

/* Antetítulo con huella */
.ante {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-texto); font-weight: 800; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--naranja);
  margin-bottom: .9rem;
}
.ante i { font-size: 1rem; transform: rotate(-18deg); }
.cabecera-seccion { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.cabecera-seccion p { color: var(--tinta-2); font-size: 1.12rem; }
.cabecera-seccion.izq { margin-left: 0; text-align: left; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-texto); font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primario { background: var(--naranja); color: #fff; box-shadow: 0 6px 18px rgba(229,100,15,.32); }
.btn-primario:hover { background: var(--naranja-hover); color: #fff; box-shadow: 0 10px 24px rgba(229,100,15,.38); }
.btn-tinta { background: var(--tinta); color: #fff; }
.btn-tinta:hover { background: #12232e; color: #fff; }
.btn-borde { border-color: currentColor; color: var(--tinta); background: transparent; }
.btn-borde:hover { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.btn-claro { background: #fff; color: var(--tinta); }
.btn-claro:hover { background: var(--crema-2); color: var(--tinta); }
.btn-borde-claro { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-borde-claro:hover { background: #fff; color: var(--tinta); border-color: #fff; }
.btn-s { padding: .6em 1.15em; font-size: .92rem; }
.btn-bloque { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.enlace-flecha { font-weight: 800; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.enlace-flecha i { transition: transform .2s; }
.enlace-flecha:hover i { transform: translateX(4px); }

/* ---------- Cabecera / navegación ---------- */
.aviso-top {
  background: var(--tinta); color: #e9e1d5; font-size: .88rem; text-align: center; padding: .5em var(--gutter);
}
.aviso-top a { color: #fff; font-weight: 800; }
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.cabecera.con-sombra { border-color: var(--linea); box-shadow: 0 6px 20px rgba(29,51,65,.06); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a, .nav button.nav-desplegar {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .55em .85em; border-radius: 999px; color: var(--tinta); font-weight: 700; font-size: .98rem;
  text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav a:hover, .nav button.nav-desplegar:hover, .nav .activo > a, .nav .activo > button { background: var(--crema-2); color: var(--tinta); }
.nav .activo > a { color: var(--naranja); }
.nav .btn-primario { color: #fff; background: var(--naranja); margin-left: 10px; padding: .7em 1.3em; border-radius: 999px; }
.nav .btn-primario:hover { background: var(--naranja-hover); color: #fff; }
.nav .btn-primario i { animation: latido 2.4s ease-in-out infinite; }
@keyframes latido { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } 90% { transform: scale(1.05); } }

.desplegable { position: relative; }
.nav-desplegar i { font-size: .7em; transition: transform .2s; }
.desplegable.abierto .nav-desplegar i { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 560px; background: #fff; border-radius: var(--r-m); box-shadow: var(--sombra-alta);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.desplegable.abierto .submenu, .desplegable:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1081px) {
  .desplegable:hover .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .desplegable::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
}
.submenu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; white-space: normal; }
.submenu a:hover { background: var(--crema); }
.submenu .ico {
  flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--naranja-suave); color: var(--naranja); font-size: 1rem;
}
.submenu .ico.v { background: var(--salvia-suave); color: var(--salvia); }
.submenu strong { display: block; font-size: .98rem; }
.submenu small { display: block; color: var(--tinta-3); font-weight: 600; font-size: .82rem; line-height: 1.35; }

.boton-menu {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--crema-2);
  color: var(--tinta); font-size: 1.2rem; cursor: pointer;
}

@media (max-width: 1080px) {
  /* backdrop-filter crearía un bloque contenedor y el menú fixed quedaría encerrado en la cabecera */
  .cabecera { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--crema); }
  .boton-menu { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 78px 0 0 0; background: var(--crema); flex-direction: column; align-items: stretch;
    padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
    visibility: hidden;
  }
  body.menu-abierto { overflow: hidden; }
  body.menu-abierto .nav { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--linea); }
  .nav a, .nav button.nav-desplegar { padding: 1em .4em; font-size: 1.1rem; border-radius: 0; width: 100%; justify-content: space-between; }
  .nav a:hover, .nav .activo > a { background: none; }
  .submenu { position: static; transform: none; width: auto; box-shadow: none; grid-template-columns: 1fr; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; background: transparent; }
  .desplegable.abierto .submenu { display: grid; transform: none; }
  .submenu a { padding: 10px 6px; justify-content: flex-start; }
  .nav .btn-primario { margin: 24px 0 0; justify-content: center; width: 100%; padding: 1em; }
}
@media (max-width: 480px) { .logo img { height: 42px; } }

/* ---------- Hero portada ---------- */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: acercar 22s ease-out both; }
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,34,44,.78) 0%, rgba(20,34,44,.45) 45%, rgba(20,34,44,0) 75%),
    linear-gradient(0deg, rgba(20,34,44,.55) 0%, rgba(20,34,44,0) 45%);
}
.hero .contenedor { padding-top: 120px; padding-bottom: clamp(56px, 9vw, 110px); }
.hero-texto { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.7rem); line-height: 1.02; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: #ffc59b; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: rgba(255,255,255,.92); max-width: 540px; }
.hero .ante { color: #ffc59b; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .hero-img img { object-position: 68% center; }
  .hero::before { background: linear-gradient(0deg, rgba(20,34,44,.92) 0%, rgba(20,34,44,.75) 50%, rgba(20,34,44,.15) 85%); }
  .cabecera-pagina::before { background: linear-gradient(0deg, rgba(20,34,44,.9), rgba(20,34,44,.55)); }
}
.ondita { display: block; width: 100%; height: 60px; margin-top: -59px; position: relative; z-index: 2; color: var(--crema); }

/* ---------- Cabecera de página interior ---------- */
.cabecera-pagina {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  padding: clamp(90px, 13vw, 170px) 0 clamp(70px, 9vw, 110px);
}
.cabecera-pagina .fondo { position: absolute; inset: 0; z-index: -2; }
.cabecera-pagina .fondo picture, .hero-img picture { display: block; width: 100%; height: 100%; }
.cabecera-pagina .fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.cabecera-pagina::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,34,44,.82), rgba(20,34,44,.35) 70%, rgba(20,34,44,.15)); }
.cabecera-pagina h1 { color: #fff; max-width: 780px; margin-bottom: .3em; }
.cabecera-pagina p { max-width: 620px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.9); margin: 0; }
.cabecera-pagina .ante { color: #ffc59b; }
.cabecera-pagina.simple { background: var(--tinta); padding: clamp(70px, 9vw, 120px) 0 clamp(50px, 6vw, 80px); }
.cabecera-pagina.simple::before { background: radial-gradient(circle at 85% 30%, rgba(229,100,15,.35), transparent 50%); }
.migas { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4em; font-size: .9rem; color: rgba(255,255,255,.75); }
.migas li + li::before { content: "›"; margin-right: .4em; }
.migas a { color: #fff; text-decoration: none; font-weight: 700; }

/* ---------- Cifras ---------- */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); margin-top: -70px; position: relative; z-index: 3; }
.cifra {
  background: #fff; border-radius: var(--r-m); padding: 26px 22px; box-shadow: var(--sombra-alta);
  display: flex; align-items: center; gap: 16px;
}
.cifra .ico { flex: 0 0 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.4rem; background: var(--naranja-suave); color: var(--naranja); }
.cifra:nth-child(2) .ico { background: var(--salvia-suave); color: var(--salvia); }
.cifra:nth-child(3) .ico { background: #e3e8ee; color: var(--tinta); }
.cifra b { display: block; font-family: var(--f-titulo); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; font-weight: 600; }
.cifra span { color: var(--tinta-2); font-weight: 600; font-size: .95rem; line-height: 1.3; display: block; margin-top: 4px; }
@media (max-width: 760px) { .cifras { grid-template-columns: 1fr; margin-top: -40px; } }

/* ---------- Rejillas ---------- */
.rejilla { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.rejilla-2 { grid-template-columns: repeat(2, 1fr); }
.rejilla-3 { grid-template-columns: repeat(3, 1fr); }
.rejilla-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .rejilla-4 { grid-template-columns: repeat(2, 1fr); } .rejilla-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rejilla-2, .rejilla-3, .rejilla-4 { grid-template-columns: 1fr; } }
.dos-columnas { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.dos-columnas.invertido > :first-child { order: 2; }
.dos-columnas.arriba { align-items: start; }
@media (max-width: 900px) { .dos-columnas { grid-template-columns: 1fr; } .dos-columnas.invertido > :first-child { order: 0; } }

/* ---------- Tarjeta de animal ---------- */
.animal {
  background: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; position: relative;
}
.animal:hover { transform: translateY(-6px); box-shadow: var(--sombra-alta); }
.animal-foto { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--crema-2); }
.animal-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.animal:hover .animal-foto img { transform: scale(1.05); }
.animal-etiqueta {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94); color: var(--tinta);
  padding: .3em .8em; border-radius: 999px; font-size: .8rem; font-weight: 800; display: inline-flex; gap: .4em; align-items: center;
}
.animal-etiqueta.feliz { background: var(--salvia); color: #fff; }
.animal-cuerpo { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.animal h3 { font-size: 1.55rem; margin: 0 0 .35em; text-transform: capitalize; }
.animal h3 a { color: inherit; text-decoration: none; }
.animal h3 a::after { content: ""; position: absolute; inset: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { background: var(--crema); border-radius: 999px; padding: .28em .75em; font-size: .82rem; font-weight: 700; color: var(--tinta-2); }
.animal-pie { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--naranja); }
.animal-pie i { width: 38px; height: 38px; border-radius: 50%; background: var(--naranja-suave); display: grid; place-items: center; transition: background .2s, color .2s; }
.animal:hover .animal-pie i { background: var(--naranja); color: #fff; }
.rejilla-animales { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; margin-bottom: 36px; }
.grupo-filtro { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--sombra); }
.grupo-filtro button {
  border: 0; background: transparent; padding: .55em 1.1em; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: .92rem; color: var(--tinta-2); cursor: pointer;
}
.grupo-filtro button:hover { color: var(--tinta); }
.grupo-filtro button.activo { background: var(--tinta); color: #fff; }
.sin-resultados { text-align: center; color: var(--tinta-2); padding: 40px 0; display: none; }

/* ---------- Tarjetas de ayuda ---------- */
.ayuda {
  position: relative; background: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; text-decoration: none; color: inherit;
}
.ayuda:hover { transform: translateY(-6px); box-shadow: var(--sombra-alta); color: inherit; }
.ayuda-foto { aspect-ratio: 4 / 3; overflow: hidden; }
.ayuda-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ayuda:hover .ayuda-foto img { transform: scale(1.06); }
.ayuda-cuerpo { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ayuda h3 { margin-bottom: .3em; }
.ayuda p { color: var(--tinta-2); font-size: .98rem; }
.ayuda .enlace-flecha { margin-top: auto; color: var(--naranja); }
.ayuda.destacada { outline: 3px solid var(--naranja); }
.ayuda .sello {
  position: absolute; top: 14px; right: 14px; background: var(--naranja); color: #fff; font-weight: 800; font-size: .78rem;
  padding: .35em .8em; border-radius: 999px; letter-spacing: .04em;
}

/* ---------- Bloques de icono ---------- */
.icono-bloque { display: flex; gap: 16px; align-items: flex-start; }
.icono-bloque .ico {
  flex: 0 0 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.25rem;
  background: var(--naranja-suave); color: var(--naranja);
}
.icono-bloque.v .ico { background: var(--salvia-suave); color: var(--salvia); }
.icono-bloque h3, .icono-bloque h4 { margin-bottom: .25em; font-size: 1.2rem; }
.icono-bloque p { color: var(--tinta-2); margin: 0; font-size: .98rem; }
.caja { background: #fff; border-radius: var(--r-l); padding: clamp(22px, 3vw, 36px); box-shadow: var(--sombra); }
.caja-crema { background: var(--crema-2); border-radius: var(--r-l); padding: clamp(22px, 3vw, 36px); }

/* Lista con huellas */
.lista-huella { list-style: none; padding: 0; margin: 0 0 1.2em; }
.lista-huella li { position: relative; padding-left: 2em; margin-bottom: .7em; }
.lista-huella li::before {
  content: "\f1b0"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1em;
  color: var(--naranja); transform: rotate(-18deg); font-size: .95em;
}

/* ---------- Foto con marco ---------- */
.foto-marco { position: relative; }
.foto-marco img { border-radius: var(--r-l); box-shadow: var(--sombra-alta); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.foto-marco::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--r-l); background: var(--naranja-suave); z-index: -1;
}
.foto-marco.v::before { background: var(--salvia-suave); }
.foto-marco .bocadillo {
  position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: var(--r-m); padding: 14px 18px;
  box-shadow: var(--sombra-alta); font-weight: 800; display: flex; align-items: center; gap: 10px; max-width: 270px; line-height: 1.3;
}
.foto-marco .bocadillo i { color: var(--naranja); font-size: 1.5rem; }
@media (max-width: 640px) { .foto-marco::before { inset: 12px -10px -12px 10px; } .foto-marco .bocadillo { left: 10px; } }

/* ---------- Cita / manifiesto ---------- */
.manifiesto { text-align: center; max-width: 900px; margin: 0 auto; }
.manifiesto blockquote {
  font-family: var(--f-titulo); font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.2; margin: 0 0 .6em; font-weight: 500;
}
.manifiesto blockquote em { color: #ffb37f; }
.manifiesto cite { font-style: normal; color: #cdbfae; font-weight: 700; }
.huellas-deco { position: absolute; color: rgba(255,255,255,.05); font-size: 120px; pointer-events: none; }

/* ---------- Final feliz destacado ---------- */
.historia {
  display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sombra-alta);
}
.historia-foto { min-height: 360px; position: relative; }
.historia-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.historia-texto { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.historia-texto blockquote { margin: 0 0 1.2em; font-size: 1.12rem; color: var(--tinta-2); position: relative; padding-left: 1.2em; border-left: 3px solid var(--naranja); }
@media (max-width: 800px) { .historia { grid-template-columns: 1fr; } .historia-foto { min-height: 280px; } }

/* ---------- Noticias ---------- */
.noticia-tarjeta {
  background: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s; position: relative;
}
.noticia-tarjeta:hover { transform: translateY(-5px); box-shadow: var(--sombra-alta); }
.noticia-foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--crema-2); }
.noticia-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.noticia-tarjeta:hover .noticia-foto img { transform: scale(1.05); }
.noticia-foto.vacia { display: grid; place-items: center; color: var(--arena); font-size: 3rem; }
.noticia-cuerpo { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.noticia-fecha { font-size: .84rem; font-weight: 800; color: var(--naranja); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5em; }
.noticia-tarjeta h3 { font-size: 1.3rem; margin-bottom: .45em; }
.noticia-tarjeta h3 a { color: var(--tinta); text-decoration: none; }
.noticia-tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.noticia-tarjeta p { color: var(--tinta-2); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.buscador { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 40px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--sombra); }
.buscador input { flex: 1; border: 0; background: transparent; padding: 0 16px; font: inherit; color: var(--tinta); min-width: 0; }
.buscador input:focus { outline: none; }

/* Artículo */
.articulo { font-size: 1.1rem; }
.articulo img { border-radius: var(--r-m); margin: 1.5em 0; }
.articulo h2, .articulo h3 { margin-top: 1.4em; }
.articulo-lateral img { border-radius: var(--r-m); margin-bottom: 14px; box-shadow: var(--sombra); }
.articulo-lateral iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--r-m); margin-bottom: 14px; }
.archivo { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--crema); border-radius: 12px; margin-bottom: 8px; text-decoration: none; color: var(--tinta); font-weight: 700; }
.archivo img { width: 36px; margin: 0; box-shadow: none; border-radius: 0; }

/* ---------- Banda CTA ---------- */
.banda-cta {
  position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--naranja); color: #fff;
  padding: clamp(34px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; isolation: isolate;
}
.banda-cta::before { content: "\f1b0"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -30px; top: -40px; font-size: 260px; color: rgba(255,255,255,.1); transform: rotate(-20deg); z-index: -1; }
.banda-cta h2 { color: #fff; margin-bottom: .25em; }
.banda-cta p { margin: 0; font-size: 1.12rem; color: rgba(255,255,255,.92); max-width: 620px; }
.banda-cta .botones { display: flex; gap: 12px; flex-wrap: wrap; }
.banda-cta.tinta { background: var(--tinta); }
@media (max-width: 800px) { .banda-cta { grid-template-columns: 1fr; } }

/* ---------- Pasos ---------- */
.pasos { counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.paso { background: #fff; border-radius: var(--r-l); padding: 28px 24px; box-shadow: var(--sombra); position: relative; }
.paso::before {
  counter-increment: paso; content: counter(paso); font-family: var(--f-titulo); font-size: 2.6rem; font-weight: 600; color: var(--naranja);
  display: block; line-height: 1; margin-bottom: 14px;
}
.paso h3 { font-size: 1.25rem; }
.paso p { color: var(--tinta-2); font-size: .97rem; margin: 0; }
@media (max-width: 1000px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pasos { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border-radius: var(--r-m); box-shadow: var(--sombra); margin-bottom: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 800; font-size: 1.06rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  background: var(--naranja-suave); color: var(--naranja); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 22px; color: var(--tinta-2); }

/* ---------- Formularios ---------- */
.formulario { background: #fff; border-radius: var(--r-l); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--sombra-alta); }
.formulario h3 { margin-bottom: .3em; }
.formulario .intro { color: var(--tinta-2); font-size: .97rem; }
.campos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; }
.campo { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; }
.campo.c3 { grid-column: span 3; } .campo.c2 { grid-column: span 2; } .campo.c4 { grid-column: span 4; }
@media (max-width: 560px) { .campo.c3, .campo.c2, .campo.c4 { grid-column: span 6; } }
.campo label, .etiqueta { font-weight: 800; font-size: .9rem; color: var(--tinta); }
.campo label small { font-weight: 600; color: var(--tinta-3); }
.campo input, .campo select, .campo textarea {
  width: 100%; border: 2px solid var(--crema-2); background: var(--crema); border-radius: 12px; padding: .8em 1em;
  font: inherit; font-size: 1rem; color: var(--tinta); transition: border-color .2s, background .2s;
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--naranja); background: #fff; }
.campo input.error, .campo textarea.error { border-color: #c0392b; }
.fieldset-titulo { grid-column: span 6; font-family: var(--f-titulo); font-size: 1.2rem; margin-top: 10px; padding-top: 16px; border-top: 1px dashed var(--arena); }

.opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion label {
  display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--crema-2); background: var(--crema); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s; height: 100%; font-weight: 600; font-size: .9rem; color: var(--tinta-2);
}
.opcion label b { font-family: var(--f-titulo); font-size: 1.45rem; color: var(--tinta); font-weight: 600; }
.opcion label:hover { border-color: var(--arena); }
.opcion input:checked + label { border-color: var(--naranja); background: #fff8f2; box-shadow: 0 0 0 3px rgba(229,100,15,.12); }
.opcion input:focus-visible + label { outline: 3px solid var(--naranja); outline-offset: 2px; }
.opciones.casillas label { flex-direction: row; align-items: center; gap: 10px; font-weight: 700; color: var(--tinta); }
.opciones.casillas label::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--arena); flex: 0 0 20px; background: #fff; transition: all .2s; }
.opciones.casillas input:checked + label::before { background: var(--naranja); border-color: var(--naranja); box-shadow: inset 0 0 0 3px #fff; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--tinta-2); grid-column: span 6; }
.check input { width: 20px; height: 20px; accent-color: var(--naranja); margin-top: 3px; flex: 0 0 20px; }
.form-pie { grid-column: span 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.g-recaptcha { transform-origin: 0 0; }
@media (max-width: 380px) { .g-recaptcha { transform: scale(.85); } }
.letra-pequena { font-size: .8rem; color: var(--tinta-3); line-height: 1.5; margin-top: 18px; }
.mensaje-form { grid-column: span 6; border-radius: 14px; padding: 14px 18px; font-weight: 700; display: none; }
.mensaje-form.ok { display: block; background: var(--salvia-suave); color: #34502f; }
.mensaje-form.ko { display: block; background: #fbe2dd; color: #8a2a1b; }
.form-enviado { text-align: center; padding: 30px 10px; }
.form-enviado i { font-size: 3rem; color: var(--naranja); margin-bottom: 14px; }

/* ---------- Ficha de animal ---------- */
.ficha { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .ficha { grid-template-columns: 1fr; } }
.galeria-principal { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sombra-alta); background: var(--crema-2); cursor: zoom-in; aspect-ratio: 1 / 1; }
.galeria-principal img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.miniaturas button { border: 3px solid transparent; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.miniaturas button.activa { border-color: var(--naranja); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
.dato { background: #fff; border-radius: var(--r-m); padding: 14px 16px; box-shadow: var(--sombra); display: flex; align-items: center; gap: 12px; min-width: 0; }
.dato > div { min-width: 0; }
.dato .ico {
  flex: 0 0 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.05rem;
  background: var(--naranja-suave); color: var(--naranja);
}
.dato .ico.v { background: var(--salvia-suave); color: var(--salvia); }
.dato b { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.dato > div > span { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-3); }
.dato b { font-size: 1.08rem; }
.historia-animal { font-size: 1.08rem; }
.compartir { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-weight: 800; }
.compartir a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tinta); box-shadow: var(--sombra); text-decoration: none; }
.compartir a:hover { background: var(--naranja); color: #fff; }
.pegajoso { position: static; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,24,31,.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.abierto { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-cerrar { top: 18px; right: 18px; } .lb-ant { left: 18px; top: 50%; transform: translateY(-50%); } .lb-sig { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Cuenta / donación ---------- */
.iban {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--crema); border: 2px dashed var(--arena); border-radius: 14px; padding: 12px 16px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em;
}
.iban button { margin-left: auto; border: 0; background: var(--tinta); color: #fff; border-radius: 999px; padding: .45em 1em; font: inherit; font-family: var(--f-texto); font-weight: 800; font-size: .85rem; cursor: pointer; letter-spacing: 0; }
.iban button.copiado { background: var(--salvia); }

/* Tabla simple / legal */
.legal h3 { margin-top: 1.8em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.legal th { background: var(--crema-2); }
.tabla-scroll { overflow-x: auto; }
.text-muted { color: var(--tinta-3); } .small { font-size: .875rem; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #cfd6db; padding: clamp(56px, 7vw, 90px) 0 30px; margin-top: 0; position: relative; }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { color: #ffb37f; }
.pie-rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .pie-rejilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie-rejilla { grid-template-columns: 1fr; } }
.pie h4 { color: #fff; font-family: var(--f-texto); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: 1.1em; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .55em; }
.pie-logo { width: 170px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .92; }
.pie-telefono { font-family: var(--f-titulo); font-size: 1.7rem; color: #fff; display: inline-flex; gap: .4em; align-items: center; }
.redes { display: flex; gap: 10px; margin-top: 18px; }
.redes a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 1.15rem; transition: background .2s, transform .2s; }
.redes a:hover { background: var(--naranja); color: #fff; transform: translateY(-3px); }
.pie-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #9aa6ae; }
.pie-legal a { color: #cfd6db; }
.pie-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pie-corazon { color: #ff9d6b; }

/* ---------- Animaciones de entrada ---------- */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.revelar.visible { opacity: 1; transform: none; }
.revelar.d1 { transition-delay: .1s; } .revelar.d2 { transition-delay: .2s; } .revelar.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}
.no-js .revelar { opacity: 1; transform: none; }
