/* ===================== Colores y medidas ===================== */
:root {
  --blanco: #ffffff;
  --crema: #fbf7f2;
  --crema-2: #f5ede4;
  --rosa: #f7e7e3;
  --rosa-2: #edcfc8;
  --rosa-3: #d9a8a0;
  --oro: #c2a16a;
  --oro-claro: #e3cfa6;
  --oro-oscuro: #9c7d48;
  --texto: #3b2f2d;
  --texto-suave: #7a6a66;
  --whatsapp: #25d366;
  --sombra: 0 10px 30px -12px rgba(120, 80, 60, .22);
  --sombra-alta: 0 22px 50px -18px rgba(120, 80, 60, .35);
  --radio: 18px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --alto-cabecera: 64px;
  --suave: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
section[id] { scroll-margin-top: var(--alto-cabecera); }

.saltar { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--texto); color: #fff; padding: 8px 14px; border-radius: 8px; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

.contenedor { width: min(1120px, 100% - 40px); margin-inline: auto; }
.contenedor.estrecho { width: min(720px, 100% - 40px); }
.seccion { padding: clamp(80px, 14vw, 130px) 0; position: relative; }
.antetitulo {
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--oro-oscuro);
  margin: 0 0 .9rem; font-weight: 400;
}
.cabeza { text-align: center; margin-bottom: clamp(40px, 7vw, 64px); }
.cabeza__sub { color: var(--texto-suave); max-width: 520px; margin: 1rem auto 0; }

/* ===================== Botones ===================== */
.boton {
  --fondo: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.9em; border-radius: 999px;
  font: 400 .82rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  background: var(--fondo); border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--suave), box-shadow .35s var(--suave), background-color .35s, color .35s, border-color .35s;
}
.boton:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.boton:active { transform: translateY(0); }
.boton--oro {
  color: #fff;
  background: linear-gradient(135deg, var(--oro-claro) -30%, var(--oro) 45%, var(--oro-oscuro) 130%);
  background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 8px 22px -12px rgba(156, 125, 72, .8);
}
.boton--oro:hover { background-position: 100% 0; box-shadow: 0 16px 32px -14px rgba(156, 125, 72, .9); }
.boton--linea { color: var(--texto); border-color: var(--oro); background: rgba(255, 255, 255, .5); }
.boton--linea:hover { background: var(--blanco); border-color: var(--oro-oscuro); }
.boton--whatsapp { color: #fff; background: var(--whatsapp); box-shadow: 0 12px 28px -14px rgba(37, 211, 102, .9); }
.boton--whatsapp:hover { background: #1ebe5b; box-shadow: 0 18px 36px -14px rgba(37, 211, 102, .9); }
.boton--grande { min-height: 62px; padding: 1em 2.2em; font-size: .9rem; width: 100%; max-width: 420px; }
.boton svg { width: 1.6em; height: 1.6em; flex: none; }

/* ===================== Cabecera ===================== */
.cabecera {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--alto-cabecera);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.cabecera.solida {
  background: rgba(251, 247, 242, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(194, 161, 106, .25);
}
.cabecera__dentro { height: 100%; width: min(1120px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.marca { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; text-decoration: none; letter-spacing: .02em; }

.menu-boton {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2;
  display: grid; place-content: center; gap: 7px; padding: 0;
}
.menu-boton span { display: block; width: 26px; height: 1.5px; background: var(--texto); transition: transform .4s var(--suave); }
.menu-boton[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; background: var(--crema);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--suave), visibility .4s;
}
.menu.abierto { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--serif); font-size: 2rem; text-decoration: none; position: relative;
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--suave), opacity .5s, color .3s;
}
.menu.abierto a { transform: none; opacity: 1; }
.menu.abierto a:nth-child(2) { transition-delay: .05s; }
.menu.abierto a:nth-child(3) { transition-delay: .1s; }
.menu.abierto a:nth-child(4) { transition-delay: .15s; }
.menu.abierto a:nth-child(5) { transition-delay: .2s; }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--oro);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--suave);
}
.menu a:hover { color: var(--oro-oscuro); }
.menu a:hover::after, .menu a.activo::after { transform: scaleX(1); transform-origin: left; }

@media (min-width: 860px) {
  .menu-boton { display: none; }
  .menu {
    position: static; flex-direction: row; gap: 2.4rem; background: none; opacity: 1; visibility: visible;
  }
  .menu a { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; transform: none; opacity: 1; }
}

