:root {
  --bg: #06060a;
  --coral: #f2935a;
  --rose: #c83f72;
  --grad: linear-gradient(135deg, #f5935a, #c83f72);
  --text: #f0ede8;
  --muted: #666;
  --border: rgba(242, 147, 90, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  cursor: none;
}

/* ── CURSOR CANVAS ── */
#cursor-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 56px;
  background: linear-gradient(to bottom, rgba(6,6,10,0.9) 0%, transparent 100%);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 400; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
}
.nav-logo span {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text); text-decoration: none; transition: color 0.3s;
  cursor: none; display: inline-block;
}
.nav-links a:hover { color: var(--coral); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 25% 65%, rgba(245,147,90,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 75% 35%, rgba(200,63,114,0.12) 0%, transparent 65%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Fotos flotantes */
.hero-float {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}
.hero-float-img {
  position: absolute; overflow: hidden;
  border-radius: 8px; will-change: transform;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hero-float-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* overlay gradient coral en cada foto flotante */
.hero-float-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(245,147,90,0.15), rgba(200,63,114,0.15));
  mix-blend-mode: multiply;
}

/* Posición y tamaño de cada foto */
.hf-1 { width: 190px; height: 235px; top: 9%;  left: 3%; }
.hf-2 { width: 155px; height: 195px; top: 54%; left: 6%; }
.hf-3 { width: 170px; height: 210px; top: 7%;  right: 4%; }
.hf-4 { width: 145px; height: 180px; top: 58%; right: 5%; }
.hf-5 { width: 135px; height: 170px; top: 28%; right: 17%; }
.hf-6 { width: 125px; height: 158px; top: 32%; left: 16%; }

/* Contenido centrado del hero */
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-eyebrow {
  font-size: 0.62rem; letter-spacing: 0.55em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 28px; opacity: 0;
  animation: fade-up 0.8s 0.4s forwards ease-out;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5.5rem, 15vw, 14rem);
  font-weight: 400; line-height: 0.88; text-align: center; letter-spacing: -0.01em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner {
  display: block; opacity: 0; transform: translateY(110%);
  animation: slide-up 1s forwards cubic-bezier(0.16,1,0.3,1);
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.55s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.75s; }
.hero-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%; animation: grad-shift 5s ease infinite;
}
@keyframes grad-shift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-tagline {
  margin-top: 44px; font-size: 0.75rem; letter-spacing: 0.3em; color: var(--muted);
  text-transform: uppercase; opacity: 0;
  animation: fade-up 0.8s 1.3s forwards ease-out;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2; opacity: 0; animation: fade-up 0.8s 1.9s forwards ease-out;
}
.hero-scroll span { font-size: 0.58rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--coral), transparent);
  animation: scroll-anim 2s 2.2s infinite ease-in-out;
}
@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  49% { transform: scaleY(1); transform-origin: top; }
  50% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-up { to { opacity: 1; transform: translateY(0); } }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden; padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 30s linear infinite; width: max-content;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 0 36px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 400; letter-spacing: 0.06em; color: var(--muted);
}
.marquee-item .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--grad); background: var(--coral); flex-shrink: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── GALLERY ── */
.gallery-section { padding: 120px 48px; }
.gallery-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px;
}
.section-label {
  font-size: 0.6rem; letter-spacing: 0.45em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.1;
}
.gallery-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Wrapper para fade cover */
.gallery-cols-wrap { position: relative; }

.gallery-cols {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px; align-items: start;
}
.gallery-col { display: flex; flex-direction: column; gap: 16px; }

.col-a { animation: float-a 9s ease-in-out infinite; }
.col-b { animation: float-b 11s ease-in-out infinite 1.5s; }
.col-c { animation: float-c 8s ease-in-out infinite 3s; }
@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-b { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(10px); } }
@keyframes float-c { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* Fotos colapsadas */
.gallery-extra { display: none; }
.gallery-cols.expanded .gallery-extra { display: block; }

/* Fade cover cuando está colapsado */
.gallery-fade-cover {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 10%, transparent 100%);
  transition: opacity 0.5s ease;
}
.gallery-fade-cover.hidden { opacity: 0; pointer-events: none; }

