/* assets/css/style.css */
/* Responsabilidad única: Variables de marca, diseño base, avatar, pines vivos y Ave Exótica con ondas rápidas y reloj */

:root {
  --verde-oscuro: #1E3F20;
  --verde-acento: #2E7D32;
  --verde-suave: #E8F5E9;
  --amarillo-azafran: #F4C430;
  --amarillo-suave: #FEF9E7;
  --amarillo-hover: #E0B020;
  --blanco: #FFFFFF;
  --fondo-claro: #F9FBF9;
  --texto-oscuro: #1A261D;
  --texto-mutado: #4A5D4F;
  --sombra: 0 10px 30px rgba(30, 63, 32, 0.08);
  --radio: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--fondo-claro);
  color: var(--texto-oscuro);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   PIN AVE EXÓTICA: ONDAS RÁPIDAS DOBLE DIÁMETRO Y RELOJ
   ======================================================== */
@keyframes pulsoOndaExoticaDoble {
  0% { transform: scale(0.9); opacity: 0.95; }
  65% { transform: scale(3.5); opacity: 0.22; }
  100% { transform: scale(4.2); opacity: 0; }
}

@keyframes brilloAuraExotica {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 4px 10px rgba(244, 196, 48, 0.5)); }
  100% { transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 8px 20px rgba(233, 30, 99, 0.7)); }
}

.pin-ave-exotica-wrap {
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: brilloAuraExotica 1.8s infinite alternate ease-in-out;
}

/* Onda expansiva de doble diámetro (4.2x) y rápida (1.2s) */
.pin-ave-exotica-wrap::before {
  content: '';
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  background: rgba(244, 196, 48, 0.75);
  animation: pulsoOndaExoticaDoble 1.2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

.pin-exotico-centro {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2.5px solid #FFFFFF;
  z-index: 2;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.pin-exotico-svg-ring {
  position: absolute;
  inset: 0;
  width: 60px;
  height: 60px;
  transform: rotate(-90deg);
  z-index: 3;
  pointer-events: none;
}

.ring-tiempo-circulo {
  fill: none;
  stroke: #F4C430;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s linear, stroke 0.3s;
}

/* Reloj de cuenta regresiva debajo del globo */
.badge-reloj-exotico {
  position: absolute;
  bottom: -18px;
  background: #1E3F20;
  color: #F4C430;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1.5px solid #F4C430;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  white-space: nowrap;
  letter-spacing: 0.6px;
  z-index: 5;
  transition: all 0.25s ease;
}

.badge-reloj-exotico.alerta-roja {
  background: #b71c1c !important;
  color: #ffffff !important;
  border-color: #ff5252 !important;
  animation: pulsoAlertaReloj 0.8s infinite alternate ease-in-out;
}

@keyframes pulsoAlertaReloj {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes popEntrada {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ONDAS DE RADAR EN PINES NO RECOLECTADOS HABITUALES */
@keyframes flotacionPinVivo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulsoOndaRadar {
  0% { transform: scale(0.95); opacity: 0.85; }
  60% { transform: scale(1.85); opacity: 0.15; }
  100% { transform: scale(2.1); opacity: 0; }
}

.pin-con-ondas {
  position: relative !important;
  animation: flotacionPinVivo 2.8s infinite ease-in-out !important;
  transition: transform 0.2s ease;
}

.pin-con-ondas:hover {
  transform: translateY(-6px) scale(1.06) !important;
}

.pin-con-ondas::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(244, 196, 48, 0.65);
  animation: pulsoOndaRadar 2.2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

/* ========================================================
   AVATAR DEL EXPLORADOR (ESCALA MINIATURA PROPORCIONADA)
   ======================================================== */
.player-avatar-marker {
  background: transparent !important;
  border: none !important;
}

.avatar-custom-box {
  width: 28px !important;
  height: 52px !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.avatar-ground-shadow {
  position: absolute;
  bottom: 0px;
  width: 22px;
  height: 6px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 50%;
  filter: blur(1px);
  z-index: 1;
  transition: transform 0.3s ease;
}

.avatar-img-wrapper {
  position: relative;
  z-index: 2;
  width: 28px !important;
  height: 50px !important;
  transform-origin: 50% 95%;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
}

.avatar-img-char {
  width: 28px !important;
  height: 50px !important;
  max-width: 28px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  display: block;
}

.avatar-flip-left {
  transform: scaleX(-1);
}

.avatar-custom-box.avatar-idle .avatar-img-wrapper {
  animation: idlePersonajeCeja 3s infinite ease-in-out;
}

.avatar-custom-box.avatar-idle .avatar-ground-shadow {
  animation: shadowIdleCeja 3s infinite ease-in-out;
}

@keyframes idlePersonajeCeja {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-2px) scaleY(1.02); }
  75% { transform: translateY(-0.8px) scaleY(1); }
}

@keyframes shadowIdleCeja {
  0%, 100% { transform: scale(1); opacity: 0.32; }
  50% { transform: scale(0.85); opacity: 0.2; }
}

.avatar-custom-box.avatar-walking .avatar-img-wrapper {
  animation: troteCaminataCeja 0.38s infinite alternate ease-in-out;
}

.avatar-custom-box.avatar-walking .avatar-ground-shadow {
  animation: shadowCaminataCeja 0.38s infinite alternate ease-in-out;
}

@keyframes troteCaminataCeja {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-2.8px) rotate(2deg); }
}

@keyframes shadowCaminataCeja {
  0% { transform: scale(1.05); }
  100% { transform: scale(0.82); }
}

/* Botones Globales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-amarillo {
  background-color: var(--amarillo-azafran);
  color: var(--verde-oscuro);
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.35);
}

.btn-amarillo:hover {
  background-color: var(--amarillo-hover);
  transform: translateY(-2px);
}

.btn-verde {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
  box-shadow: 0 4px 15px rgba(30, 63, 32, 0.2);
}

.btn-verde:hover {
  background-color: var(--verde-acento);
  transform: translateY(-2px);
}

/* Header / Barra de Navegación */
.site-header {
  background: var(--blanco);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo-img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.header-logo span {
  font-family: 'Cinzel', serif !important;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  letter-spacing: 2px;
}

.header-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  color: var(--texto-oscuro);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-link:hover {
  background: #f0f4f1;
  color: var(--verde-oscuro);
}

.nav-btn-jugar {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* HERO CON FONDO CLARO Y EFECTO BOKEH */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7faf7 0%, #edf5ee 50%, #f9fbf9 100%);
  padding: 70px 0;
  width: 100%;
  border-bottom: 1px solid rgba(46, 125, 50, 0.08);
}

.hero-bokeh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 30px;
}

.hero-img-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-logo-img {
  width: 290px !important;
  height: 290px !important;
  max-width: 100%;
  object-fit: contain;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
}

.hero-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  background: rgba(46, 125, 50, 0.1);
  color: var(--verde-acento);
  border: 1px solid rgba(46, 125, 50, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.hero-title {
  color: var(--verde-oscuro);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 15px 0 20px 0;
  max-width: 850px;
}

.hero-desc {
  color: var(--texto-mutado);
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 750px;
  line-height: 1.6;
  font-weight: 400;
}

/* CONTENEDOR Y TARJETAS 3D EN EL HERO */
.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px 10px 14px;
  border-radius: 24px;
  background: var(--blanco);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.hero-card-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.hero-card-mapa {
  border: 2px solid var(--amarillo-azafran);
}

.hero-card-app {
  border: 2px solid var(--verde-acento);
}

.hero-card-img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

.hero-card-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero-card-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--texto-mutado);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-card-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  line-height: 1.2;
}

