/* =========================================================
   Estudio Fabiola Wax — hoja de estilos
   Paleta, tipografía y componentes en un solo archivo.
   ========================================================= */

:root {
  --cream:   #FBF8F5;
  --tint:    #F3ECE5;
  --ink:     #1F1A17;
  --muted:   #6E635C;
  --accent:  #A9705B;
  --accent-soft: #E8D5C9;
  --line:    rgba(31, 26, 23, .12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 18px 50px -28px rgba(31, 26, 23, .38);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}

h1 { font-size: clamp(3rem, 7.5vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }

h1 em, h2 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 1rem; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead { font-size: 1.075rem; color: var(--muted); max-width: 46ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------------- Botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn--sm { padding: 10px 20px; font-size: .8rem; }
.btn--block { width: 100%; font-family: var(--sans); }

/* ---------------- Navegación ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 245, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--accent-soft);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.brand__text em {
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: .875rem;
  text-decoration: none;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { color: var(--cream); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

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

.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 2.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 0;
  padding: 1.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}
.hero__trust span { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.hero__visual { position: relative; }

.hero__frame {
  border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__photo { aspect-ratio: 3 / 4; }

/* Contenedor de foto. El degradado queda de fondo mientras la imagen carga,
   y sirve de respaldo si la foto no está disponible. */
[data-photo] {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 15%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(150deg, #EFE3DA 0%, #E3D2C6 55%, #D8C3B4 100%);
  display: grid;
  place-items: center;
}
[data-photo] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Etiqueta para los espacios que aún no tienen foto */
.photo-hint {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(31, 26, 23, .38);
}

.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 34px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  text-align: left;
}
.hero__badge-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
}
.hero__badge-lbl {
  display: block;
  font-size: .7rem;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .35rem;
}

/* ---------------- Marquesina ---------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  background: var(--cream);
}
.marquee__track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
}
.marquee i { color: var(--accent); font-style: normal; }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--tint); }

.section__head { max-width: 620px; margin-bottom: 3rem; }
.section__sub { color: var(--muted); max-width: 52ch; }

/* ---------------- Servicios ---------------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.pricing__title {
  font-size: 1.6rem;
  margin: 0 0 1.1rem;
}

.price-list { list-style: none; margin: 0; padding: 0; }

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .78rem 0;
  border-top: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: 1px solid var(--line); }

.price-list span { font-size: .95rem; }

.price-list b {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.services__note {
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------------- Pasos ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step__num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: .85rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

.cta-band {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.cta-band p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.gallery > div { aspect-ratio: 4 / 3; }
.gallery img { transition: transform .6s var(--ease); }
.gallery > div:hover img { transform: scale(1.04); }

/* ---------------- Agenda ---------------- */

.agenda {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.facts { margin: 2.25rem 0 0; }
.facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .18rem;
}
.facts dd { margin: 0; font-size: .92rem; }

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
}

.field { grid-column: 1 / -1; display: flex; flex-direction: column; }
.field--half { grid-column: span 1; }

.field label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 2px;
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 70px; }
.field select { appearance: none; cursor: pointer; padding-right: 24px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 19px, calc(100% - 7px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(110, 99, 92, .55); }

.field.has-error input,
.field.has-error select { border-bottom-color: #B3261E; }

.field__error {
  margin: .4rem 0 0;
  font-size: .78rem;
  color: #B3261E;
  min-height: 0;
}

.form .btn { grid-column: 1 / -1; margin-top: .6rem; }

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .85rem;
  color: var(--accent);
  text-align: center;
}
.form__status:empty { display: none; }

.form__legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ---------------- Visítanos ---------------- */

.visita {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-list span {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.contact-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------------- Footer ---------------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: .35rem;
}
.footer__note { color: rgba(251, 248, 245, .6); font-size: .88rem; }
.footer__copy {
  margin: 2rem 0 0;
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(251, 248, 245, .4);
}

/* ---------------- WhatsApp flotante ---------------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  box-shadow: 0 10px 30px -10px rgba(31, 26, 23, .55);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.wa-float:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------------- Animación de entrada ---------------- */

/* Sin JavaScript todo se ve normal. La animación solo se activa cuando el
   script alcanzó a marcar la página, para que nada quede invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 900px) {
  .hero__inner,
  .agenda,
  .visita { grid-template-columns: 1fr; }

  .hero__visual { order: -1; max-width: 380px; margin-inline: auto; }
  .hero__frame { border-radius: 200px 200px var(--radius) var(--radius); }
  .hero__badge { left: auto; right: -6px; }
  .agenda__aside { max-width: 560px; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__links .btn {
    justify-content: center;
    border: 1px solid var(--ink);
    margin-top: 16px;
    padding: 14px 20px;
  }

  .hero__trust { gap: 1.75rem 2rem; }
  .field--half { grid-column: 1 / -1; }

  /* La galería pasa a ser un carrusel que se desliza con el dedo */
  .gallery {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    background: transparent;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery > div {
    flex: 0 0 82%;
    scroll-snap-align: center;
    border-radius: var(--radius);
  }
  .wa-float { width: 48px; height: 48px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