/* Botón toggle */
.gallery-toggle-wrap { display: flex; justify-content: center; margin-top: 48px; }
.gallery-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid rgba(245,147,90,0.3); border-radius: 100px;
  padding: 14px 36px; color: var(--text); cursor: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.gallery-toggle::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245,147,90,0.07), transparent);
  transform: translateX(-100%); animation: shimmer 2.5s infinite;
}
.gallery-toggle:hover { border-color: var(--coral); background: rgba(245,147,90,0.06); }
.toggle-chevron {
  width: 16px; height: 16px; color: var(--coral);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* Cards */
.gallery-card {
  position: relative; overflow: hidden; border-radius: 4px; cursor: none;
  opacity: 0; transform: translateY(50px);
  box-shadow: 0 0 0 0px rgba(245,147,90,0);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s ease;
}
.gallery-card.visible { opacity: 1; transform: translateY(0); }
.gallery-card:hover { box-shadow: inset 0 0 0 1px rgba(245,147,90,0.7); }

.gallery-card img {
  width: 100%; display: block;
  aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-card:hover img { transform: scale(1.04); }

.card-overlay {
  position: absolute; bottom: 14px; right: 14px;
  z-index: 3; opacity: 0; transition: opacity 0.35s;
}
.gallery-card:hover .card-overlay { opacity: 1; }
.card-plus {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(6,6,10,0.45); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  transition: transform 0.3s, background 0.3s;
}
.gallery-card:hover .card-plus { transform: scale(1.1); background: rgba(245,147,90,0.35); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6,6,10,0.96); backdrop-filter: blur(24px); }
.lb-content {
  position: relative; z-index: 2;
  max-width: 82vw; max-height: 88vh;
  transform: scale(0.9); transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.lightbox.open .lb-content { transform: scale(1); }
.lb-content img {
  max-width: 100%; max-height: 88vh; object-fit: contain; display: block;
  border-radius: 3px; box-shadow: 0 0 100px rgba(245,147,90,0.15);
}
.lb-close {
  position: absolute; top: -48px; right: 0;
  background: none; border: 1px solid rgba(245,147,90,0.2);
  color: var(--muted); width: 36px; height: 36px; border-radius: 50%;
  font-size: 1rem; cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, border-color 0.3s;
}
.lb-close:hover { color: var(--text); border-color: var(--coral); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(245,147,90,0.2);
  color: var(--text); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.4rem; cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s; z-index: 3;
}
.lb-nav:hover { border-color: var(--coral); background: rgba(245,147,90,0.08); }
.lb-prev { left: -68px; }
.lb-next { right: -68px; }
.lb-counter {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.3em; color: var(--muted);
}

/* ── ABOUT ── */
.about-section {
  padding: 120px 48px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  border-top: 1px solid var(--border);
}
/* Fondo con tint gradient cálido */
.about-grad-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 0% 50%, rgba(245,147,90,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(200,63,114,0.07) 0%, transparent 70%);
}
.about-text-col { position: relative; z-index: 1; }
.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 400; line-height: 1.15; margin-bottom: 28px;
}
.about-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.about-text { font-size: 0.875rem; line-height: 2; color: rgba(240,237,232,0.55); max-width: 420px; }
.about-img-wrap { position: relative; border-radius: 4px; overflow: hidden; }
.about-img-wrap img { width: 100%; display: block; filter: brightness(0.88) saturate(0.9); }
.about-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,147,90,0.15), transparent 50%, rgba(200,63,114,0.12));
}
.orbit {
  position: absolute; top: -24px; right: -24px;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1px solid rgba(245,147,90,0.18);
  animation: spin 22s linear infinite;
}
.orbit::before {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral); transform: translateX(-50%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CITAS — fondo gradient ── */
.appt-section {
  padding: 140px 48px; text-align: center; position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
/* Fondo con el gradient como tint fuerte */
.appt-grad-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(245,147,90,0.1) 0%, rgba(200,63,114,0.1) 50%, transparent 80%);
}
/* Banda gradient en la parte superior de la sección */
.appt-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.appt-title {
  position: relative; z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem); font-weight: 400; line-height: 1.08; margin-bottom: 20px;
}
.appt-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.appt-sub { position: relative; z-index: 1; font-size: 0.72rem; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 48px; text-transform: uppercase; }
.soon-badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(245,147,90,0.3); border-radius: 100px; padding: 13px 30px;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--coral);
  overflow: hidden;
}
.soon-badge::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245,147,90,0.09), transparent);
  transform: translateX(-100%); animation: shimmer 2.8s infinite;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); animation: blink 1.5s infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.15; } }