/* ENCABEZADOS CON MASCOTAS */
.mapa-header-wrapper,
.seccion-header-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  min-height: 135px;
}

.mapa-mascota-box,
.seccion-mascota-box {
  position: absolute;
  left: 10px;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.mapa-mascota-img,
.seccion-mascota-img {
  width: 155px !important;
  height: auto !important;
  max-height: 175px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
  display: block;
}

.mapa-header-text,
.seccion-header-text {
  text-align: center;
  width: 100%;
}

/* BARRA DE FILTROS SOBRE EL MAPA */
.mapa-filtros-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-filtro-mapa {
  background: var(--fondo-claro);
  color: var(--texto-oscuro);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.btn-filtro-mapa:hover {
  background: #e9f0ea;
  transform: translateY(-1px);
}

.btn-filtro-mapa.activo {
  background: var(--verde-oscuro);
  color: var(--blanco);
  border-color: var(--verde-oscuro);
  box-shadow: 0 4px 15px rgba(30, 63, 32, 0.25);
}

/* BLOQUES CON FONDO AMARILLO CLARO CÁLIDO */
.album-section,
.tienda-section {
  padding: 65px 0;
  background: linear-gradient(135deg, #FFFDF5 0%, #FEF8E4 100%);
  border-top: 1px solid rgba(244, 196, 48, 0.22);
  border-bottom: 1px solid rgba(244, 196, 48, 0.22);
}

/* BANNER DESTACADO TIENDA */
.tienda-banner-destacado {
  width: 100%;
  border-radius: var(--radio);
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--blanco);
  transition: transform 0.25s ease;
}

.tienda-banner-destacado:hover {
  transform: translateY(-2px);
}

.tienda-banner-destacado img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* Banner Pauta Ecoturismo */
.banner-pauta-box {
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, #152E17 100%);
  border-radius: var(--radio);
  padding: 40px;
  color: var(--blanco);
  box-shadow: var(--sombra);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
}

.banner-icono-superior {
  font-size: 2.5rem;
}

.banner-pauta-badge {
  background: rgba(244, 196, 48, 0.2);
  color: var(--amarillo-azafran);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
}

.banner-pauta-titulo {
  font-size: 1.8rem;
  margin: 12px 0 10px 0;
  color: #fff;
  line-height: 1.25;
}

.banner-pauta-desc {
  color: #D1E0D4;
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-pauta-accion {
  padding: 14px 28px;
  font-size: 1rem;
  white-space: nowrap;
}