/* ============================================================
   Laura Maeso · Maquillaje y peluquería de novias
   Estética: editorial nupcial — marfil, champán, rosa empolvado
   ============================================================ */

:root {
  --marfil:   #FBF8F3;   /* fondo principal */
  --lino:     #F1EAE0;   /* fondo secciones alternas */
  --tinta:    #2C2520;   /* texto principal */
  --topo:     #7A6E62;   /* texto secundario */
  --champan:  #B2935B;   /* acento dorado suave */
  --empolvado:#D9B8AC;   /* rosa empolvado, detalles */

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --ancho: 1120px;
  --radio: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--marfil);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }

p + p { margin-top: 0.9em; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--champan);
  outline-offset: 3px;
}

.hidden { display: none; }

/* ---------- Utilidades ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champan);
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--marfil);
  background: var(--tinta);
  border: 1px solid var(--tinta);
  padding: 1rem 2.2rem;
  border-radius: var(--radio);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--champan); border-color: var(--champan); }

.btn--ghost {
  background: transparent;
  color: var(--tinta);
}

.btn--ghost:hover { background: var(--tinta); color: var(--marfil); }

.btn--small { padding: 0.65rem 1.4rem; font-size: 0.72rem; }

/* ---------- Fotos ---------- */

.hero__photo img,
.invitadas__photo img,
.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radio);
}

.duo__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radio);
}

/* ---------- Cabecera ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(178, 147, 91, 0.18);
}

.header__logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-right: auto;
}

.header__nav { display: flex; gap: 1.8rem; }

.header__nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--topo);
  transition: color 0.2s ease;
}

.header__nav a:hover { color: var(--champan); }

.header__burger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.header__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--tinta);
  transition: transform 0.25s ease, top 0.25s ease;
}

.header__burger span:first-child { top: 6px; }
.header__burger span:last-child  { top: 16px; }

.header__burger[aria-expanded="true"] span:first-child { top: 11px; transform: rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child  { top: 11px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.3rem);
  margin-bottom: 1.4rem;
}

.hero__title em {
  font-style: italic;
  color: var(--champan);
}

.hero__sub {
  max-width: 32rem;
  color: var(--topo);
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__photo { position: relative; }

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--champan);
  border-radius: var(--radio);
  z-index: -1;
}

/* ---------- Frase editorial + swatches ---------- */

.statement {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.swatch--1 { background: #E8D5C2; }
.swatch--2 { background: var(--empolvado); }
.swatch--3 { background: #C09A82; }
.swatch--4 { background: var(--champan); }

.statement__text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.4;
  max-width: 48rem;
  margin: 0 auto;
}

.statement__text em { font-style: italic; color: var(--champan); }

/* ---------- Secciones ---------- */

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 1.5rem;
}

.section--tinted { background: var(--lino); }

.section__head {
  max-width: var(--ancho);
  margin: 0 auto 3rem;
}

.section__intro {
  max-width: 38rem;
  color: var(--topo);
  margin-top: 1rem;
}

/* ---------- Proceso (Novias) ---------- */

.process {
  max-width: var(--ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.process__step {
  border-top: 1px solid rgba(178, 147, 91, 0.4);
  padding-top: 1.4rem;
  position: relative;
}

.process__dot {
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--empolvado);
  border: 1px solid var(--champan);
}

.process__step h3 { margin-bottom: 0.6rem; }
.process__step p { color: var(--topo); font-size: 0.97rem; }

.duo {
  max-width: var(--ancho);
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---------- Invitadas ---------- */

.invitadas {
  max-width: var(--ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.invitadas__text h2 { margin-bottom: 1.2rem; }
.invitadas__text p { color: var(--topo); }
.invitadas__text .btn { margin-top: 1.8rem; }

/* ---------- Galería ---------- */

.gallery {
  max-width: var(--ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radio);
}

.gallery > .zoomable { aspect-ratio: 4 / 5; }
.gallery > .zoomable img { aspect-ratio: auto; }

/* ---------- Testimonios ---------- */

.quotes {
  max-width: var(--ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.quote {
  background: var(--marfil);
  border-radius: var(--radio);
  padding: 2rem 1.8rem;
  border-top: 2px solid var(--empolvado);
}

.quote p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--topo);
}

/* ---------- Sobre mí ---------- */

.about {
  max-width: var(--ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__text h2 { margin-bottom: 1.2rem; }
.about__text p { color: var(--topo); }

.about__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2rem;
}

.about__facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--tinta);
}

.about__facts li {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--topo);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 46rem;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid rgba(122, 110, 98, 0.25);
  padding: 1.2rem 0;
}

.faq summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--champan);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding-top: 0.8rem;
  color: var(--topo);
  max-width: 40rem;
}

/* ---------- Contacto ---------- */

.contact {
  max-width: var(--ancho);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact__text h2 { margin-bottom: 1.2rem; }
.contact__text p { color: var(--topo); }

.contact__alt a { color: var(--champan); }

.form { display: grid; gap: 1.3rem; }

.form__row { display: grid; gap: 0.4rem; }

.form__row--half {
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.form__row--half > div { display: grid; gap: 0.4rem; }

.form label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--topo);
}

.form .opt {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 300;
  font-style: italic;
  opacity: 0.7;
}

.form input,
.form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--tinta);
  background: #fff;
  border: 1px solid rgba(122, 110, 98, 0.3);
  border-radius: var(--radio);
  padding: 0.85rem 1rem;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--champan);
}

