/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dark: #8B6E3A;
  --dark: #0D0D0D;
  --dark-2: #1A1A1A;
  --dark-3: #252525;

  /* ─────────── AJUSTES DE LECTURA ───────────
     Si el texto se ve apagado o pequeño, se toca aquí y cambia
     en toda la web de golpe.

       --text        texto principal
       --text-muted  texto secundario (párrafos, etiquetas)
       --cuerpo      tamaño base de toda la web
       --grosor      grosor de la tipografía (300 fina, 400 normal)

     Valores originales: #E8E2D9 · #8A8278 · 18px · 300
     ─────────────────────────────────────────── */
  --text: #F3EFE8;
  --text-muted: #B6ADA0;
  --cuerpo: 19px;
  --grosor: 400;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  font-weight: var(--grosor);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--cuerpo);
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(201,169,110,0.15);
}
.nav-logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 300;
  font-style: italic; color: var(--gold); letter-spacing: 0.05em; text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.3s; font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
/* El subrayado de "estás aquí" NO se aplica al botón: le pisaba el
   padding-bottom y le achataba el recuadro. El botón se marca con fondo. */
.nav-links a.active:not(.nav-cta) { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.nav-cta {
  border: 0.5px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 0.5rem 1.25rem;
  transition: background 0.3s !important;
  font-size: 0.82rem !important;
}
.nav-cta:hover { background: rgba(201,169,110,0.1) !important; }
.nav-cta.active { background: rgba(201,169,110,0.14) !important; }

/* ─── PAGE WRAPPER ─── */
.page-content { flex: 1; padding-top: 5rem; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold); color: var(--dark); border: none;
  padding: 0.85rem 2.5rem; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: opacity 0.3s; font-weight: 400; display: inline-block;
}
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 0.5px solid rgba(232,226,217,0.3);
  padding: 0.85rem 2.5rem; font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: border-color 0.3s, color 0.3s; font-weight: 400; display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ─── SECTION LABELS ─── */
.section-label {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after { content: ''; height: 0.5px; width: 2rem; background: var(--gold); opacity: 0.5; }

.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 2rem; color: var(--text);
}
.section-title em { font-style: italic; color: var(--gold); }

/* ─── DIVIDER ─── */
.divider {
  width: 100%; height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), transparent);
}

/* ─── FOOTER ─── */
footer {
  border-top: 0.5px solid rgba(201,169,110,0.1);
  padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark);
  margin-top: auto;
}
footer p { font-size: 0.92rem; color: var(--text-muted); letter-spacing: 0.05em; }
.footer-logo { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--gold); opacity: 0.6; }

