/* ============================================================
   Serenatas · Alejandro Rivas — Hoja de estilos
   Paleta:
     --wine   #6B1E23  vino tinto profundo
     --gold   #C9A24B  dorado envejecido
     --char   #1A1A1A  negro carbón
     --cream  #F5EDE2  crema cálido
   Personaliza colores en :root sin tocar el resto.
   ============================================================ */

:root {
  --wine: #6B1E23;
  --wine-dark: #521418;
  --gold: #C9A24B;
  --gold-soft: #d9b96e;
  --char: #1A1A1A;
  --char-soft: #262626;
  --cream: #F5EDE2;
  --cream-dark: #ece0cf;

  --text-dark: #241d1a;
  --text-muted: #6b625a;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1120px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--char);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }

::selection { background: var(--gold); color: var(--char); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }

.section { padding-block: 6rem; background: var(--cream); color: var(--text-dark); }
.section--cream { background: var(--cream); }
.section--wine { background: var(--wine); color: var(--cream); }

.section__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--wine); font-weight: 600; margin-bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.section__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section__eyebrow--light { color: var(--gold); }

.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.section__title--light { color: var(--cream); }

.section__lead { max-width: 42rem; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; }
.section--wine .section__lead { color: rgba(245, 237, 226, 0.75); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; font-family: var(--font-sans); font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.02em; padding: 0.95rem 2.1rem;
  border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--char); box-shadow: 0 6px 20px -8px rgba(201, 162, 75, 0.7); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(201, 162, 75, 0.85); }
.btn--outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn--outline:hover { background: var(--wine); color: var(--cream); transform: translateY(-2px); }
.btn--lg { padding: 1.15rem 2.8rem; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.25rem;
}
.site-header.scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.25);
  padding-block: 0.75rem;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--cream); letter-spacing: 0.02em; }

.nav__menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__menu a { color: var(--cream); font-size: 0.92rem; position: relative; transition: color 0.3s var(--ease); }
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__menu a:not(.nav__cta):hover { color: var(--gold); }
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { border: 1px solid var(--gold); color: var(--gold); padding: 0.5rem 1.1rem; border-radius: var(--radius); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.nav__cta:hover { background: var(--gold); color: var(--char); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--cream); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--cream); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("../assets/hero-bg.png") center / cover no-repeat;
  transform: scale(1.05); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.65) 55%, rgba(26,26,26,0.92) 100%),
              radial-gradient(120% 90% at 50% 20%, rgba(107,30,35,0.35), transparent 60%);
}
.hero__content { position: relative; z-index: 2; text-align: center; }
.hero__eyebrow {
  font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero__title { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 700; letter-spacing: 0.01em; margin-bottom: 1rem; }
.hero__tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: rgba(245,237,226,0.9); max-width: 34rem; margin: 0 auto 2.5rem; }
.hero__cta { animation: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 22px; height: 36px; border: 1px solid rgba(245,237,226,0.5); border-radius: 12px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--gold);
  transform: translateX(-50%); animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* ============================================================
   VIDEO
   ============================================================ */
.video { background: var(--char); color: var(--cream); text-align: center; }
.video .section__eyebrow { color: var(--gold); }
.video .section__title { color: var(--cream); }
.video .section__lead { color: rgba(245,237,226,0.7); margin-inline: auto; }
.video__card {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  width: 100%; max-width: 620px; margin: 0 auto; padding: 3rem 2rem;
  border-radius: var(--radius); border: 1px solid rgba(201,162,75,0.35);
  background: linear-gradient(160deg, rgba(107,30,35,0.18), rgba(26,26,26,0.4));
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.video__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px;
  border-radius: 50%; color: var(--gold); border: 1px solid var(--gold); background: rgba(201,162,75,0.08);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.video__card:hover .video__icon { transform: scale(1.06); background: rgba(201,162,75,0.16); }
.video__card-text { color: var(--cream); font-size: 1.05rem; letter-spacing: 0.01em; }

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--cream-dark); border-radius: var(--radius); padding: 2.25rem 1.75rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(107,30,35,0.4); border-color: var(--gold); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--cream); color: var(--wine); border: 1px solid var(--gold); margin-bottom: 1.25rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--gold); color: var(--char); }
.card__title { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--wine); }
.card__text { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   GALERÍA (masonry)
   ============================================================ */
.masonry { columns: 3; column-gap: 1rem; }
.masonry__item {
  display: block; width: 100%; margin-bottom: 1rem; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; border-radius: var(--radius); overflow: hidden; break-inside: avoid;
}
.masonry__item img { width: 100%; transition: transform 0.6s var(--ease); }
.masonry__overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(107,30,35,0.55));
  opacity: 0; transition: opacity 0.4s var(--ease); border: 1px solid transparent;
}
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover .masonry__overlay { opacity: 1; border-color: var(--gold); }

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.sobre__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.sobre__media { position: relative; }
.sobre__media img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.sobre__media::after {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; pointer-events: none;
}
.sobre__text .section__title { color: var(--wine); }
.sobre__text p { color: var(--text-muted); margin-bottom: 1.25rem; }
.sobre__text .btn { margin-top: 0.5rem; }

