/* ==========================================================================
   Liz Tapia — Maquillaje y Peinado Profesional
   Editorial, mobile-first stylesheet
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea { font: inherit; }

/* ---- Design tokens ---- */
:root {
  /* Palette — Liz Tapia brand book */
  --ivory: #f6f2ea;      /* dominant background — warm marfil, not stark white */
  --ivory-deep: #ece1d1; /* slightly more intense marfil, used for gradient tops */
  --cream: #f4ebe3;      /* alternating section tint */
  --blush: #e4c8b9;      /* soft accents, dividers */
  --tan: #c6aa97;        /* borders, secondary accents */
  --mauve-mid: #b0988b;  /* muted accents / secondary text on light */
  --mauve: #957666;      /* headings, buttons, large-scale accents */
  --mauve-deep: #6b4f40; /* body text ink + dark section backgrounds */
  --mauve-darker: color-mix(in srgb, #6b4f40 78%, black); /* deepest gradient stop */
  --white: #ffffff;

  --font-display: 'Cinzel Decorative', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --section-pad-b: clamp(2.5rem, 5.5vw, 4.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--ivory);
  color: var(--mauve-deep);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--mauve-deep);
  color: var(--ivory);
  padding: 0.75em 1.25em;
  z-index: 999;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; border-radius: 4px; }

/* ---- Typography helpers ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--mauve);
  line-height: 1.25;
}

h2 { font-size: clamp(1.9rem, 3.4vw + 1rem, 3rem); }
h3 { font-size: clamp(1.35rem, 1.4vw + 1rem, 1.75rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.02em; }

p { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  text-shadow: 0 1px 1px rgba(107,79,64,0.14);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--ivory); opacity: 0.9; }

.script {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem);
  color: var(--mauve);
}

/* ---- Layout helpers ---- */
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  padding: 0 var(--gap);
  text-align: center;
}
.section-head--compact { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head__sub { margin: 1rem auto 0; color: var(--mauve-mid); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.95em 2.2em;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn--outline-light {
  color: var(--ivory);
  border-color: rgba(247,247,248,0.65);
}
.btn--outline-light:hover, .btn--outline-light:focus-visible {
  background: var(--ivory);
  color: var(--mauve-deep);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  --nav-text: var(--ivory);
  --nav-border: transparent;
  background: transparent;
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav.nav--hidden { transform: translateY(-100%); }
.nav.nav--scrolled {
  --nav-text: var(--mauve-deep);
  --nav-border: rgba(107,79,64,0.08);
  background: rgba(247,247,248,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap);
  position: relative;
}

.nav__logo { display: block; }
.nav__logo img {
  height: 42px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}
.nav--scrolled .nav__logo img { filter: none; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.nav__lang-btn {
  display: block;
  opacity: 0.42;
  filter: grayscale(70%);
  transform: scale(0.92);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__lang-btn:hover, .nav__lang-btn:focus-visible { opacity: 0.75; filter: grayscale(15%); }
.nav__lang-btn.is-active { opacity: 1; filter: grayscale(0%); transform: scale(1); }
.flag-icon { display: block; width: 22px; height: 15px; border-radius: 2px; }

.nav__links {
  display: none;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nav-text);
  transition: color 0.4s var(--ease);
}
.nav__links a { position: relative; padding: 0.3em 0; }
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a:not(.nav__cta):focus-visible::after { right: 0; }

.nav__cta {
  border: 1px solid var(--nav-text);
  padding: 0.55em 1.3em;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.4s var(--ease);
}
.nav__cta:hover, .nav__cta:focus-visible {
  background: linear-gradient(135deg, var(--mauve), var(--mauve-deep));
  color: var(--ivory);
  border-color: transparent;
}

.nav__burger {
  width: 30px; height: 22px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: var(--nav-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease), background 0.4s var(--ease);
}
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { top: 10px; }
.nav__burger span:nth-child(3) { top: 18px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ivory);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--mauve);
}
.mobile-menu__cta {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--mauve);
  padding: 0.8em 1.8em;
  margin-top: 0.5rem;
}
.mobile-menu__social {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve-mid);
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--mauve-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  opacity: 0.92;
  transform: scale(1.08);
  will-change: transform;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(41,29,22,0.74) 0%, rgba(58,42,33,0.28) 42%, rgba(58,42,33,0.06) 65%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gap) clamp(4rem, 12vh, 7rem);
  max-width: 720px;
  color: var(--ivory);
}
.hero__content .eyebrow { font-size: 1.17rem; }
.hero__title {
  font-size: clamp(1.85rem, 4.8vw + 0.8rem, 3.35rem);
  color: var(--ivory);
  margin-bottom: 0.6rem;
}
.hero__subtitle {
  font-weight: 300;
  font-size: clamp(0.95rem, 1vw + 0.6rem, 1.15rem);
  color: rgba(247,247,248,0.88);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(1.2rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px;
  border: 1px solid rgba(247,247,248,0.6);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--ivory);
  border-radius: 50%;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
}

