/* =========================================================
   GLOW SPA · ESTILOS
   Mobile-first. Para cambiar la paleta, edita solo :root.
   ========================================================= */

/* ---------- 1. Variables (EDITAR paleta aquí) ---------- */
:root {
  /* Colores de marca */
  --color-primario: #D9B8A9;        /* rosa empolvado / nude (decorativo, fondos) */
  --color-primario-suave: #F3E4DC;  /* versión clarita del primario */
  --color-acento: #9C5662;          /* rosa profundo: botones y enlaces (contraste AA con blanco) */
  --color-acento-hover: #834450;
  --color-dorado: #B8956A;          /* detalles dorados */

  /* Neutros */
  --color-fondo: #FCF8F5;
  --color-fondo-alt: #F7EEE8;
  --color-superficie: #FFFFFF;
  --color-texto: #3B2F2F;
  --color-texto-suave: #6B5A57;
  --color-borde: #E8D9D0;
  --color-error: #B3261E;
  --color-whatsapp: #1E8E4E;        /* verde WhatsApp oscurecido para contraste AA */

  /* Tipografía */
  --font-titulo: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-texto: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --radio: 18px;
  --radio-sm: 12px;
  --sombra: 0 10px 30px rgba(92, 58, 52, 0.08);
  --sombra-fuerte: 0 18px 40px rgba(92, 58, 52, 0.16);
  --ancho-max: 1120px;
  --header-alto: 64px;
  --transicion: 0.25s ease;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-alto) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-texto);
  background: var(--color-fondo);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-titulo);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-texto);
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.2rem); }
h2 { font-size: clamp(2rem, 6.5vw, 2.9rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem; }
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--color-acento); }

:focus-visible {
  outline: 3px solid var(--color-acento);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--color-acento); color: #fff; padding: 10px 16px;
  border-radius: var(--radio-sm); text-decoration: none; transition: top var(--transicion);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 720px; }

.section { padding: 72px 0; }
.section--soft { background: var(--color-fondo-alt); }

.section__head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.section__head p:last-child { color: var(--color-texto-suave); margin: 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-acento);
  margin-bottom: 0.6rem;
}

.accent { color: var(--color-acento); font-style: italic; }

.grid { display: grid; gap: 20px; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font: 500 1rem/1.2 var(--font-texto);
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transicion), color var(--transicion), transform var(--transicion), box-shadow var(--transicion);
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--color-acento); color: #fff; box-shadow: 0 8px 20px rgba(156, 86, 98, 0.28); }
.btn--primary:hover { background: var(--color-acento-hover); }

.btn--ghost { background: transparent; color: var(--color-texto); border-color: var(--color-texto); }
.btn--ghost:hover { background: var(--color-texto); color: #fff; }

.btn--outline { background: transparent; color: var(--color-acento); border-color: var(--color-acento); }
.btn--outline:hover { background: var(--color-acento); color: #fff; }

.btn--whatsapp { background: var(--color-whatsapp); color: #fff; box-shadow: 0 8px 20px rgba(30, 142, 78, 0.28); }
.btn--whatsapp:hover { background: #17733F; }

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn__icon { width: 22px; height: 22px; }

/* ---------- 5. Cabecera y navegación ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-alto);
  background: rgba(252, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transicion);
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(92, 58, 52, 0.08); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo {
  font-family: var(--font-titulo);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-texto);
  text-decoration: none;
  margin: 0;
}
.logo__mark { color: var(--color-dorado); }

.nav__toggle {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; border-radius: 50%;
}
.nav__bar, .nav__bar::before, .nav__bar::after {
  display: block; width: 24px; height: 2px;
  background: var(--color-texto); border-radius: 2px;
  transition: transform var(--transicion), background var(--transicion);
  position: relative;
}
.nav__bar::before, .nav__bar::after { content: ""; position: absolute; left: 0; }
.nav__bar::before { top: -7px; }
.nav__bar::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bar::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: absolute; top: var(--header-alto); left: 0; right: 0;
  list-style: none; margin: 0; padding: 12px 20px 24px;
  background: var(--color-fondo);
  box-shadow: 0 12px 24px rgba(92, 58, 52, 0.1);
  display: none;
}
.nav__menu.is-open { display: block; }
.nav__menu li a:not(.btn) {
  display: block; padding: 14px 4px;
  color: var(--color-texto); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--color-borde);
}
.nav__menu .btn { margin-top: 16px; width: 100%; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 64px;
  background:
    radial-gradient(circle at 85% 10%, var(--color-primario-suave) 0, transparent 45%),
    radial-gradient(circle at 0% 90%, #F6E9DF 0, transparent 40%);
  overflow: hidden;
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__title em { color: var(--color-acento); font-style: italic; }
.hero__lead { font-size: 1.08rem; color: var(--color-texto-suave); max-width: 32rem; }

.price-badge {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 14px;
  margin: 8px 0 28px;
  padding: 14px 24px;
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.price-badge__label {
  grid-column: 1 / -1;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-texto-suave);
}
.price-badge__amount {
  font-family: var(--font-titulo);
  font-size: 3rem; font-weight: 600; line-height: 1;
  color: var(--color-acento);
  font-variant-numeric: lining-nums;
}
.price-badge__note { font-size: 0.9rem; color: var(--color-texto-suave); line-height: 1.3; max-width: 9rem; }

.hero__actions { display: flex; flex-direction: column; gap: 12px; }

/* Placeholder visual del hero (REEMPLAZAR CON FOTO) */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  border-radius: 200px 200px var(--radio) var(--radio);
  background: linear-gradient(160deg, var(--color-primario-suave), var(--color-primario) 60%, var(--color-dorado));
  box-shadow: var(--sombra-fuerte);
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.55; }
.blob--1 { width: 60%; aspect-ratio: 1; top: 12%; left: -10%; background: rgba(255, 255, 255, 0.55); animation: flotar 9s ease-in-out infinite; }
.blob--2 { width: 45%; aspect-ratio: 1; bottom: 14%; right: -8%; background: rgba(156, 86, 98, 0.35); animation: flotar 11s ease-in-out infinite reverse; }

.hero__card {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radio-sm);
  font-size: 0.9rem; line-height: 1.35;
  box-shadow: var(--sombra);
}
.hero__card-icon { font-size: 1.4rem; color: var(--color-dorado); }

@keyframes flotar {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -16px); }
}

