/* ===== Colores (cámbialos aquí para cambiar toda la web) ===== */
:root {
  /* Colores sacados del logo MelyMoon (rosa vichy, crema y dorado) */
  --bg: #f3ece4;          /* crema del logo */
  --card: #fbf7f2;
  --text: #2b2421;        /* casi negro de las letras del logo */
  /* Colores revisados para que se lean bien (contraste mínimo 4,5:1) */
  --muted: #6b5a55;
  --accent: #8f5560;      /* rosa oscuro para botones y detalles */
  --accent-dark: #74424c;
  --soft: #ecdcd8;        /* rosa muy clarito */
  --sage: #efe5de;        /* crema algo más oscuro para alternar secciones */
  --line: #ddcac3;
  --rosa: #d3abac;        /* rosa vichy del logo */
  --dorado: #9f7e39;      /* estrella dorada del logo (solo decoración) */
  --wa: #15803d;
  --wa-dark: #116b33;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(43, 36, 33, .08);
  /* Cuadros vichy: dos capas de rosa semitransparente que se cruzan */
  --vichy: linear-gradient(90deg, rgba(201, 154, 156, .5) 50%, transparent 0),
           linear-gradient(rgba(201, 154, 156, .5) 50%, transparent 0);
  --vichy-suave: linear-gradient(90deg, rgba(201, 154, 156, .16) 50%, transparent 0),
                 linear-gradient(rgba(201, 154, 156, .16) 50%, transparent 0);
  --costura: 2px dashed rgba(255, 255, 255, .85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.15; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
[hidden] { display: none !important; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn.ghost:hover { background: var(--text); color: #fff; }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: var(--wa-dark); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ===== Cabecera ===== */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 236, 228, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.announce {
  background: var(--text); color: #f6e9e3; text-align: center; font-size: .85rem; font-weight: 700;
  padding: 7px 16px;
}
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a, .drop-btn {
  text-decoration: none; font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.menu > a:hover, .drop-btn:hover, .drop-btn[aria-expanded="true"] { color: var(--accent); background: var(--soft); }
.menu > a.on, .drop-btn.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.caret { display: inline-block; font-size: .75em; transition: transform .2s; }
.drop-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.has-drop { position: relative; }
.drop {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; gap: 24px; grid-template-columns: 170px 170px 190px; z-index: 35;
}
.drop.open { display: grid; }
.drop-col { display: flex; flex-direction: column; gap: 2px; }
.drop-col > div { display: flex; flex-direction: column; gap: 2px; }
.drop-col b { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 6px; }
.drop-col a { text-decoration: none; padding: 6px 8px; margin-left: -8px; border-radius: 8px; font-weight: 600; }
.drop-col a:hover { background: var(--soft); color: var(--accent-dark); }
.drop-col small { color: var(--muted); font-weight: 600; }
.drop-promo {
  text-decoration: none; background: var(--soft); border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.drop-promo span { font-size: 2rem; }
.drop-promo small { color: var(--accent-dark); font-weight: 700; }
.drop-promo:hover { background: #f1d6d0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { border: 1px solid var(--line); background: var(--card); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.icon-btn:hover { border-color: var(--accent); }
.active-filter { display: flex; align-items: center; gap: 10px; margin: -12px 0 22px; font-weight: 700; }
.active-filter button { font: inherit; font-weight: 700; border: 0; background: var(--soft); color: var(--accent-dark); padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.cart-btn {
  border: 0; background: var(--text); color: #fff; font: inherit; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.badge { background: var(--accent); border-radius: 999px; min-width: 22px; padding: 0 6px; font-size: .8rem; line-height: 22px; text-align: center; }
.badge.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.4); } }
.burger { display: none; border: 1px solid var(--line); background: var(--card); font-size: 1.2rem; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }

/* ===== Portada ===== */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin: 0 0 16px; }
.hero h1 em { color: var(--accent); font-style: italic; }
.lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 26px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a, .foot-social a { display: inline-flex; align-items: center; gap: 7px; }
.red-ico { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.socials a {
  text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  border: 1px solid var(--line); background: var(--card);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage span {
  aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(2.5rem, 7vw, 4.5rem);
  border-radius: 28px; background: var(--soft); box-shadow: var(--shadow);
}
.collage span:nth-child(2) { background: var(--sage); transform: translateY(18px); }
.collage span:nth-child(3) { background: #f9ecd5; }
.collage span:nth-child(4) { background: #e8e4f3; transform: translateY(18px); }

/* ===== Valores ===== */
.values { border-block: 1px solid var(--line); background: var(--card); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 20px; }
.values-grid div { display: flex; flex-direction: column; text-align: center; }
.values-grid span { color: var(--muted); font-size: .9rem; }
.values-grid b { font-family: "Jost", system-ui, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .88rem; line-height: 1.6; color: var(--text); }

/* ===== Secciones ===== */
section { padding: 64px 0; }
.hero, .values { padding-block: 0; }
.hero { padding: 64px 0 56px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0; }

/* ===== Tienda ===== */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select, .card-form input, .card-form textarea, .card-form select, #formPedido input, #formPedido textarea, #formPedido select, .perso input {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%;
}
.toolbar input { flex: 2 1 220px; width: auto; }
.toolbar select { flex: 1 1 160px; width: auto; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chips button {
  font: inherit; font-weight: 700; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.chips button.on { background: var(--text); color: #fff; border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .pic { position: relative; aspect-ratio: 1; background: var(--soft); display: grid; place-items: center; font-size: 4.5rem; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card.out .pic { filter: grayscale(.7); opacity: .7; }
.ribbon {
  position: absolute; top: 12px; left: 12px; font-size: .75rem; font-weight: 800;
  background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 999px;
}
.ribbon.dark { background: var(--text); }
.ribbon.sage { background: #4079a0; } /* azul de la máquina de coser del logo de Instagram */
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.meta { display: flex; gap: 8px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.meta .cat { color: var(--accent); }
.meta .tec { color: var(--muted); }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-weight: 800; font-size: 1.15rem; }
.add {
  border: 0; background: var(--soft); color: var(--accent-dark); font: inherit; font-weight: 800;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.add:hover { background: var(--accent); color: #fff; }
.add:disabled { background: #eee; color: #999; cursor: not-allowed; }
.empty-grid { text-align: center; color: var(--muted); padding: 30px 0; }

/* ===== Pasos ===== */
.steps { background: var(--sage); }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-grid li { background: var(--card); border-radius: var(--radius); padding: 22px; }
.steps-grid span {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.steps-grid b { font-size: 1.05rem; }
.steps-grid p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.pay-line { text-align: center; margin: 26px 0 0; font-weight: 700; }

/* ===== Encargos ===== */
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.custom h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 12px; }
.custom p { color: var(--muted); }
.checks { list-style: none; padding: 0; }
.checks li { padding: 6px 0 6px 30px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: #fff; background: var(--accent); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; top: 8px; }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.card-form label, #formPedido label, .perso { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== Opiniones ===== */
.reviews { background: var(--soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.review { background: var(--card); border-radius: var(--radius); padding: 22px; margin: 0; }
.review .stars { color: #e0a43c; letter-spacing: 2px; }
.review blockquote { margin: 8px 0 12px; font-style: italic; }
.review cite { font-style: normal; font-weight: 800; }

/* ===== Preguntas ===== */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.faq-lista { margin: -6px 0 16px; padding: 0 18px 0 22px; list-style: none; color: var(--muted); }
.faq-lista li { margin-bottom: 6px; }
.faq-foto { display: block; max-width: 420px; margin: 0 18px 18px; }
.faq-foto img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* ===== Sobre mí ===== */
.about { background: var(--card); border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; }
.about-pic { aspect-ratio: 1; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 4rem; }
.about h2 { margin: 0 0 10px; }

/* ===== Contacto ===== */
.contact { background: var(--sage); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-card {
  background: var(--card); border-radius: var(--radius); padding: 18px; text-decoration: none;
  display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
a.c-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.c-card span { font-size: 1.6rem; }
.c-card b { font-size: 1rem; }
.c-card small { color: var(--muted); word-break: break-word; }
.c-card.wide { grid-column: 1 / -1; }

/* ===== Pie ===== */
.foot { background: var(--text); color: #f3e9e3; padding: 48px 0 20px; }
.foot .logo span { color: #f0a3b4; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid p { color: #c9bab2; margin: 8px 0 14px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 6px; }
.foot-grid b { color: #fff; margin-bottom: 4px; }
.foot-grid a { text-decoration: none; color: #c9bab2; }
.foot-grid a:hover { color: #fff; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-social { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-social a { border: 1px solid #6b5a52; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.foot-social a:hover { border-color: #fff; }
.copy { text-align: center; color: #b5a49b; font-size: .85rem; margin: 30px 0 0; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.wa-float:hover { background: var(--wa-dark); }

/* ===== Ficha de producto ===== */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(30, 20, 18, .5); display: grid; place-items: center; padding: 16px; }
.modal-box {
  position: relative; background: var(--bg); border-radius: 20px; width: min(920px, 100%);
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.9rem; cursor: pointer; color: var(--text); line-height: 1; z-index: 2; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.main-pic { aspect-ratio: 1; border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; font-size: 7rem; overflow: hidden; }
.main-pic { position: relative; }
.main-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* la foto se ve entera, sin recortar */
.main-pic:has(img) { background: var(--card); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--soft); }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.m-info h2 { margin: 6px 0 4px; font-size: 1.7rem; padding-right: 24px; }
.m-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); }
.pill.ok { background: #e1f1e3; color: #2f6b3a; }
.pill.wait { background: #fbefd8; color: #8a5a12; }
.pill.no { background: #eee; color: #777; }
.m-price { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.m-details { padding-left: 18px; color: var(--muted); margin: 0 0 14px; }
.opt { margin-bottom: 12px; }
.opt b { display: block; font-size: .92rem; margin-bottom: 6px; }
.opt-list { display: flex; gap: 6px; flex-wrap: wrap; }
.opt-list label { cursor: pointer; }
.opt-list input { position: absolute; opacity: 0; pointer-events: none; }
.opt-list span { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: .9rem; }
.opt-list input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }
.opt-list input:focus-visible + span { outline: 2px solid var(--accent); }
.perso { margin-bottom: 14px; }
.m-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.m-buy .btn { flex: 1; }
.share { margin-top: 12px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

/* ===== Cantidades ===== */
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: inherit; font-weight: 800; }
.qty.big button { width: 40px; height: 40px; }
.qty span { min-width: 18px; text-align: center; font-weight: 800; }

/* ===== Carrito ===== */
.overlay { position: fixed; inset: 0; background: rgba(30, 20, 18, .4); display: none; z-index: 40; }
.overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--bg); z-index: 41; transform: translateX(100%); transition: transform .25s;
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.1);
}
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.35rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }
.drawer h3 { font-size: 1rem; margin: 18px 0 8px; font-family: "Jost", sans-serif; font-weight: 800; }
.item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item .thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 1.6rem; overflow: hidden; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item small { color: var(--muted); display: block; }
.item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.remove { border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.empty .btn { margin-top: 12px; }
.free-bar { background: var(--sage); border-radius: 12px; padding: 10px 12px; font-size: .9rem; font-weight: 700; margin-top: 14px; }
.free-bar .bar { height: 6px; background: #fff; border-radius: 999px; margin-top: 6px; overflow: hidden; }
.free-bar .bar i { display: block; height: 100%; background: #6f8b68; border-radius: 999px; transition: width .3s; }
.radio { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 8px; cursor: pointer; font-weight: 600; }
.radio small { margin-left: auto; color: var(--muted); text-align: right; font-size: .8rem; }
.radio small.plazo { display: block; margin: 0; text-align: left; font-weight: 400; }
.envio-nota { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
#formPedido { display: grid; gap: 12px; }
.checkout { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--card); }
.sum { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
.sum.total { color: var(--text); font-weight: 800; font-size: 1.15rem; margin: 4px 0 12px; }
.note { font-size: .8rem; color: var(--muted); text-align: center; margin: 8px 0 0; }

/* ===== Aviso de error en config.js ===== */
.config-error {
  background: #fbebeb; color: #7a1f1f; border-bottom: 3px solid #b42318;
  padding: 14px 16px; font-size: .95rem; position: relative; z-index: 31;
}
.config-error ul { margin: 6px 0 0; padding-left: 20px; }

/* ===== Aviso de stock ===== */
.stock-note { color: #8a5a12; font-weight: 700; font-size: .9rem; margin: -4px 0 12px; }

/* ===== Aviso ===== */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); z-index: 60;
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  transition: transform .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* =====================================================================
   🎀 TEMA MELYMOON: cuadros vichy, costuras y estrella dorada (como el logo)
   ===================================================================== */
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }

/* Logo de la cabecera y del pie */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 44px; height: 44px; border-radius: 50%; }
.logo .logo-txt { color: var(--text); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 1.15rem; }
.logo-txt i { font-style: normal; color: var(--dorado); font-size: .8em; }
.foot .logo .logo-txt { color: #f3e9e3; }
.foot .logo-txt i { color: #d9b46a; }

/* Barra de aviso de arriba: rosa vichy */
.announce { background-color: var(--rosa); color: var(--text); border-bottom: var(--costura); letter-spacing: .03em; }

/* Portada: fondo de cuadros vichy y tarjeta crema con costura, como el centro de la pegatina */
.hero { background-color: var(--bg); background-image: var(--vichy); background-size: 40px 40px; }
.hero-card {
  background: var(--bg); border-radius: 28px; padding: 34px 32px 28px; box-shadow: 0 10px 30px rgba(43, 36, 33, .10);
  outline: 2px dashed #c9bab3; outline-offset: -12px;
}
.hero h1 { font-weight: 600; }
.kicker { letter-spacing: .14em; }
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(100%, 420px); height: auto; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--bg); box-shadow: 0 14px 30px rgba(43, 36, 33, .18); }

/* Línea de costura con estrella dorada debajo de cada título (como en el logo) */
.section-head h2::after, .custom h2::after, .about h2::after {
  content: "✦"; display: block; width: 190px; margin: 10px auto 0;
  color: var(--dorado); font-size: 1rem; line-height: 1; text-align: center;
  background:
    repeating-linear-gradient(90deg, #c9bab3 0 6px, transparent 6px 11px) left center / 40% 2px no-repeat,
    repeating-linear-gradient(90deg, #c9bab3 0 6px, transparent 6px 11px) right center / 40% 2px no-repeat;
}
.custom h2::after, .about h2::after { margin-left: 0; }

/* Franja de valores con costuras */
.values { background: var(--card); border-block: 2px dashed var(--line); }

/* Tarjetas de producto: hueco de la foto en vichy suave */
.card { border-radius: 20px; }
.card .pic { background-color: var(--card); background-image: var(--vichy-suave); background-size: 28px 28px; }
.card:hover { border-color: var(--rosa); }
.main-pic, .thumbs button, .item .thumb { background-color: var(--card); background-image: var(--vichy-suave); background-size: 24px 24px; }

/* Secciones alternas */
.steps { background: var(--soft); }
.steps-grid li { border: 2px dashed var(--line); }
.reviews { background-color: var(--bg); background-image: var(--vichy-suave); background-size: 36px 36px; }
.review { border: 2px dashed var(--line); }
.about-pic { background-color: var(--rosa); background-image: var(--vichy); background-size: 24px 24px; outline: 2px dashed #fff; outline-offset: -10px; }
.contact { background: var(--sage); }
.card-form, .c-card { border-style: dashed; border-width: 2px; }
.review .stars { color: var(--dorado); }
.checks li::before { background: var(--rosa); color: var(--text); }
.drop-promo { background-color: var(--soft); background-image: var(--vichy-suave); background-size: 20px 20px; }
.drop-promo:hover { background-color: #e6d0cb; }

/* Carrito: barra de envío gratis en rosa */
.free-bar { background: var(--soft); }
.free-bar .bar i { background: var(--accent); }

/* Pie: tira de cuadros vichy arriba */
.foot { position: relative; margin-top: 14px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background-color: var(--bg); background-image: var(--vichy); background-size: 14px 14px; }
.foot .logo img { width: 52px; height: 52px; }

/* ===== Móvil ===== */
@media (max-width: 1020px) {
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .menu > a, .drop-btn { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; width: 100%; font-size: 1.05rem; color: var(--text); }
  .menu > a:hover, .drop-btn:hover, .drop-btn[aria-expanded="true"] { background: none; }
  .drop-btn { display: flex; justify-content: space-between; }
  .drop {
    position: static; transform: none; box-shadow: none; border: 0; border-radius: 0;
    grid-template-columns: 1fr 1fr; padding: 12px 4px; gap: 16px; background: transparent; border-bottom: 1px solid var(--line);
  }
  .drop-promo { grid-column: 1 / -1; }
  .burger { display: block; }
  .hero-grid, .custom-grid, .modal-grid, .contact-grid { grid-template-columns: 1fr; }
  .collage { max-width: 360px; margin: 0 auto; }
  .values-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  section { padding: 48px 0; }
  .hero { padding: 36px 0 44px; }
  .cart-label { display: none; }
  .icon-btn { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .logo { font-size: 1.15rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .values-grid { gap: 14px 8px; font-size: .92rem; }
  .values-grid b { font-size: .78rem; letter-spacing: .1em; }
  .two { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-pic { width: 120px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .pic { font-size: 3rem; }
  .card .body { padding: 10px 12px 12px; }
  .card p { display: none; }
  .card h3 { font-size: .98rem; }
  .card .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .meta .tec { display: none; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; padding: 20px 16px; }
  .main-pic { font-size: 5rem; }
}

/* Tema MelyMoon en móvil */
@media (max-width: 1020px) {
  .hero-logo img { width: min(70%, 300px); }
  .hero-logo { order: -1; }
}
@media (max-width: 560px) {
  .hero-card { padding: 26px 20px 22px; outline-offset: -8px; }
  .hero { background-size: 30px 30px; }
  .logo img { width: 38px; height: 38px; }
  .logo-txt { font-size: 1rem; letter-spacing: .1em; }
  .about h2::after { margin-left: auto; }
}

/* Nota de personalización en la ficha */
.perso-nota { font-weight: 600; font-size: .82rem; color: var(--muted); }

/* Precio en las tarjetas: "Desde" pequeño encima y el precio sin partirse */
.card .price { white-space: nowrap; }
.card .price .desde { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }

/* Tabla de tallas en la ficha de producto */
.tallas { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); font-size: .95rem; }
.tallas th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tallas td { padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tallas tbody tr:last-child td { border-bottom: 0; }
.tallas th:last-child, .tallas td.pr { text-align: right; white-space: nowrap; }
.tallas td.pr { font-weight: 800; }
.tallas label { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.tallas input { position: absolute; opacity: 0; pointer-events: none; }
.tallas .punto { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; background: #fff; }
.tallas tr:has(input:checked) td { background: var(--soft, #f6ecef); }
.tallas input:checked + .punto { border-color: var(--text); box-shadow: inset 0 0 0 4px #fff; background: var(--text); }
.tallas input:focus-visible + .punto { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Vídeos en la galería del producto */
.main-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--card); }
.thumbs button { position: relative; }
.thumbs video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
