/* =========================================================
   Anisna Repostería — estilos
   Paleta y tipografías en variables para editar fácilmente.
   ========================================================= */
:root {
  --crema: #FBF1E8;
  --crema-2: #F8E8DC;
  --rosa-pastel: #F6D5D5;
  --chocolate: #6B2E25;
  --frambuesa: #C9566E;
  --dorado: #B8923A;
  --salvia: #566B4F;
  --beige: #D9C3A5;
  --blanco: #FFFBF7;

  --f-pincel: 'Yellowtail', 'Kaushan Script', cursive;
  --f-mano: 'Caveat', cursive;
  --f-texto: 'Quicksand', 'Nunito', system-ui, sans-serif;

  --radio: 22px;
  --sombra: 0 10px 30px -18px rgba(107, 46, 37, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--chocolate);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilidades ---------- */
.contenedor { width: min(1080px, 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 1; }
.contenedor--angosto { width: min(640px, 100% - 2.5rem); }

.seccion { position: relative; padding: 4.5rem 0; overflow: hidden; }
.seccion--alt { background: var(--crema-2); }
.seccion--alt::before, .seccion--alt::after {
  /* borde ondulado suave entre secciones */
  content: ""; position: absolute; left: 0; right: 0; height: 18px;
  background: radial-gradient(circle at 12px -4px, var(--crema) 14px, transparent 15px) repeat-x;
  background-size: 24px 18px;
}
.seccion--alt::before { top: 0; }
.seccion--alt::after { bottom: 0; transform: rotate(180deg); }

.seccion__cabecera { text-align: center; margin-bottom: 2.2rem; }

/* ---------- Títulos con pincelada ---------- */
.titulo-pincel {
  font-family: var(--f-pincel);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.15;
  color: var(--chocolate);
  display: inline-block;
  position: relative;
  padding: .15em .6em .25em;
  isolation: isolate;
}
.titulo-pincel::before {
  content: "";
  position: absolute; inset: 8% -4% 2% -4%;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23F6D5D5' d='M14 38c18-14 60-22 110-24 70-3 150-6 210 2 30 4 54 10 58 22 4 13-10 22-6 32 3 9-12 16-40 19-62 6-140 4-212 3-50 0-98-2-118-12C2 74 6 62 4 54c-2-7 3-11 10-16z'/%3E%3Cpath fill='%23F6D5D5' fill-opacity='.6' d='M30 20c40-8 120-10 200-8 60 1 120 4 150 12-30-2-90-4-160-3-70 1-140 4-190-1z M24 86c50 6 130 8 220 6 60-1 110-4 140-9-20 9-90 14-170 14-80 0-150-3-190-11z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .95;
}
.titulo-pincel--md { font-size: clamp(2.1rem, 7vw, 2.8rem); margin-bottom: 1rem; }

.nota {
  font-family: var(--f-mano);
  font-size: 1.55rem;
  color: var(--frambuesa);
  margin: .25rem 0 0;
  line-height: 1.2;
}
.nota--centro { text-align: center; margin-top: 2rem; font-size: 1.7rem; }
.nota-inline { font-family: var(--f-mano); color: var(--frambuesa); font-size: 1.2em; }

.subtitulo {
  font-family: var(--f-texto);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--chocolate);
  text-align: center;
  margin-bottom: 1rem;
}

/* ---------- Ramitas decorativas ---------- */
.ramita {
  position: absolute; width: 120px; height: 120px;
  color: var(--beige); opacity: .9; pointer-events: none; z-index: 0;
}
.ramita--tl { top: 10px; left: -10px; transform: rotate(-90deg) scaleX(-1); }
.ramita--tr { top: 10px; right: -10px; transform: scaleX(-1) rotate(-90deg) scaleX(-1); }
.ramita--br { bottom: 10px; right: -10px; transform: rotate(90deg) scaleX(-1); }
@media (min-width: 768px) { .ramita { width: 180px; height: 180px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-texto); font-weight: 700; font-size: 1rem;
  text-decoration: none; color: var(--blanco);
  background: var(--frambuesa);
  padding: .75rem 1.4rem; border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(201, 86, 110, .8);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  margin-top: 1.3rem;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: #b84b62; box-shadow: 0 10px 20px -10px rgba(201, 86, 110, .9); }
.btn:focus-visible { outline: 3px solid var(--rosa-pastel); outline-offset: 3px; }
.btn__icon { width: 1.3em; height: 1.3em; }
.btn--grande { font-size: 1.15rem; padding: 1rem 2rem; background: var(--salvia); box-shadow: 0 8px 20px -10px rgba(86, 107, 79, .9); }
.btn--grande:hover, .btn--grande:focus-visible { background: #4a5d44; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(246, 213, 213, .55), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 85%, rgba(246, 213, 213, .5), transparent 70%),
    var(--crema);
}
.hero__inner { width: min(760px, 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 1; }
.logo { width: min(230px, 62vw); margin: 0 auto 1rem; filter: drop-shadow(0 10px 18px rgba(184, 146, 58, .18)); }
.logo-img { width: min(230px, 62vw); margin: 0 auto 1rem; border-radius: 50%; }
.logo svg { width: 100%; height: auto; overflow: visible; }
.logo__name { font-family: var(--f-pincel); font-size: 52px; fill: var(--chocolate); }
.logo__sub { font-family: var(--f-texto); font-weight: 700; font-size: 13px; letter-spacing: 5px; fill: var(--dorado); }
.logo__arc { font-family: var(--f-texto); font-weight: 600; font-size: 10.5px; letter-spacing: 2.4px; fill: var(--dorado); }

.hero .titulo-pincel { font-size: clamp(2.5rem, 10vw, 4.4rem); margin-top: .3rem; }
.hero__sub { font-family: var(--f-mano); font-size: clamp(1.6rem, 5.5vw, 2.1rem); margin: .4rem 0 .6rem; color: var(--chocolate); }
.hero__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-top: 2rem; }
.hero__nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .2rem 0; border-bottom: 1.5px dashed transparent; }
.hero__nav a:hover { border-color: var(--frambuesa); color: var(--frambuesa); }

/* ---------- Tarjetas ---------- */
.tarjeta {
  position: relative;
  background: var(--blanco);
  border: 2px solid var(--rosa-pastel);
  border-radius: var(--radio);
  padding: 2rem 1.4rem 1.8rem;
  box-shadow: var(--sombra);
  text-align: center;
  margin-bottom: 1.5rem;
}
.tarjeta::before, .tarjeta::after {
  /* esquinas ornamentadas */
  content: ""; position: absolute; width: 38px; height: 38px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23C9566E' stroke-width='1.4' stroke-linecap='round' opacity='.7'%3E%3Cpath d='M4 30C4 14 14 4 30 4'/%3E%3Cpath d='M10 30c0-11 9-20 20-20'/%3E%3Ccircle cx='31.5' cy='4' r='1.6' fill='%23C9566E'/%3E%3Ccircle cx='4' cy='31.5' r='1.6' fill='%23C9566E'/%3E%3Cpath d='M15 15c2-3 5-3 6 0-3 1-5 1-6 0z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.tarjeta::before { top: 8px; left: 8px; }
.tarjeta::after { bottom: 8px; right: 8px; transform: rotate(180deg); }
.tarjeta--destacada { border-width: 2.5px; border-style: double; border-color: #ecb9bd; background: linear-gradient(180deg, var(--blanco), #fff4f0); }
.tarjeta--suave { background: rgba(255, 251, 247, .75); }

.oferta {
  display: flex; align-items: baseline; gap: .6rem;
  font-size: 1.35rem; font-weight: 700;
  max-width: 420px; margin: 0 auto;
}
.oferta__detalle { margin: .4rem 0 1.3rem; font-size: 1.05rem; }
.precio { color: var(--frambuesa); font-weight: 700; white-space: nowrap; }

.puntos { flex: 1; border-bottom: 2px dotted rgba(107, 46, 37, .4); transform: translateY(-.3em); min-width: 1.5rem; }

.precios { max-width: 420px; margin: 0 auto; text-align: left; }
.precios li { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; font-weight: 500; }
.precios .precio { font-size: 1.15rem; }

/* Lista con corazones como viñetas */
.lista-corazones { display: grid; gap: .45rem; text-align: left; max-width: 560px; margin: 0 auto; }
.lista-corazones li { position: relative; padding-left: 1.7rem; font-weight: 500; }
.lista-corazones li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.4C1.6 7.6 3.8 4 7.3 4c2 0 3.6 1.1 4.7 2.8C13.1 5.1 14.7 4 16.7 4c3.5 0 5.7 3.6 4.5 7.1-1.7 4.8-9.2 9.4-9.2 9.4z' fill='none' stroke='%23C9566E' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (min-width: 600px) { .lista-corazones--2col { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.grid-2 { display: grid; gap: 0 1.5rem; }
.grid-precios { display: grid; gap: 0 1.5rem; }
@media (min-width: 700px) {
  .grid-2, .grid-precios { grid-template-columns: 1fr 1fr; }
  .grid-precios .tarjeta { display: flex; flex-direction: column; }
  .grid-precios .tarjeta .btn { margin-top: auto; align-self: center; }
  .grid-precios .precios { margin-bottom: 1.3rem; }
}

/* ---------- Fotos / espacios para imágenes ---------- */
.fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1rem; }
.foto {
  position: relative; margin: 0;
  aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(246, 213, 213, .35) 0 10px, transparent 10px 20px),
    var(--blanco);
  border: 2px dashed #ecb9bd;
}
.foto::before {
  /* placeholder: se ve solo si no hay imagen */
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 2.4rem .5rem .5rem;
  font-family: var(--f-mano); font-size: 1.15rem; color: var(--frambuesa);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23C9566E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' opacity='.6'%3E%3Cpath d='M14 34c-3.5 0-5-3-3.8-5.6 1-2.2 3.4-2.8 4.8-2.4-.8-4 2.4-7.2 6-6.6 1-3.6 5-5.6 8.8-4.2 1.6.6 2 .6 3.4 0 3.8-1.4 7.8.6 8.8 4.2 3.6-.6 6.8 2.6 6 6.6 1.4-.4 3.8.2 4.8 2.4C54 31 52.5 34 49 34z'/%3E%3Cpath d='M15 34l4 21c.3 1.4 1.4 2 2.6 2h20.8c1.2 0 2.3-.6 2.6-2l4-21M24 34l2 23M32 34v23M40 34l-2 23'/%3E%3C/g%3E%3C/svg%3E") no-repeat center 30% / 34%;
}
.foto img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.foto:has(img) { border-style: solid; border-color: var(--rosa-pastel); }

.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 700px) { .galeria { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }

.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
.red {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-weight: 700;
  background: var(--blanco); border: 2px solid var(--rosa-pastel);
  padding: .6rem 1.2rem; border-radius: 999px;
  transition: transform .2s ease, border-color .2s ease;
}
.red:hover { transform: translateY(-2px); border-color: var(--frambuesa); }
.red svg { width: 1.6rem; height: 1.6rem; color: var(--frambuesa); }
.red--wa svg { color: var(--salvia); }

/* ---------- Pasos ---------- */
.pasos { display: grid; gap: 1.4rem; counter-reset: paso; }
@media (min-width: 760px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso {
  position: relative; text-align: center;
  background: var(--blanco); border: 2px solid var(--rosa-pastel); border-radius: var(--radio);
  padding: 2.2rem 1.3rem 1.6rem; box-shadow: var(--sombra);
}
.paso__num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--frambuesa); color: var(--blanco);
  font-family: var(--f-mano); font-size: 1.5rem; font-weight: 700;
  box-shadow: 0 0 0 4px var(--crema-2);
}
.paso__icon { width: 64px; height: 64px; color: var(--chocolate); margin: .3rem auto .6rem; display: block;
  background: radial-gradient(circle, var(--rosa-pastel) 0 58%, transparent 60%); padding: 10px; border-radius: 50%; }
