/* ==========================================================================
   Torre Sevilla — Concepto (demo de portfolio NeuroDatos)
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --ink: #f2ede4;
  --accent: #c4734f;
  --concept-bar-h: 32px;
  --header-h: 72px;
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  scroll-behavior: auto;
}

body { cursor: default; }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button {
  cursor: none;
}

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

/* ---------- Bloque fijo superior: aviso de concepto + cabecera ---------- */
.top-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.concept-bar {
  min-height: var(--concept-bar-h);
  background: #000;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid rgba(242, 237, 228, 0.1);
}

@media (max-width: 480px) {
  .concept-bar { font-size: 0.64rem; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.preloader__mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}

.preloader__bar {
  width: 220px;
  height: 1px;
  background: rgba(242, 237, 228, 0.2);
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s ease-out;
}

.preloader__pct {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 228, 0.6);
}

/* ---------- Cursor personalizado ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
  display: none;
  mix-blend-mode: difference;
}

body.has-custom-cursor .cursor-dot { display: block; }

.cursor-dot.cursor-dot--active {
  width: 48px;
  height: 48px;
  background: rgba(196, 115, 79, 0.25);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(11,11,11,0.6), transparent);
  pointer-events: none;
}

.site-header__logo, .site-header__cta { pointer-events: auto; }

.site-header__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-header__logo em {
  font-style: italic;
  color: var(--accent);
  text-transform: none;
}

.site-header__cta {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(242, 237, 228, 0.4);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.site-header__cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero / secuencia de scroll ---------- */
.hero {
  position: relative;
  height: 600vh;
  background: var(--bg);
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__caption {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: clamp(3rem, 10vh, 7rem);
  pointer-events: none;
}

.hero__caption-text {
  margin: 0;
  max-width: 20ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.25;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}

.hero__caption-text .word {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.hero__scrollcue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.65);
}
.hero__scrollcue i {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(242, 237, 228, 0.4);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Fallback: prefers-reduced-motion ---------- */
.hero__static { display: none; }

html.reduced-motion .hero { height: auto; }
html.reduced-motion .hero__stage {
  position: relative;
  height: auto;
  display: block;
  width: 100%;
}
html.reduced-motion .hero__canvas,
html.reduced-motion .hero__scrollcue,
html.reduced-motion .hero__caption { display: none; }
html.reduced-motion .hero__static {
  display: block;
  position: relative;
  min-height: 100vh;
}
html.reduced-motion .hero__static img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.reduced-motion .hero__static-captions {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(11,11,11,0.85), rgba(11,11,11,0.1));
  padding: 4rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 60vh;
}
html.reduced-motion .hero__static-captions p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-align: center;
}

/* ---------- Secciones generales ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin: 0 0 2.5rem;
}

.rooms { padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4rem); }

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.room-card {
  background: #121212;
  border: 1px solid rgba(242, 237, 228, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.room-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.room-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.room-card:hover .room-card__media img { transform: scale(1.06); }

.room-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.25rem 1.25rem 0.5rem;
}
.room-card p {
  margin: 0 1.25rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(242, 237, 228, 0.75);
}

/* ---------- Spa / gastronomía ---------- */
.amenities { padding: clamp(2rem, 6vh, 4rem) 0; }

.amenities__item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 5vw, 4rem);
}
.amenities__item--reverse { direction: rtl; }
.amenities__item--reverse .amenities__copy { direction: ltr; }

.amenities__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.amenities__copy p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(242, 237, 228, 0.78);
  max-width: 42ch;
  margin: 0 auto;
}
.amenities__item--reverse .amenities__copy p { margin: 0 auto; }

@media (max-width: 820px) {
  .amenities__item, .amenities__item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  padding: clamp(5rem, 14vh, 9rem) 1.5rem;
  background: radial-gradient(ellipse at center, rgba(196,115,79,0.08), transparent 70%);
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 1rem;
}
.cta-final p {
  color: rgba(242, 237, 228, 0.65);
  font-size: 0.88rem;
  margin: 0 0 2rem;
}
.cta-final__button {
  display: inline-block;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cta-final__button:hover { background: #d88a63; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(242, 237, 228, 0.5);
}

/* ---------- Utilidades responsive ---------- */
@media (max-width: 600px) {
  .site-header__cta { display: none; }
}