/* ─── HERO (index) ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, #0D0D0D 0%, #181410 50%, #0D0D0D 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-ornament {
  font-size: 0.78rem; letter-spacing: 0.35em; color: var(--gold); text-transform: uppercase;
  margin-bottom: 2rem; display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-ornament::before, .hero-ornament::after {
  content: ''; width: 3rem; height: 0.5px; background: var(--gold); opacity: 0.5;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300; line-height: 0.95; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 1.5rem;
}
.hero h1 em { display: block; font-style: italic; color: var(--gold); }
.hero-tagline {
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  color: var(--text-muted); margin-bottom: 3rem; letter-spacing: 0.05em;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 6rem 4rem 2.5rem;
  border-bottom: 0.5px solid rgba(201,169,110,0.1);
  background: linear-gradient(180deg, #111008 0%, #0D0D0D 100%);
}

/* ─── QUIEN SOY ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; max-width: 1200px; margin: 0 auto; padding: 5rem 4rem; }
.about-image-wrapper {
  position: relative;
  background: var(--dark-3);
  overflow: visible;
  min-height: 300px; /* evita que colapse si la imagen tarda o falla */
}
.about-image-wrapper img {
  width: 100%;
  height: auto;          /* sin recorte: la imagen se muestra entera */
  display: block;
  position: relative;
  z-index: 1;
}
.about-image-wrapper::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, transparent 60%); z-index: 2; pointer-events: none; }
.about-frame-accent {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  left: 0.75rem;         /* empieza desplazado a la derecha, evita la línea en el borde izquierdo */
  top: 0.75rem;
  border: 0.5px solid rgba(201,169,110,0.25);
  pointer-events: none;
  z-index: 0;
}
.about-text p { font-size: 1.12rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.9; }
.about-text p strong { color: var(--text); font-weight: 400; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; border-top: 0.5px solid rgba(232,226,217,0.08); padding-top: 2.5rem; }
.stat { text-align: center; }
.stat-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* ─── CITAS ─── */
.citas-wrapper { max-width: 1200px; margin: 0 auto; padding: 5rem 4rem; }
.citas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: rgba(201,169,110,0.1); margin-top: 3rem; }
.cita-card { background: var(--dark); padding: 2.5rem; transition: background 0.3s; }
.cita-card:hover { background: var(--dark-3); }
.cita-icon { width: 2.5rem; height: 2.5rem; border: 0.5px solid rgba(201,169,110,0.3); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.cita-icon svg { width: 1rem; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.cita-card h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 300; margin-bottom: 0.75rem; color: var(--text); }
.cita-card p { font-size: 1.12rem; color: var(--text-muted); line-height: 1.9; }

/* ─── BOOK / GALERÍA ─── */
.book-wrapper { max-width: 1200px; margin: 0 auto; padding: 5rem 4rem; }
.book-tabs { display: flex; margin: 2rem 0; border-bottom: 0.5px solid rgba(232,226,217,0.1); }
.tab-btn { background: none; border: none; color: var(--text-muted); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.75rem 2rem; cursor: pointer; position: relative; transition: color 0.3s; font-weight: 400; }
.tab-btn.active { color: var(--gold); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -0.5px; left: 0; right: 0; height: 1px; background: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Galería: columnas fijas, altura uniforme, sin espacios negros */
.gallery-grid {
  display: grid;
  gap: 0.4rem;
  grid-auto-rows: 280px; /* altura fija igual para todas las celdas */
}
.gallery-grid.cols-1 { grid-template-columns: 1fr; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* La primera imagen ocupa 2 columnas y 2 filas (más grande, más impacto) */
.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-3);
  /* Sin aspect-ratio: la altura la controla grid-auto-rows */
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* rellena sin dejar negro, recorta si hace falta */
  object-position: center;
  display: block;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(201,169,110,0); transition: background 0.3s; }
.gallery-item:hover .gallery-overlay { background: rgba(201,169,110,0.08); }
.gallery-empty { padding: 4rem; text-align: center; border: 0.5px dashed rgba(201,169,110,0.2); }
.gallery-empty p { font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0.5rem; }
.gallery-empty small { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; letter-spacing: 0.1em; }
.gallery-count { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 1rem; }

/* ─── VIDEO GRID (miniaturas) ─── */
.video-grid { display: grid; gap: 0.4rem; }
.video-grid.cols-1 { grid-template-columns: 1fr; }
.video-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.video-thumb-item {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--dark-3);
  overflow: hidden;
  cursor: pointer;
}
.video-thumb-item video {
  width: 100%; height: 100%;
  object-fit: cover;   /* miniatura recortada, como las fotos */
  display: block;
  pointer-events: none;
}
.video-thumb-item:hover .video-thumb-overlay { background: rgba(0,0,0,0.15); }
.video-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s;
}
.video-play {
  width: 3.5rem; height: 3.5rem;
  border: 0.5px solid rgba(201,169,110,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.video-thumb-item:hover .video-play {
  border-color: var(--gold);
  background: rgba(201,169,110,0.15);
  transform: scale(1.08);
}
.video-play svg { width: 1.1rem; fill: var(--gold); margin-left: 0.2rem; }
.video-thumb-label {
  position: absolute; bottom: 0.6rem; left: 0.75rem;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(232,226,217,0.5);
}

/* ─── VIDEO LIGHTBOX ─── */
.video-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 2000;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.video-lightbox.open { display: flex; }
.video-lightbox video {
  max-width: 92vw;
  max-height: 85vh;
  width: auto; height: auto;
  display: block;
  outline: none;
}
.video-lightbox-close {
  position: absolute; top: 1.25rem; right: 1.75rem;
  color: var(--text-muted); font-size: 2.2rem;
  cursor: pointer; background: none; border: none;
  line-height: 1; transition: color 0.2s;
}
.video-lightbox-close:hover { color: var(--gold); }
.video-lightbox-label {
  margin-top: 0.75rem;
  font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}
.video-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0.5px solid rgba(201,169,110,0.3);
  color: var(--gold); width: 3rem; height: 3rem;
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.video-lightbox-nav:hover { background: rgba(201,169,110,0.1); }
.video-lightbox-prev { left: 1.25rem; }
.video-lightbox-next { right: 1.25rem; }

/* ─── LIGHTBOX ─── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: var(--text-muted); font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; transition: color 0.3s; }
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0.5px solid rgba(201,169,110,0.3); color: var(--gold); width: 3rem; height: 3rem; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.lightbox-nav:hover { background: rgba(201,169,110,0.1); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--text-muted); }

.contacto-grid > div:last-child img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; max-width: 1200px; margin: 0 auto; padding: 5rem 4rem; }
.contact-info p { font-size: 1.12rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 2rem; }
.contact-channels { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; }
.contact-channel { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text-muted); font-size: 1.12rem; transition: color 0.3s; padding: 0.9rem 0; border-bottom: 0.5px solid rgba(232,226,217,0.06); }
.contact-channel:hover { color: var(--gold); }
.contact-channel svg { width: 1rem; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select { background: var(--dark-3); border: 0.5px solid rgba(232,226,217,0.1); color: var(--text); font-family: var(--sans); font-size: 1rem; font-weight: 400; padding: 0.85rem 1rem; outline: none; transition: border-color 0.3s; width: 100%; appearance: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: rgba(201,169,110,0.5); }
.form-group textarea { resize: vertical; min-height: 6rem; }
.form-group select option { background: var(--dark-3); }

/* ─── FAQ ─── */
.faq-wrapper { max-width: 800px; margin: 0 auto; padding: 5rem 4rem; }
.faq-item { border-bottom: 0.5px solid rgba(232,226,217,0.08); }
.faq-question { width: 100%; background: none; border: none; color: var(--text); font-family: var(--serif); font-size: 1.35rem; font-weight: 300; text-align: left; padding: 1.5rem 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color 0.3s; }
.faq-question:hover, .faq-question.open { color: var(--gold); }
.faq-arrow { width: 1rem; height: 1rem; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform 0.3s; }
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding-bottom: 1.5rem; font-size: 1.12rem; color: var(--text-muted); line-height: 1.9; }
.faq-answer.open { display: block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1.1rem 1.5rem; }

  /* Menú hamburguesa */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100dvh; /* dvh funciona mejor en iOS Safari */
    height: 100vh;  /* fallback */
    background: rgba(13,13,13,0.99);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    overflow-y: auto; /* por si acaso hay muchos items */
    padding: 4rem 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; letter-spacing: 0.15em; color: var(--text); }
  .nav-links .nav-cta { padding: 0.75rem 2rem; font-size: 0.85rem; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 400;
    background: none;
    border: none;
    padding: 4px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--gold);
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 300;
  }

  /* Hero */
  .hero { padding: 5rem 1.5rem 3rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-tagline { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }

  /* Page hero */
  .page-hero { padding: 5.5rem 1.5rem 2rem; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* Quien soy */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }

  /* Citas */
  .citas-wrapper { padding: 3rem 1.5rem; }
  .citas-grid { grid-template-columns: 1fr; }

  /* Book */
  .book-wrapper { padding: 3rem 1.5rem; }
  .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.featured { grid-column: span 2; grid-row: span 2; }
  .gallery-grid { grid-auto-rows: 160px; }
  .video-grid.cols-2, .video-grid.cols-3 { grid-template-columns: 1fr; }

  /* Contacto */
  .contacto-grid { grid-template-columns: 1fr; gap: 0; padding: 3rem 1.5rem; }
  .contacto-grid > div:last-child { min-height: 300px; order: -1; } /* imagen arriba en móvil */

  /* FAQ */
  .faq-wrapper { padding: 3rem 1.5rem; }
  .faq-question { font-size: 0.95rem; }

  /* Mis deseos */
  .deseos-wrapper { padding: 2rem 1.5rem 4rem; }
  .deseos-grid { grid-template-columns: 1fr; }

  /* Footer */
  footer { flex-direction: column; gap: 0.75rem; text-align: center; padding: 2rem 1.5rem; }
}

@media (min-width: 901px) {
  .nav-hamburger { display: none; }
}