/* ===================== Portada ===================== */
.portada {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; position: relative; overflow: hidden;
  padding: calc(var(--alto-cabecera) + 24px) 20px 90px;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--blanco) 0%, transparent 60%),
    linear-gradient(180deg, var(--rosa) 0%, var(--crema) 75%);
}
.portada__fondo { position: absolute; inset: 0; pointer-events: none; }
.burbuja { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7; animation: flotar 14s ease-in-out infinite alternate; }
.b1 { width: 340px; height: 340px; top: -90px; right: -110px; background: radial-gradient(circle at 30% 30%, #fff, var(--rosa-2)); }
.b2 { width: 220px; height: 220px; bottom: 8%; left: -90px; background: radial-gradient(circle at 30% 30%, #fff, var(--oro-claro)); opacity: .45; animation-duration: 18s; }
.b3 { width: 120px; height: 120px; top: 22%; left: 12%; border: 1px solid var(--oro-claro); background: none; opacity: .6; animation-duration: 11s; }
@keyframes flotar { to { transform: translate(18px, 26px) scale(1.06); } }

.portada__dentro { position: relative; max-width: 640px; }
.perfil {
  width: clamp(150px, 42vw, 200px); aspect-ratio: 1; margin: 0 auto 1.8rem; border-radius: 50%; padding: 6px;
  background: conic-gradient(from 210deg, var(--oro-claro), var(--oro), #f4e6c8, var(--oro-oscuro), var(--oro-claro));
  box-shadow: var(--sombra-alta);
}
.perfil img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--crema); background: var(--rosa); }
.etiqueta { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--oro-oscuro); margin: 0 0 1rem; font-weight: 400; }
.portada__nombre { font-size: clamp(3.2rem, 15vw, 6rem); font-weight: 400; letter-spacing: .01em; }
.filete { display: block; width: 70px; height: 1px; margin: 1.4rem auto; background: linear-gradient(90deg, transparent, var(--oro), transparent); }
.portada__frase { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 4.8vw, 1.7rem); line-height: 1.45; color: var(--texto-suave); margin: 0 auto 2.2rem; max-width: 30ch; }
.portada__botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.bajar { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid var(--oro); border-radius: 20px; }
.bajar span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--oro); animation: rueda 2s var(--suave) infinite; }
@keyframes rueda { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Entrada de la portada */
.entra { opacity: 0; transform: translateY(22px); animation: entrar 1.1s var(--suave) forwards; animation-delay: var(--d, 0s); }
.perfil.entra { transform: scale(.92); }
@keyframes entrar { to { opacity: 1; transform: none; } }

/* Aparecer al hacer scroll */
.aparece { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--suave), transform 1s var(--suave); transition-delay: var(--d, 0s); }
.aparece.visible { opacity: 1; transform: none; }

/* ===================== Sobre mí ===================== */
.sobre { background: var(--blanco); text-align: center; }
.sobre::before, .contacto::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 56px; translate: -50% -50%;
  background: linear-gradient(transparent, var(--oro), transparent);
}
.sobre__texto { font-size: clamp(1.1rem, 3.8vw, 1.25rem); color: var(--texto-suave); margin: 1.6rem 0 2.2rem; }
.destacados { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.destacados li {
  font-size: .8rem; letter-spacing: .08em; padding: .55em 1.2em; border-radius: 999px;
  background: var(--crema); border: 1px solid var(--oro-claro); color: var(--oro-oscuro);
}

/* ===================== Productos ===================== */
.productos { background: linear-gradient(180deg, var(--crema) 0%, var(--rosa) 100%); }
.tarjetas { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .tarjetas { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.tarjeta {
  background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra);
  display: flex; flex-direction: column;
  transition: transform .5s var(--suave), box-shadow .5s var(--suave);
}
.tarjeta:hover { transform: translateY(-8px); box-shadow: var(--sombra-alta); }
.tarjeta__foto { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rosa); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--suave); }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.06); }
.tarjeta__foto::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c7d48' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--suave);
}
.tarjeta:hover .tarjeta__foto::after, .tarjeta__foto:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .tarjeta__foto::after { opacity: 1; transform: none; } }
.tarjeta__cuerpo { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.tarjeta h3 { font-size: 1.75rem; }
.tarjeta p { margin: 0; color: var(--texto-suave); font-size: .98rem; line-height: 1.6; flex: 1; }
.tarjeta__pie {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: .5rem;
  padding-top: 14px; border-top: 1px solid var(--crema-2);
}
.tarjeta__precio { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--oro-oscuro); line-height: 1; white-space: nowrap; }
.tarjeta__precio small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: 4px; }
.nota-precios { text-align: center; font-size: .85rem; color: var(--texto-suave); margin: 34px auto 0; max-width: 520px; }
.tarjeta__enlace {
  align-self: flex-start; margin-left: auto; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--oro-oscuro); display: inline-flex; align-items: center; gap: .5em; padding: .4em 0; white-space: nowrap;
}
.tarjeta__enlace::after { content: "→"; transition: transform .35s var(--suave); }
.tarjeta__enlace:hover::after { transform: translateX(5px); }