/* ============================================================
   PROCESO
   ============================================================ */
.proceso { background: var(--char); color: var(--cream); }
.proceso .section__eyebrow { color: var(--gold); }
.proceso .section__title { color: var(--cream); }
.proceso .section__lead { color: rgba(245,237,226,0.7); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; border-top: 1px solid rgba(201,162,75,0.3); }
.step__num { font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold); display: block; margin-bottom: 0.75rem; }
.step__title { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--cream); }
.step__text { color: rgba(245,237,226,0.7); font-size: 0.98rem; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.quote {
  background: rgba(245,237,226,0.06); border: 1px solid rgba(201,162,75,0.3); border-radius: var(--radius);
  padding: 2rem; position: relative;
}
.quote::before { content: "\201C"; font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--gold); position: absolute; top: 0.5rem; left: 1rem; opacity: 0.4; }
.quote p { color: var(--cream); font-style: italic; margin-bottom: 1rem; position: relative; z-index: 1; }
.quote cite { color: var(--gold); font-style: normal; font-weight: 500; font-size: 0.9rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { background: var(--wine); color: var(--cream); text-align: center; }
.cta-final__title { font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--gold); margin-bottom: 1rem; }
.cta-final__text { color: rgba(245,237,226,0.85); margin-bottom: 2.5rem; font-size: 1.1rem; }
.cta-final__social { list-style: none; display: flex; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.cta-final__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid rgba(201,162,75,0.5); border-radius: 50%; color: var(--gold);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cta-final__social a:hover { background: var(--gold); color: var(--char); transform: translateY(-3px); }
.cta-final__social svg { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--char); color: rgba(245,237,226,0.7); padding-block: 3rem; border-top: 1px solid rgba(201,162,75,0.2); }
.footer__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer__brand { font-family: var(--font-serif); font-size: 1.5rem; color: var(--cream); }
.footer__meta { font-size: 0.9rem; }
.footer__links { list-style: none; display: flex; gap: 1.5rem; margin-block: 0.75rem; }
.footer__links a { color: var(--gold); font-size: 0.9rem; transition: color 0.3s var(--ease); }
.footer__links a:hover { color: var(--gold-soft); }
.footer__copy { font-size: 0.8rem; color: rgba(245,237,226,0.45); margin-top: 0.5rem; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37,211,102,0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: waPulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 24px -6px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 10px 24px -6px rgba(37,211,102,0.7), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 24px -6px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(26,26,26,0.94); padding: 1.5rem; opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); border: 1px solid rgba(201,162,75,0.4); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9); transform: scale(0.96); transition: transform 0.3s var(--ease); }
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: 0; color: var(--cream);
  font-size: 2.5rem; line-height: 1; cursor: pointer; transition: color 0.3s var(--ease);
}
.lightbox__close:hover { color: var(--gold); }

/* ============================================================
   ANIMACIONES ON-SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* retardo escalonado para hijos dentro de una grilla */
.cards .card:nth-child(2), .steps .step:nth-child(2), .quotes .quote:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3), .steps .step:nth-child(3), .quotes .quote:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }
.cards .card:nth-child(5) { transition-delay: 0.4s; }
.cards .card:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .masonry { columns: 2; }
  .sobre__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sobre__media { max-width: 480px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .section { padding-block: 4rem; }
  .nav__toggle { display: flex; z-index: 101; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.75rem; padding: 2rem; background: var(--char-soft);
    transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: -20px 0 40px -20px rgba(0,0,0,0.8);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__menu a { font-size: 1.1rem; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 520px) {
  .masonry { columns: 1; }
  .container { padding-inline: 1.25rem; }
}

/* ============================================================
   ACCESIBILIDAD — movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none; }
}
