/* =========================================================
   O Joyería — estilos
   Paleta: leche de frutilla, glaseado, menta, vainilla, lavanda
   ========================================================= */
:root {
  --bg: #FDE6EC;          /* leche de frutilla */
  --bg-soft: #FFF3F6;
  --ink: #5B2F3C;         /* chocolate con frambuesa */
  --ink-soft: #85566A;
  --frosting: #FF9EBB;    /* glaseado */
  --frosting-deep: #F2769A;
  --mint: #CDEFE0;
  --butter: #FFEDB8;
  --lavender: #E4D8F8;
  --peach: #FFD9C7;
  --dough: #F1C38F;
  --gold: #E6C36A;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1120px;
  --font-display: "Mochiy Pop One", "M PLUS Rounded 1c", system-ui, sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--frosting-deep); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p + p { margin-top: .9em; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(253, 230, 236, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: .3rem; list-style: none; padding: 0; }
.nav a { display: block; text-decoration: none; padding: .45rem .85rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg-soft); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; flex-direction: column; background: var(--bg-soft); padding: .8rem 1.25rem 1.2rem; border-bottom: 3px solid var(--frosting); }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 1rem; }
}

/* ---------- Borde de glaseado (el gesto de la marca) ---------- */
.drip { display: block; width: 100%; height: 46px; color: var(--frosting); }

/* ---------- Portada ---------- */
.hero { background: var(--frosting); color: var(--ink); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding-block: 3.5rem 1.5rem; }
.hero p.lead { font-size: 1.2rem; max-width: 30rem; margin-top: 1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero .charm { width: min(100%, 360px); justify-self: center; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
  .hero .charm { order: -1; width: 200px; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
}

.charm .hole { fill: var(--frosting); }
.charm .s { opacity: 0; animation: drop .5s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: var(--d); }
@keyframes drop { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem var(--font-body); text-decoration: none; padding: .8rem 1.4rem; border-radius: 999px; border: 2.5px solid var(--ink); cursor: pointer; background: var(--ink); color: var(--bg-soft); transition: translate .15s, box-shadow .15s; box-shadow: 0 4px 0 var(--ink); translate: 0 -2px; }
.btn:hover { translate: 0 -4px; box-shadow: 0 6px 0 var(--ink); }
.btn:active { translate: 0 0; box-shadow: 0 0 0 var(--ink); }
.btn--light { background: var(--bg-soft); color: var(--ink); }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Secciones ---------- */
.section { padding-block: 3.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head p { color: var(--ink-soft); max-width: 34rem; margin-top: .4rem; }
.page-title { padding-block: 2.8rem 1rem; }
.page-title p { color: var(--ink-soft); max-width: 38rem; margin-top: .6rem; font-size: 1.1rem; }

/* Categorías como platitos */
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.plate { text-decoration: none; text-align: center; }
.plate .dish { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 10px solid var(--bg-soft); transition: rotate .3s; }
.plate:hover .dish { rotate: -6deg; }
.plate .dish svg { width: 46%; height: auto; }
.plate h3 { margin-top: .8rem; }
.plate span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 700px) { .plates { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.4rem; }
.card { text-decoration: none; display: block; }
.card .ph { border-radius: var(--radius-lg); transition: rotate .25s; }
.card:hover .ph { rotate: -1.5deg; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .9rem; }
  .card .ph { border-radius: var(--radius-md); }
  .ph--empty::after { inset: 8px; border-radius: 12px; }
  .card h3 { font-size: .95rem; }
  .drip { height: 30px; }
}
.card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-top: .75rem; line-height: 1.3; }
.card .meta { color: var(--ink-soft); font-size: .9rem; }
.card .price { font-weight: 700; margin-top: .2rem; }

/* Espacio para foto: se reemplaza por la imagen real cuando exista */
.ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--tone, var(--lavender)); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--empty::after { content: ""; position: absolute; inset: 12px; border: 2.5px dashed rgba(255,255,255,.95); border-radius: calc(var(--radius-lg) - 10px); pointer-events: none; }
.ph-label { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .35rem; color: var(--ink-soft); font-size: .85rem; font-weight: 700; text-align: center; padding: 1rem; }
.ph-label svg { width: 34px; height: 34px; opacity: .7; }
.badge { position: absolute; top: 18px; left: 18px; z-index: 1; background: var(--ink); color: var(--bg-soft); font-size: .78rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }

