/* ════════════════════════════════════════════════════════════
   Costa de Oro — Home · hoteles stack, galería, stats,
   convenios, contacto, footer
   ════════════════════════════════════════════════════════════ */

/* ── Intro hoteles ─────────────────────────────────────────── */
.hotels-intro {
  background: var(--bg-base);
  padding-block: var(--space-section) clamp(3rem, 2rem + 4vw, 6rem);
  text-align: center;
}
.hotels-hint {
  margin-top: 1.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Hoteles: paneles expandibles ──────────────────────────── */
.xpanels {
  background: var(--bg-base);
  padding-bottom: var(--space-section);
}
.xp-row {
  display: flex;
  gap: 0.6rem;
  height: clamp(540px, 80vh, 780px);
  width: min(1680px, 100% - 2.4rem);
  margin-inline: auto;
}

.xp {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: flex-grow 0.9s var(--ease-out);
}
.xp.active { flex-grow: 4.6; cursor: default; }

.xp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.7);
  transform: scale(1.08);
  transition: filter 0.9s ease, transform 1.3s var(--ease-out);
  will-change: transform, filter;
}
.xp.active .xp-bg { filter: brightness(0.9) saturate(1); transform: scale(1); }
.xp:not(.active):hover .xp-bg { filter: brightness(0.62) saturate(0.85); }

.xp-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 7, 13, 0.9) 0%, rgba(4, 7, 13, 0.18) 55%, rgba(4, 7, 13, 0.35) 100%),
    linear-gradient(to right, rgba(4, 7, 13, 0.45) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.xp.active .xp-shade { opacity: 1; }

.xp-num {
  position: absolute;
  top: 1.5rem;
  left: 1.6rem;
  z-index: 2;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent, var(--gold-light));
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Nombre vertical cuando la franja está colapsada */
.xp-vname {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
  transition: opacity 0.45s ease;
}
.xp.active .xp-vname { opacity: 0; }

/* Contenido revelado al expandirse */
.xp-info {
  position: absolute;
  left: clamp(1.6rem, 2.6vw, 3rem);
  bottom: clamp(1.8rem, 4.5vh, 3.2rem);
  z-index: 3;
  width: clamp(300px, 30vw, 470px);
  max-width: calc(100vw - 4rem);
  pointer-events: none;
}
.xp.active .xp-info { pointer-events: auto; }
.xp-info > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.xp.active .xp-info > *:nth-child(1) { transition-delay: 0.3s; }
.xp.active .xp-info > *:nth-child(2) { transition-delay: 0.38s; }
.xp.active .xp-info > *:nth-child(3) { transition-delay: 0.46s; }
.xp.active .xp-info > *:nth-child(4) { transition-delay: 0.54s; }
.xp.active .xp-info > *:nth-child(5) { transition-delay: 0.62s; }
.xp.active .xp-info > * { opacity: 1; transform: none; }

.xp-zone {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent, var(--gold-light));
  margin-bottom: 1rem;
}
.xp-zone::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent, var(--gold-light));
  opacity: 0.6;
}
.xp-name {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.xp-name em { font-style: italic; color: var(--accent, var(--gold-light)); }
.xp-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(244, 239, 230, 0.78);
  line-height: 1.75;
  margin-bottom: 1.3rem;
}
.xp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.xp-tags span {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 0.32rem 0.8rem;
  backdrop-filter: blur(6px);
  background: rgba(7, 12, 20, 0.55);
  white-space: nowrap;
}