/* ==========================================================================
   Bio
   ========================================================================== */
.bio { padding: var(--section-pad) 0 var(--section-pad-b); }
.bio__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.bio__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 240px 240px 4px 4px;
}
.bio__content p { margin-bottom: 1.1rem; }
.bio__content h2 { margin-bottom: 1.1rem; max-width: 16ch; }

.pull-quote {
  margin: 1.8rem 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--blush);
}
.pull-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.2vw + 0.9rem, 1.4rem);
  color: var(--mauve);
  line-height: 1.5;
}
.pull-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve-mid);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--tan);
}
.values li {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve-deep);
}

.bio__signature { margin-top: 2.2rem; text-align: center; }
.bio__signature img { height: 54px; width: auto; opacity: 0.92; margin: 0 auto; }

@media (min-width: 860px) {
  .bio__grid { grid-template-columns: 0.85fr 1.15fr; align-items: center; }
}

/* ==========================================================================
   La experiencia
   ========================================================================== */
.experiencia { padding: var(--section-pad) 0 var(--section-pad-b); background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 50%, var(--ivory) 100%); }
.experiencia__strip {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gap) 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.experiencia__strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.experiencia__track {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  width: max-content;
  margin: 0 auto;
}
.experiencia__item {
  scroll-snap-align: center;
  width: min(72vw, 300px);
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
}
.experiencia__item img { width: 100%; height: 100%; object-fit: cover; }
.experiencia__tagline { text-align: center; margin-top: 1.5rem; padding: 0 var(--gap); }

@media (min-width: 1200px) {
  .experiencia__track { justify-content: center; }
}

/* ---- Mobile: native-widget carousel (edge-to-edge, one card + peek) ---- */
@media (max-width: 699px) {
  .experiencia__strip {
    padding: 0 0 1.1rem;
    scroll-padding-left: var(--gap);
  }
  .experiencia__track {
    width: auto;
    margin: 0;
    padding: 0 var(--gap);
  }
  .experiencia__item {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 78vw;
    max-width: 320px;
    flex-shrink: 0;
    box-shadow: 0 14px 28px -18px rgba(59,42,33,0.35);
  }
}

/* ==========================================================================
   Servicios — Colecciones de novia
   ========================================================================== */
.servicios { padding: var(--section-pad) 0 var(--section-pad-b); }

.colecciones {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.colecciones__label {
  font-family: var(--font-display);
  color: var(--tan);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 2rem;
}

.colecciones__grid {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.2rem);
  grid-template-columns: 1fr;
}

.coleccion-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(198,170,151,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.coleccion-card:hover { border-color: var(--mauve-mid); box-shadow: 0 18px 40px -24px rgba(59,42,33,0.35); }
.coleccion-card__media { aspect-ratio: 4/3; overflow: hidden; }
.coleccion-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.coleccion-card:hover .coleccion-card__media img { transform: scale(1.04); }
.coleccion-card__body { padding: 1.5rem 1.6rem 1.8rem; position: relative; overflow: hidden; }
.coleccion-card__num {
  position: absolute;
  top: -0.6rem;
  right: 0.8rem;
  font-family: var(--font-display);
  color: var(--mauve);
  font-size: 4.6rem;
  line-height: 1;
  opacity: 0.26;
  z-index: 0;
  pointer-events: none;
}
.coleccion-card__body h3 {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
  max-width: 80%;
}
.coleccion-card__lead {
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--mauve);
  font-size: 1.02rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.coleccion-card__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--mauve-deep);
}
.coleccion-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 1px;
  background: var(--mauve);
}
.coleccion-card__note {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--mauve-mid);
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(198,170,151,0.4);
}
.coleccion-card__more {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve);
  border-bottom: 1px solid var(--mauve);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.coleccion-card__more:hover, .coleccion-card__more:focus-visible {
  color: var(--mauve-deep);
  border-color: var(--mauve-deep);
}