/* ── FOOTER ── */
footer {
  padding: 44px 56px;
  border-top: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              var(--grad) border-box;
  border-top: 1px solid transparent;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 400; letter-spacing: 0.08em; }
.footer-logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-copy { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--muted); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Fotos laterales mobile — ocultas en desktop */
.hero-mobile-photos { display: none; }

@keyframes hmp-a {
  0%,100% { transform: translateY(-62%) rotate(-9deg); }
  50%      { transform: translateY(-68%) rotate(-9deg); }
}
@keyframes hmp-b {
  0%,100% { transform: translateY(-38%) rotate(7deg); }
  50%      { transform: translateY(-32%) rotate(7deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .gallery-cols { grid-template-columns: 1fr 1fr; }
  .col-c { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .col-c .gallery-card { width: calc(50% - 8px); }
  .about-section { grid-template-columns: 1fr; gap: 48px; padding: 80px 28px; }
}

@media (max-width: 640px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  body { cursor: auto; }
  #cursor-canvas { display: none; }

  /* Hero mobile: fotos flotantes con tamaños y posiciones adaptados */
  .hero-float { display: block; }
  .hero-title { font-size: clamp(4.2rem, 20vw, 6rem); }

  /* Redefinir tamaño y posición de los 6 floats para mobile — 3 filas simétricas */
  /* Fila superior: centrada a la pantalla */
  .hf-1 { width: 138px; height: 175px; top: 3%;  left: 9%; }
  .hf-3 { width: 138px; height: 175px; top: 3%;  right: 9%; }
  /* Fila media: flanqueando el título */
  .hf-6 { width: 128px; height: 162px; top: 40%; left: -20px; }
  .hf-5 { width: 128px; height: 162px; top: 40%; right: -20px; }
  /* Fila inferior: centrada a la pantalla */
  .hf-2 { width: 138px; height: 175px; top: 68%; left: 9%; }
  .hf-4 { width: 138px; height: 175px; top: 68%; right: 9%; }

  .hero-scroll { display: none; }

  /* Galería mobile: ocultar 2ª foto de cada columna → solo 3 visibles */
  .gallery-mobile-extra { display: none; }
  .gallery-cols.expanded .gallery-mobile-extra { display: block; }

  /* Galería: 1 columna */
  .gallery-section { padding: 72px 16px; }
  .gallery-header { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 36px; }
  .gallery-title { text-align: center; }
  .gallery-cols { grid-template-columns: 1fr; gap: 12px; }
  .col-a, .col-b, .col-c { animation: none; }
  .col-c { grid-column: auto; display: block; }
  .col-c .gallery-card { width: 100%; }

  /* About: centrado */
  .about-section { padding: 72px 20px; text-align: center; }
  .about-title { text-align: center; }
  .about-text { max-width: 100%; }

  .appt-section { padding: 96px 24px; }
  footer { flex-direction: column; gap: 14px; text-align: center; padding: 36px 24px; }
  .lb-prev { left: -40px; }
  .lb-next { right: -40px; }
  .lb-content { max-width: 88vw; }
  .lb-nav { width: 36px; height: 36px; font-size: 1.1rem; }
}