/* Móvil: acordeón vertical */
@media (max-width: 860px) {
  .xp-row {
    flex-direction: column;
    height: auto;
    width: min(1680px, 100% - 1.6rem);
  }
  .xp {
    flex: none;
    height: 74px;
    overflow: hidden;
    transition: height 0.7s var(--ease-out);
  }
  .xp.active { height: min(74vh, 540px); }
  .xp-num {
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.4s ease;
  }
  .xp.active .xp-num { opacity: 0; }
  .xp-vname {
    writing-mode: horizontal-tb;
    left: 4.4rem;
    bottom: 50%;
    transform: translateY(50%);
  }
  .xp-info {
    width: auto;
    right: 1.4rem;
  }
  .xp-tags {
    gap: 0.5rem;
  }
  .xp-tags span {
    font-size: 0.62rem;
    padding: 0.35rem 0.75rem;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(7, 12, 20, 0.65);
  }
}

/* ── Galería en movimiento (film strips) ───────────────────── */
.film {
  background: var(--bg-deep);
  padding-block: var(--space-section);
  overflow: hidden;
}
.film-head { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

.film-strip { overflow: hidden; will-change: transform; }
.film-strip + .film-strip { margin-top: 1.1rem; }
.film-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}
.film-strip[data-dir="left"] .film-track { animation: filmLeft 55s linear infinite; }
.film-strip[data-dir="right"] .film-track { animation: filmRight 55s linear infinite; }
.film-strip:hover .film-track { animation-play-state: paused; }

@keyframes filmLeft  { to { transform: translateX(-50%); } }
@keyframes filmRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.film-track figure {
  position: relative;
  flex-shrink: 0;
  width: clamp(240px, 26vw, 380px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
/* Destello dorado que cruza la foto al pasar el mouse */
.film-track figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(226, 196, 118, 0.22) 50%,
    transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}
.film-track figure:hover::after { transform: translateX(130%); }
.film-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
  transform: scale(1.01);
  transition: filter 0.6s ease, transform 0.8s var(--ease-out);
}
.film-track figure:hover img {
  filter: saturate(1.1) brightness(1.02);
  transform: scale(1.07);
}

/* ── Stats band ────────────────────────────────────────────── */
.stats-band {
  background: var(--bg-surface);
  border-block: 1px solid rgba(201, 168, 76, 0.1);
  padding-block: clamp(3.5rem, 3rem + 3vw, 6rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-block {
  text-align: center;
  position: relative;
}
.stat-block:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: var(--line-subtle);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 2.4rem + 2.5vw, 4.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.8rem;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 3rem 1rem; }
  .stat-block:nth-child(3)::before { display: none; }
}

/* ── Convenios banner ──────────────────────────────────────── */
.convenios-banner {
  position: relative;
  background: var(--bg-base);
  padding-block: clamp(7rem, 6rem + 6vw, 12rem);
  text-align: center;
  overflow: hidden;
}
.convenios-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.09) 0%, transparent 62%);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}
.convenios-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 1.8rem + 3.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}
.convenios-title em { font-style: italic; color: var(--gold-light); }
.convenios-sub {
  font-size: var(--text-base);
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 52ch;
  margin: 1.5rem auto 2.8rem;
  line-height: 1.85;
}

/* ── Contacto ──────────────────────────────────────────────── */
.contact { background: var(--bg-surface); border-top: 1px solid var(--line-subtle); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(3rem, 2rem + 5vw, 7rem);
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-subtle);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-item-text strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.contact-item-text span,
.contact-item-text a {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-weight: 300;
  transition: color 0.25s ease;
}
.contact-item-text a:hover { color: var(--gold-light); }