@media (min-width: 700px) {
  .colecciones__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .coleccion-card:nth-child(odd) { transform: translateY(clamp(0px, 2vw, 24px)); }
}

/* ==========================================================================
   Los cómplices — Damas & Caballeros
   ========================================================================== */
.complices { margin-top: clamp(4.5rem, 9vw, 7.5rem); }

.categorias {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 6rem);
}

.categoria {
  display: grid;
  gap: 2rem;
}
.categoria__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.categoria__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--mauve);
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.75rem);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.categoria__lead {
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--mauve);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  max-width: 40ch;
}
.categoria__list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
  color: var(--mauve-deep);
}
.categoria__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 1px;
  background: var(--mauve);
}

@media (min-width: 860px) {
  .categoria { grid-template-columns: 1fr 1fr; align-items: center; }
  .categoria__content { padding: 0 clamp(1rem, 3vw, 3rem); }
  .categoria--reverse .categoria__media { order: 2; }
  .categoria--reverse .categoria__content { order: 1; }
}

/* ==========================================================================
   Servicios adicionales — compactos
   ========================================================================== */
.adicionales {
  max-width: var(--container);
  margin: clamp(4.5rem, 9vw, 7.5rem) auto 0;
  padding: 0 var(--gap);
}
.adicionales__grid {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}
.adicional-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--tan);
  text-align: left;
}
.adicional-card:first-child { border-top: 1px solid var(--tan); }
.adicional-card__media {
  flex: 0 0 108px;
  width: 108px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
}
.adicional-card__media img { width: 100%; height: 100%; object-fit: cover; }
.adicional-card__body h4 { color: var(--mauve); font-size: 0.95rem; margin-bottom: 0.3rem; }
.adicional-card__body p { font-size: 0.85rem; color: var(--mauve-mid); line-height: 1.5; }

@media (min-width: 640px) {
  .adicional-card__media { flex-basis: 130px; width: 130px; }
}

/* ==========================================================================
   Portafolio / Galería
   ========================================================================== */
.portafolio { padding: var(--section-pad) 0 var(--section-pad-b); background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 50%, var(--ivory) 100%); }
.gallery {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/5;
}
.gallery__item--wide { aspect-ratio: 5/3; grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(107,79,64,0);
  transition: background 0.35s var(--ease);
}
.gallery__item:hover::after { background: rgba(107,79,64,0.12); }
.gallery__item::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%) scale(0.72);
  border: 1px solid rgba(247,247,248,0.92);
  border-radius: 50%;
  background-color: rgba(59,42,33,0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.3' y1='15.3' x2='21' y2='21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px;
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.gallery__item:hover::before, .gallery__item:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}

/* ==========================================================================
   Testimonios
   ========================================================================== */
.testimonios { padding: var(--section-pad) 0; }

.testi-carousel {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.testi-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testi-carousel__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(84vw, 320px);
  background: var(--white);
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  border: 1px solid rgba(198,170,151,0.4);
}
.testi-card__photo {
  width: 96px; height: 118px;
  margin: 0 auto 1.3rem;
  overflow: hidden;
  border-radius: 60px 60px 4px 4px;
}
.testi-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.testi-card p {
  font-size: 0.9rem;
  color: var(--mauve-deep);
  text-align: center;
  margin-bottom: 1.1rem;
}
.testi-card p::first-letter {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--mauve);
  line-height: 0;
}
.testi-card h4 {
  text-align: center;
  font-size: 0.95rem;
  color: var(--mauve);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.testi-carousel__nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 1px solid var(--tan);
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--mauve);
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  z-index: 2;
}
.testi-carousel__nav--prev { left: -4px; }
.testi-carousel__nav--next { right: -4px; }

@media (min-width: 900px) {
  .testi-carousel__nav { display: flex; }
}

/* ---- Mobile: native-widget carousel (edge-to-edge, one card + peek) ---- */
@media (max-width: 699px) {
  .testi-carousel { padding: 0; }
  .testi-carousel__track {
    padding: 0 var(--gap) 0.5rem;
    scroll-padding-left: var(--gap);
    gap: 1rem;
  }
  .testi-card {
    scroll-snap-stop: always;
    flex-basis: 82vw;
    max-width: 320px;
    box-shadow: 0 14px 28px -18px rgba(59,42,33,0.35);
  }
}