.paso h3 { font-weight: 700; font-size: 1.12rem; margin-bottom: .35rem; }
.paso p { margin: 0; font-size: .98rem; }

/* ---------- Condiciones ---------- */
.condiciones { display: grid; gap: 1rem; text-align: left; max-width: 440px; margin: 0 auto; }
.condiciones li { display: flex; align-items: center; gap: .9rem; font-size: 1.08rem; }
.condiciones svg { flex: none; width: 42px; height: 42px; padding: 8px; border-radius: 50%; background: var(--rosa-pastel); color: var(--chocolate); }
.condiciones li:first-child svg { color: var(--salvia); }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 3.5rem 1.25rem 6rem;
  background: var(--chocolate); color: var(--crema);
}
.footer__nota { font-family: var(--f-mano); font-size: 2.1rem; color: var(--rosa-pastel); margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.footer__heart { width: 1.6rem; height: 1.6rem; color: var(--rosa-pastel); }
.footer__marca { font-family: var(--f-pincel); font-size: 2.4rem; margin: .4rem 0 0; }
.footer__lema { margin: 0 0 1.4rem; color: #e2c88c; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.footer__contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.6rem; }
.footer__contacto a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; }
.footer__contacto a:hover { color: var(--rosa-pastel); }
.footer__contacto svg { width: 1.4rem; height: 1.4rem; }
.footer__copy { margin: 1.8rem 0 0; font-size: .85rem; opacity: .7; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--salvia); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(86, 107, 79, .9);
  transition: transform .2s ease;
  animation: latido 2.8s ease-in-out infinite;
}
.wa-flotante svg { width: 32px; height: 32px; }
.wa-flotante:hover, .wa-flotante:focus-visible { transform: scale(1.08); animation-play-state: paused; }
.wa-flotante:focus-visible { outline: 3px solid var(--rosa-pastel); outline-offset: 3px; }
@keyframes latido {
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(86, 107, 79, .9), 0 0 0 0 rgba(86, 107, 79, .35); }
  50% { box-shadow: 0 10px 24px -8px rgba(86, 107, 79, .9), 0 0 0 12px rgba(86, 107, 79, 0); }
}

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

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