/* ===================== Testimonios ===================== */
.testimonios { background: var(--blanco); }
.carrusel { position: relative; }
.carrusel__pista {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--radio); outline-offset: 6px;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.testimonio {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0; text-align: center;
  padding: 48px 28px 40px; background: var(--crema); border-radius: var(--radio); position: relative;
}
.testimonio::before {
  content: "“"; font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--oro-claro);
  display: block; height: 3.2rem;
}
.testimonio blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 5vw, 1.75rem); line-height: 1.4; }
.estrellas { color: var(--oro); letter-spacing: .3em; font-size: .9rem; margin: 1.4rem 0 .4rem; }
.testimonio figcaption { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--texto-suave); }
.carrusel__flecha {
  display: none; position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--oro-claro); background: var(--blanco); color: var(--oro-oscuro); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--suave);
}
.carrusel__flecha:hover { background: var(--oro); color: #fff; box-shadow: var(--sombra); }
.carrusel__flecha.izq { left: -24px; } .carrusel__flecha.der { right: -24px; }
@media (min-width: 820px) { .carrusel__flecha { display: block; } }
.puntos { display: flex; justify-content: center; gap: 4px; margin-top: 22px; }
.puntos button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.puntos button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--rosa-2); transition: width .4s var(--suave), background-color .4s; }
.puntos button[aria-selected="true"]::before { width: 24px; background: var(--oro); }

/* ===================== Contacto ===================== */
.contacto { text-align: center; background: linear-gradient(180deg, var(--crema) 0%, var(--rosa) 100%); }
.contacto .contenedor { display: flex; flex-direction: column; align-items: center; }
.contacto__texto { color: var(--texto-suave); font-size: 1.15rem; margin: 1.2rem 0 2.2rem; }
#tienda { margin-top: 16px; }
.redes { list-style: none; padding: 0; margin: 2.6rem 0 0; display: flex; gap: 16px; justify-content: center; }
.redes a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--oro-oscuro);
  border: 1px solid var(--oro-claro); background: rgba(255, 255, 255, .6);
  transition: transform .35s var(--suave), background-color .35s, color .35s, box-shadow .35s;
}
.redes a:hover { transform: translateY(-3px); background: var(--oro); color: #fff; box-shadow: var(--sombra); }
.redes svg { width: 22px; height: 22px; }

/* ===================== Pie ===================== */
.pie { background: var(--texto); color: #e9ddd5; text-align: center; padding: 48px 24px calc(100px + env(safe-area-inset-bottom)); font-size: .85rem; }
.pie__nombre { font-family: var(--serif); font-size: 1.7rem; color: #fff; margin: 0 0 .6rem; }
.pie p { margin: .3rem auto; max-width: 560px; }
.pie__ano { opacity: .6; }

/* ===================== WhatsApp flotante ===================== */
.whatsapp-flotante {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--whatsapp);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35);
  transition: transform .35s var(--suave), box-shadow .35s;
  animation: entrar 1s var(--suave) 1.4s both;
}
.whatsapp-flotante svg { width: 32px; height: 32px; }
.whatsapp-flotante::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); z-index: -1;
  animation: latido 2.8s ease-out infinite;
}
.whatsapp-flotante:hover { transform: scale(1.08); box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .4); }
@keyframes latido { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 60px 16px;
  background: rgba(40, 30, 28, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--suave);
}
.lightbox[hidden] { display: none; }
.lightbox.abierto { opacity: 1; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.96); transition: transform .45s var(--suave); }
.lightbox.abierto figure { transform: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 78vh; max-height: 78svh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #f3e7dc; font-family: var(--serif); font-size: 1.4rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background-color .3s; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__cerrar { top: 14px; right: 14px; }
.lightbox__flecha { top: 50%; translate: 0 -50%; }
.lightbox__flecha.izq { left: 10px; } .lightbox__flecha.der { right: 10px; }

/* ===================== Ordenador ===================== */
@media (min-width: 860px) {
  :root { --alto-cabecera: 78px; }
  .portada__nombre { font-size: 6.4rem; }
  .testimonio { padding: 64px 70px 52px; }
}

/* Menos movimiento si el móvil lo pide */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .entra, .aparece { opacity: 1; transform: none; }
}