.testi-pro {
  max-width: var(--container);
  margin: clamp(4.5rem, 9vw, 7rem) auto 0;
  padding: 0 var(--gap);
}
.testi-pro__grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
.testi-pro-card {
  background: var(--cream);
  padding: clamp(1.8rem, 2.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-pro-card p {
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: var(--mauve-deep);
  margin-bottom: 1.5rem;
}
.testi-pro-card p::first-letter {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.7rem;
  color: var(--mauve);
}
.testi-pro-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tan);
  flex-wrap: wrap;
}
.testi-pro-card__footer h4 { font-size: 0.92rem; color: var(--mauve); }
.testi-pro-card__footer span { font-size: 0.78rem; color: var(--mauve-mid); }
.testi-pro-card__footer a {
  font-size: 0.78rem;
  color: var(--mauve-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 860px) {
  .testi-pro__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Agenda
   ========================================================================== */
.agenda {
  background: linear-gradient(155deg, var(--mauve) 0%, var(--mauve-deep) 68%, var(--mauve-darker) 130%);
  color: var(--ivory);
  padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.agenda__inner { max-width: 620px; margin: 0 auto; padding: 0 var(--gap); }
.agenda__mark { margin: 0 auto 1.4rem; opacity: 0.9; }
.agenda h2 { color: var(--ivory); margin-bottom: 1rem; }
.agenda__sub { color: rgba(247,247,248,0.8); margin-bottom: 2.2rem; }
.agenda__contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247,247,248,0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.agenda__contact > div { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.agenda__contact a { color: var(--ivory); opacity: 0.85; }
.agenda__contact a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.agenda__contact span { color: rgba(247,247,248,0.7); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: linear-gradient(155deg, var(--mauve-deep) 0%, var(--mauve-darker) 100%);
  color: rgba(247,247,248,0.65);
  text-align: center;
  padding: 2rem var(--gap) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(247,247,248,0.12);
}
.footer img { opacity: 0.85; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   WhatsApp FAB
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 52px; height: 52px;
  background: linear-gradient(155deg, var(--mauve) 0%, var(--mauve-deep) 100%);
  color: var(--ivory);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(59,42,33,0.35);
  z-index: 60;
  transition: transform 0.3s var(--ease);
}
.whatsapp-fab svg { width: 24px; height: 24px; }
.whatsapp-fab:hover { transform: scale(1.08); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,14,11,0.94);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 86vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  color: var(--ivory); font-size: 1.3rem;
  width: 44px; height: 44px;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--ivory); font-size: 2.2rem;
  width: 52px; height: 52px;
}
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

/* ==========================================================================
   Tratamiento fotográfico unificado
   ========================================================================== */
.hero__media img,
.bio__media img,
.coleccion-card__media img,
.categoria__media img,
.adicional-card__media img,
.gallery__item img,
.experiencia__item img,
.testi-card__photo img {
  filter: saturate(0.93) contrast(1.04) sepia(0.045);
}


/* ==========================================================================
   Divisor ornamental
   ========================================================================== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  max-width: 180px;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--gap);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tan);
}
.divider__diamond {
  width: 6px; height: 6px;
  background: var(--mauve);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ==========================================================================
   Dots de carrusel (mobile)
   ========================================================================== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.carousel-dots button {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tan);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-dots button.is-active {
  background: var(--mauve);
  transform: scale(1.5);
}

/* ==========================================================================
   Blur-up (LQIP) para imágenes con carga diferida
   ========================================================================== */
.js img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  background-size: cover;
  background-position: center;
}
.js img[loading="lazy"].is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js img[loading="lazy"] { transition: none; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
body.is-loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--mauve-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__mark img {
  width: 52px;
  height: auto;
  animation: preloaderBreathe 1.8s ease-in-out infinite;
}

.preloader__bar {
  width: 110px;
  height: 1px;
  background: rgba(247,247,248,0.18);
  overflow: hidden;
  position: relative;
}
.preloader__bar span {
  position: absolute;
  top: 0; left: -40%;
  height: 100%;
  width: 40%;
  background: var(--blush);
  animation: preloaderSlide 1.5s ease-in-out infinite;
}

@keyframes preloaderBreathe {
  0%, 100% { opacity: 0.5; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes preloaderSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity 0.3s linear; }
  .preloader__mark img { animation: none; opacity: 0.9; }
  .preloader__bar span { animation: none; left: 0; width: 100%; opacity: 0.35; }
}

/* ==========================================================================
   Misc
   ========================================================================== */
::selection { background: var(--blush); color: var(--mauve-deep); }