.form .btn { justify-self: start; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--topo);
  cursor: pointer;
}

.check input {
  margin-top: 0.25em;
  accent-color: var(--champan);
}

.check a { color: var(--champan); }

/* ---------- Pie ---------- */

.footer {
  background: var(--tinta);
  color: rgba(251, 248, 243, 0.75);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  font-size: 0.9rem;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--marfil);
  margin-bottom: 0.4rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin: 1.6rem 0;
}

.footer__nav a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(251, 248, 243, 0.75);
  transition: color 0.2s ease;
}

.footer__nav a:hover { color: var(--champan); }

.footer__copy { font-size: 0.78rem; opacity: 0.6; }

/* ---------- Pista visual de "ampliable" ---------- */

.zoomable {
  position: relative;
  cursor: pointer;
  display: block;
}

/* El wrapper debe ocupar la celda del grid igual que la imagen */
.gallery .zoomable,
.duo .zoomable { display: block; width: 100%; }
.gallery .zoomable img,
.duo .zoomable img { display: block; }

.zoomable .zoom-hint {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(28, 22, 18, 0.55);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.zoom-hint svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* En escritorio: aparece al pasar el ratón */
@media (hover: hover) {
  .zoomable .zoom-hint { opacity: 0; transform: scale(0.85); }
  .zoomable:hover .zoom-hint { opacity: 1; transform: scale(1); }
}

/* En táctil (móvil): siempre visible y algo más sutil */
@media (hover: none) {
  .zoomable .zoom-hint { opacity: 0.9; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(28, 22, 18, 0.92);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}

.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radio);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(251, 248, 243, 0.12);
  border: none;
  color: var(--marfil);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(251, 248, 243, 0.28); }

.lightbox__close {
  top: 1.2rem;
  right: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }

@media (max-width: 720px) {
  .lightbox__nav { display: none; }
  .lightbox__close { top: 0.8rem; right: 0.8rem; }
}

/* ---------- Animaciones de aparición ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 420px; }
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .invitadas,
  .about,
  .contact { grid-template-columns: 1fr; }
  .invitadas__photo,
  .about__photo { max-width: 420px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery > .zoomable:last-child,
  .gallery > img:last-child { grid-column: 1 / -1; aspect-ratio: auto; }
  .gallery > .zoomable:last-child img,
  .gallery > img:last-child { aspect-ratio: auto; max-height: 80vh; width: auto; margin: 0 auto; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--marfil);
    border-bottom: 1px solid rgba(178, 147, 91, 0.18);
    display: none;
  }

  .header__nav.is-open { display: flex; }

  .header__nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(178, 147, 91, 0.12);
  }

  .header__cta { display: none; }
  .header__burger { display: block; }

  .br-desktop { display: none; }
  .form__row--half { grid-template-columns: 1fr; }
}