/* ---------- Filtros ---------- */
.filters { display: grid; gap: 1rem; margin-bottom: 2rem; }
.search { position: relative; max-width: 26rem; }
.search input { width: 100%; font: inherit; color: var(--ink); padding: .8rem 1.1rem .8rem 2.8rem; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--bg-soft); }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chips-label { font-weight: 700; margin-right: .3rem; font-size: .95rem; }
.chip { font: 700 .92rem var(--font-body); color: var(--ink); background: var(--bg-soft); border: 2px solid transparent; padding: .4rem .95rem; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--frosting-deep); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg-soft); }
.results-count { color: var(--ink-soft); font-size: .95rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); grid-column: 1 / -1; }
.empty-state .btn { margin-top: 1rem; }

/* ---------- Ficha de producto ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding-block: 2.5rem 4rem; }
.product .ph { border-radius: var(--radius-lg); }
.thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.thumbs button { width: 72px; padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs .ph { border-radius: 10px; }
.thumbs .ph--empty::after { inset: 5px; border-width: 1.5px; border-radius: 6px; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.product .price { font-size: 1.5rem; font-weight: 700; margin-top: .6rem; }
.product .desc { margin-top: 1.2rem; }
.specs { margin-top: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; }
.specs dt { font-weight: 700; }
.specs dd { color: var(--ink-soft); }
.product .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.status { display: inline-block; margin-top: .8rem; font-size: .9rem; font-weight: 700; padding: .15rem .8rem; border-radius: 999px; background: var(--mint); }
.status--off { background: var(--peach); }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- Franja de pedidos personalizados ---------- */
.custom-band { background: var(--butter); border-radius: var(--radius-lg); padding: clamp(1.8rem, 5vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.custom-band p { margin-top: .5rem; max-width: 36rem; }
@media (max-width: 700px) { .custom-band { grid-template-columns: 1fr; } }

/* ---------- Textos (sobre mí, cuidados) ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .5rem; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; padding-bottom: 2rem; }
.two-col .ph { border-radius: 50%; border: 12px solid var(--bg-soft); }
.two-col .ph--empty::after { border-radius: 50%; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .two-col .ph { max-width: 280px; } }

.care { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.care > div { border-radius: var(--radius-md); padding: 1.4rem 1.5rem; }
.care > div:nth-child(4n+1) { background: var(--mint); }
.care > div:nth-child(4n+2) { background: var(--butter); }
.care > div:nth-child(4n+3) { background: var(--lavender); }
.care > div:nth-child(4n+4) { background: var(--peach); }
.care h3 { font-size: 1.1rem; margin-bottom: .4rem; }

/* Preguntas frecuentes */
.faq { max-width: 44rem; }
.faq details { border-bottom: 2.5px dotted var(--frosting-deep); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin-top: .6rem; color: var(--ink-soft); }

/* Marcador de texto pendiente (para que se note qué falta completar) */
.todo { background: var(--butter); border-radius: 6px; padding: 0 .3rem; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.1rem; background: var(--bg-soft); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #EBC7D2; border-radius: 14px; padding: .7rem .9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--frosting-deep); box-shadow: 0 0 0 4px rgba(255,158,187,.35); }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: #2F7A5B; }
.form-status.err { color: #B23A5B; }
.steps { list-style: none; padding: 0; display: grid; gap: 1.1rem; counter-reset: paso; margin-top: 1.5rem; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.steps li::before { content: counter(paso); font-family: var(--font-display); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--frosting); display: grid; place-items: center; }
.custom-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; padding-bottom: 2rem; }
@media (max-width: 860px) { .custom-layout { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--bg-soft); margin-top: 3rem; }
.site-footer .drip { color: var(--bg); background: var(--ink); }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-block: 1.5rem 3rem; }
.site-footer h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { font-size: .85rem; opacity: .75; margin-top: 1rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

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