/* ---------- 7. Servicios ---------- */
.service-card {
  display: flex; flex-direction: column;
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-fuerte); }

/* Placeholders con degradado (REEMPLAZAR CON FOTO) */
.service-card__media {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
}
.service-card__media--nails  { background: linear-gradient(135deg, #F6DCD3, #D9A5A0); }
.service-card__media--lashes { background: linear-gradient(135deg, #EFE2D6, #C7A98A); }
.service-card__media--hair   { background: linear-gradient(135deg, #F3E4DC, #B98B82); }
.service-card__media--pedi   { background: linear-gradient(135deg, #F7EAE3, #D2B49C); }

.service-card__icon {
  width: 56px; height: 56px;
  fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.95;
}

.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.service-card__body .btn { margin-top: auto; }

.service-list { list-style: none; margin: 0 0 20px; padding: 0; }
.service-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-borde);
  font-size: 0.95rem;
}
.service-list li:last-child { border-bottom: 0; }
.service-list__price { font-weight: 600; color: var(--color-acento); white-space: nowrap; }

/* ---------- 8. Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: paso; }
.step {
  text-align: center;
  padding: 28px 22px;
  background: var(--color-superficie);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.step__icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primario-suave);
}
.step__icon svg {
  width: 34px; height: 34px;
  fill: none; stroke: var(--color-acento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.step h3 { font-size: 1.4rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.step__num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-acento); color: #fff;
  font: 600 0.85rem var(--font-texto);
}
.step p { color: var(--color-texto-suave); margin: 0; }

/* ---------- 9. Formulario ---------- */
.booking {
  padding: 28px 20px;
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra-fuerte);
}

.field { margin-bottom: 20px; }
.field-row { display: grid; gap: 0 16px; }

label { display: block; font-weight: 500; margin-bottom: 6px; }
.req { color: var(--color-error); }
.optional { color: var(--color-texto-suave); font-weight: 400; font-size: 0.9em; }

input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: 400 1rem var(--font-texto);   /* 16px evita el zoom automático en iPhone */
  color: var(--color-texto);
  background: var(--color-fondo);
  border: 1.5px solid var(--color-borde);
  border-radius: var(--radio-sm);
  transition: border-color var(--transicion), box-shadow var(--transicion);
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B5A57' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
textarea { resize: vertical; min-height: 96px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 4px rgba(156, 86, 98, 0.15);
}

.field__hint { font-size: 0.85rem; color: var(--color-texto-suave); margin: 6px 0 0; }
.field__error { font-size: 0.88rem; color: var(--color-error); font-weight: 500; margin: 6px 0 0; }
.field__error:empty { display: none; }
.has-error input, .has-error select { border-color: var(--color-error); }

.form-summary {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: #FDECEA;
  border: 1px solid #F3B8B3;
  border-radius: var(--radio-sm);
  color: var(--color-error);
}
.form-summary ul { margin: 8px 0 0; padding-left: 20px; }
.form-summary a { color: var(--color-error); }

.booking__note { text-align: center; font-size: 0.88rem; color: var(--color-texto-suave); margin: 12px 0 0; }

/* ---------- 10. Productos ---------- */
.grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card {
  display: flex; flex-direction: column;
  padding: 14px;
  background: var(--color-superficie);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  text-align: center;
}
.product-card h3 { font-size: 1.2rem; margin: 14px 0 4px; }
.product-card p { font-size: 0.85rem; color: var(--color-texto-suave); margin-bottom: 8px; }
.product-card .btn { margin-top: auto; min-height: 44px; padding: 8px 12px; font-size: 0.92rem; }
.product-card__price { font-weight: 600; color: var(--color-acento) !important; font-size: 1rem !important; }

/* Placeholders de producto (REEMPLAZAR CON FOTO) */
.product-card__media {
  aspect-ratio: 1;
  border-radius: var(--radio-sm);
  position: relative;
  overflow: hidden;
}
.product-card__media::after {
  content: "";
  position: absolute; left: 50%; bottom: 14%;
  width: 34%; height: 58%;
  transform: translateX(-50%);
  border-radius: 14px 14px 10px 10px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 14px rgba(92, 58, 52, 0.15);
}
.product-card__media--1 { background: linear-gradient(160deg, #F7E6DE, #E0B9A9); }
.product-card__media--2 { background: linear-gradient(160deg, #F1E6DA, #CDAE8C); }
.product-card__media--3 { background: linear-gradient(160deg, #F6E3E3, #CF9EA4); }
.product-card__media--4 { background: linear-gradient(160deg, #EFE7DF, #BFA591); }

/* ---------- 11. Preguntas frecuentes ---------- */
.faq__item {
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1;
  color: var(--color-acento);
  transition: transform var(--transicion);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 20px 18px; margin: 0; color: var(--color-texto-suave); }

/* ---------- 12. Ubicación ---------- */
.location { display: grid; gap: 24px; }
.location__map {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4 / 3;
  background: var(--color-primario-suave);
}
.location__map iframe { width: 100%; height: 100%; border: 0; }
.location__info {
  padding: 26px 22px;
  background: var(--color-superficie);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.location__info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.hours { list-style: none; margin: 0 0 12px; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--color-borde); }
.location__note { font-size: 0.9rem; color: var(--color-texto-suave); }

/* ---------- 13. Footer ---------- */
.footer {
  padding: 56px 0 100px;   /* espacio extra para el botón flotante */
  background: #3B2F2F;
  color: #EADCD5;
}
.footer__inner { display: grid; gap: 28px; }
.logo--footer { color: #fff; }
.footer__tag { color: #CDBAB2; margin-top: 6px; }
.footer__title {
  font: 600 0.8rem var(--font-texto);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-primario);
  margin-bottom: 10px;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem; color: #CDBAB2;
}
.footer__bottom p { margin: 0 0 6px; }
.footer__credit { font-size: 0.78rem; opacity: 0.85; }

/* ---------- 14. Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 142, 78, 0.4);
  transition: transform var(--transicion);
  animation: latido 2.8s ease-in-out 2s 3;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ---------- 15. Aviso (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 160;
  max-width: calc(100% - 40px);
  padding: 14px 20px;
  background: var(--color-texto); color: #fff;
  border-radius: var(--radio-sm);
  font-size: 0.92rem;
  box-shadow: var(--sombra-fuerte);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity var(--transicion), transform var(--transicion);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 16. Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Sin JavaScript, que todo se vea */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. Tablet (≥ 640px) ---------- */
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .booking { padding: 36px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- 18. Escritorio (≥ 960px) ---------- */
@media (min-width: 960px) {
  :root { --header-alto: 76px; }
  .section { padding: 104px 0; }

  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex; align-items: center; gap: 28px;
    padding: 0; background: none; box-shadow: none;
  }
  .nav__menu li a:not(.btn) { padding: 6px 0; border: 0; font-size: 0.95rem; }
  .nav__menu li a:not(.btn):hover { color: var(--color-acento); }
  .nav__menu .btn { margin: 0; width: auto; }

  .hero { padding: 72px 0 104px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }

  .grid--services { grid-template-columns: repeat(4, 1fr); }
  .grid--products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .product-card { padding: 18px; }

  .location { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .location__map { aspect-ratio: auto; min-height: 380px; }
}