/* Banda de atención directa (equilibra la columna izquierda) */
.contact-direct {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.4rem;
  background: var(--line-subtle);
  border: 1px solid var(--line-subtle);
}
.contact-direct-row {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem 1.2rem;
  transition: background 0.35s ease;
}
.contact-direct-row:hover { background: rgba(201, 168, 76, 0.05); }
.contact-direct .num {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.contact-direct .txt {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.7;
}
@media (max-width: 520px) {
  .contact-direct { grid-template-columns: 1fr; }
}

.wgrid { display: flex; flex-direction: column; gap: 0.9rem; }
.wcard {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-subtle);
  padding: 0.9rem 1.2rem 0.9rem 0.9rem;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease-out);
}
.wcard:hover {
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.04);
  transform: translateX(6px);
}
.wcard-photo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(0.9);
  transition: filter 0.4s ease;
}
.wcard:hover .wcard-photo { filter: saturate(1.1); }
.wcard-body { flex: 1; min-width: 0; }
.wcard-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.25s ease;
}
.wcard-name:hover { color: var(--gold-light); }
.wcard-zone {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}
.wcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #4be37f;
  border: 1px solid rgba(75, 227, 127, 0.3);
  padding: 0.55rem 1rem;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.wcard-btn:hover {
  background: #25D366;
  border-color: #25D366;
  color: #04140a;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
}
@media (max-width: 520px) {
  .wcard { flex-wrap: wrap; }
  .wcard-photo { width: 60px; height: 60px; }
  .wcard-btn { margin-left: calc(60px + 1.3rem); }
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--bg-deep);
  padding: clamp(4rem, 3rem + 4vw, 7rem) 0 2.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  overflow: hidden;
}
.footer-wordmark {
  position: absolute;
  bottom: -0.18em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-brand);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(5rem, 14vw, 15rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 230, 0.06);
  user-select: none;
  pointer-events: none;
}
.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.footer-tagline {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.4rem;
  margin-bottom: 1.4rem;
}
.footer-desc {
  font-size: var(--text-sm);
  color: var(--ink-faint);
  line-height: 1.85;
  max-width: 32ch;
  font-weight: 300;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.footer-nav-col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav-col strong {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.footer-nav-col a {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ink-muted);
  width: fit-content;
  transition: color 0.25s ease, transform 0.3s var(--ease-out);
}
.footer-nav-col a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.footer-bottom a { transition: color 0.25s ease; }
.footer-bottom a:hover { color: var(--gold-light); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Redes sociales ────────────────────────────────────────── */
.social-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.social-row.center { justify-content: center; }
.social-label {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 0.4rem;
}
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  transition: border-color 0.3s ease, color 0.3s ease,
              background 0.3s ease, transform 0.35s var(--ease-out);
}
.social-link:hover,
.social-link:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-3px);
}
.social-link svg { width: 17px; height: 17px; }

/* ── Hint hoteles: variante táctil ─────────────────────────── */
.hotels-hint-touch { display: none; }
@media (pointer: coarse) {
  .hotels-hint-hover { display: none; }
  .hotels-hint-touch { display: block; }
}

/* ── wcard: botón a ancho completo en móvil ────────────────── */
@media (max-width: 520px) {
  .wcard { flex-wrap: wrap; gap: 0.9rem; align-items: center; }
  .wcard-photo { width: 58px; height: 58px; }
  .wcard-btn {
    flex: 1 1 100%;
    justify-content: center;
    margin-left: 0;
    padding: 0.65rem 1rem;
  }
}

/* ── Ajuste móvil extra pequeño (≤480px) ──────────────────── */
@media (max-width: 480px) {
  /* Paneles de hotel: título más pequeño cuando está activo */
  .xp-name { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .xp-desc { font-size: 0.82rem; }
  /* wcard: botón ocupa toda la fila */
  .wcard-btn { flex: 1 1 100%; justify-content: center; margin-left: 0; }
  /* Footer stats: más compactos */
  .stat-num { font-size: clamp(2.4rem, 7vw, 3.5rem); }
  /* Contacto: columna simple */
  .contact-direct { grid-template-columns: 1fr; }
}

/* ── Reduced motion ────────────────────────────────────────── */
/* Sin desplazamientos ni zoom, pero los fundidos de opacidad
   se conservan para que las secciones sigan apareciendo. */
@media (prefers-reduced-motion: reduce) {
  .film-track,
  .convenios-glow { animation: none !important; }
  .xp,
  .xp-bg { transition: none !important; }
  .xp-bg { transform: none !important; }
  .xp-info > * {
    transform: none !important;
    transition: opacity 0.7s ease !important;
  }
}
