/* =========================================================
   Irene Creating · estilos de la tienda
   Paleta sacada del logo: crema, topo/moca y azul vichy.
   Los colores y tipografías principales están en :root.
   ========================================================= */

:root {
  --bg: #f8f4f0;          /* crema del logo */
  --paper: #fdfbf8;       /* blanco roto */
  --soft: #f1eae3;        /* beige */
  --blue: #a9c0d6;        /* azul vichy */
  --blue-soft: #e5edf4;
  --blue-ink: #6d8aa5;
  --taupe: #a58a76;       /* color de las letras IC */
  --taupe-light: #c4ab96;
  --taupe-dark: #7d6455;  /* botones (contraste AA con blanco) */
  --taupe-deep: #66513f;
  --ink: #4a3c33;         /* texto */
  --muted: #7b6c62;
  --line: #e7dcd2;
  --blush: #f3e3df;
  --danger: #a8322a;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Sacramento", "Brush Script MT", cursive;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(74, 60, 51, .05), 0 10px 30px rgba(74, 60, 51, .08);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Vichy reutilizable */
  --vichy-line: rgba(169, 192, 214, .32);
  --vichy-size: 26px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 .45em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: var(--taupe); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Letra manuscrita, como el "creo · diseño · inspiro" del logo */
.script-line {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  line-height: 1;
  color: var(--blue-ink);
  margin: 0 0 .25em;
}

.vichy, .section-vichy {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, var(--vichy-line) 50%, transparent 50%),
    linear-gradient(var(--vichy-line) 50%, transparent 50%);
  background-size: var(--vichy-size) var(--vichy-size);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: .95rem; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--taupe-dark); color: #fff; }
.btn-primary:hover { background: var(--taupe-deep); }
.btn-ghost { border-color: var(--taupe-light); background: var(--paper); color: var(--taupe-deep); }
.btn-ghost:hover { border-color: var(--taupe-dark); background: var(--taupe-dark); color: #fff; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.btn-link {
  background: none; border: 0; padding: 6px 0; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--ink); }

.icon-button {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink);
}
.icon-button:hover { background: var(--soft); }

/* ---------- aviso superior ---------- */
.announce { background: var(--taupe-dark); color: #fff; text-align: center; font-size: .86rem; letter-spacing: .03em; }
.announce a, .announce p { display: block; padding: 8px 16px; margin: 0; text-decoration: none; }
.announce span { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }
.announce a:hover span { text-decoration-thickness: 2px; }

/* ---------- cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 244, 240, .9);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--taupe);
}
.brand-sub {
  font-size: .62rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--blue-ink); margin-top: 5px;
}
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.main-nav a:hover { color: var(--taupe-dark); }

.cart-button {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--taupe-deep);
}
.cart-button:hover { border-color: var(--taupe); }
.cart-button.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--blue-ink); color: #fff; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
}

.main-nav a[aria-current="page"] { color: var(--taupe-dark); box-shadow: inset 0 -1.5px 0 var(--taupe-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-button {
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--taupe-deep);
}
.menu-button svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.menu-abierto .menu-button .l1 { transform: translateY(5px) rotate(45deg); }
.menu-abierto .menu-button .l2 { opacity: 0; }
.menu-abierto .menu-button .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .header-actions { margin-left: auto; }
  .menu-button { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(74, 60, 51, .12);
    padding: 6px var(--gutter) 14px;
  }
  .menu-abierto .main-nav { display: flex; }
  .main-nav a { padding: 14px 4px; font-size: .9rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; font-weight: 600; }
}

/* ---------- portada ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 31em; }
.hero-points { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; color: var(--ink); }
.hero-points span { display: inline-block; width: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual {
  position: relative; justify-self: center;
  width: min(100%, 460px); aspect-ratio: 5 / 6;
  border-radius: 999px 999px 30px 30px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, var(--vichy-line) 50%, transparent 50%),
    linear-gradient(var(--vichy-line) 50%, transparent 50%);
  background-size: 30px 30px;
  box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--line), var(--shadow);
}
.hero-logo {
  position: absolute; top: 7%; left: 50%; transform: translateX(-50%);
  width: 84%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 18px 44px rgba(74, 60, 51, .16), 0 0 0 7px rgba(253, 251, 248, .85);
}
.hero-logo img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.hero-caption {
  position: absolute; bottom: 5.5%; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 2px 24px 8px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
  font-family: var(--font-script); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1;
  color: var(--taupe); white-space: nowrap;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(76%, 320px); }
  .hero-text { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-points { justify-items: center; }
  .hero-actions { justify-content: center; }
}

/* ---------- categorías estilo "destacadas" de Instagram ---------- */
.highlights-wrap { padding: 12px 0 8px; }
.highlights {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(12px, 2vw, 26px);
  padding: 8px 4px 12px; scrollbar-width: none;
}
.highlights::-webkit-scrollbar { display: none; }
.highlight { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; width: 84px; }
.hl-ring {
  display: grid; place-items: center;
  width: 80px; height: 80px; border-radius: 50%;
  padding: 3px; background: var(--line);
  transition: background .2s, transform .2s;
}
.hl-circle {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; border: 3px solid var(--bg);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(169,192,214,.22) 50%, transparent 50%),
    linear-gradient(rgba(169,192,214,.22) 50%, transparent 50%);
  background-size: 14px 14px;
  color: var(--taupe);
}
.hl-circle svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hl-letter { font-family: var(--font-display); font-size: 1.8rem; }
.hl-label { font-size: .82rem; color: var(--ink); text-align: center; line-height: 1.2; }
.highlight:hover .hl-ring { transform: translateY(-2px); background: var(--taupe-light); }
.highlight.is-active .hl-ring { background: linear-gradient(135deg, var(--blue), var(--taupe-light)); }
.highlight.is-active .hl-label { font-weight: 600; }
@media (max-width: 720px) {
  .highlights {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  }
  .highlight { scroll-snap-align: start; }
}

/* ---------- recuadro sin foto ---------- */
.ph {
  --ph-linea: rgba(169,192,214,.42);
  --ph-fondo: #fbf9f6;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%;
  background-color: var(--ph-fondo);
  background-image:
    linear-gradient(90deg, var(--ph-linea) 50%, transparent 50%),
    linear-gradient(var(--ph-linea) 50%, transparent 50%);
  background-size: 22px 22px;
  color: var(--taupe);
  text-align: center;
}
.ph-badge {
  display: grid; place-items: center;
  width: 46%; aspect-ratio: 1; max-width: 120px;
  border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 0 1px var(--taupe-light), 0 0 0 6px var(--paper), 0 6px 18px rgba(74,60,51,.1);
}
.ph-badge span { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 500; letter-spacing: .02em; }
.ph small {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--paper); padding: 3px 10px; border-radius: 99px; color: var(--muted);
}
.cart-thumb .ph small, .thumb .ph small { display: none; }
.cart-thumb .ph-badge, .thumb .ph-badge { width: 70%; box-shadow: 0 0 0 1px var(--taupe-light); }
.cart-thumb .ph-badge span, .thumb .ph-badge span { font-size: 1.05rem; }
.ph-about .ph-badge { width: 40%; max-width: 150px; }
.ph-about .ph-badge span { font-family: var(--font-script); font-size: 2.6rem; }

/* ---------- secciones ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.center-head { text-align: center; margin-bottom: 8px; }
#tienda { padding-top: clamp(32px, 5vw, 56px); }

.sort { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 38px 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237b6c62' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center;
  color: var(--ink);
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
@media (max-width: 720px) {
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip {
  padding: 7px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: .88rem; color: var(--ink);
}
.chip:hover { border-color: var(--taupe-light); }
.chip[aria-pressed="true"] { background: var(--taupe-dark); border-color: var(--taupe-dark); color: #fff; }

/* ---------- productos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(146px, 40vw, 252px), 1fr));
  gap: clamp(16px, 2.6vw, 30px) clamp(12px, 2.4vw, 28px);
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 5; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--soft);
  box-shadow: 0 0 0 1px var(--line);
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-media:hover .card-img { transform: scale(1.04); }
.card.is-out .card-img { filter: grayscale(.6); opacity: .7; }

.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge {
  padding: 3px 11px; border-radius: 999px;
  background: var(--blue-ink); color: #fff;
  font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.badge-soft { background: rgba(255,255,255,.9); color: var(--taupe-deep); }
.badge-out { background: var(--ink); }

.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .7rem; color: var(--blue-ink); text-transform: uppercase; letter-spacing: .16em; margin: 0 0 4px; }
.card-title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; line-height: 1.15; margin: 0 0 6px; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { color: var(--taupe-dark); }
.card-title button:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.price { font-weight: 500; margin: 0 0 12px; }
.price-ask { color: var(--muted); font-weight: 400; font-style: italic; }
.card-foot { margin-top: auto; }
.card-foot .btn { width: 100%; }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

/* ---------- cómo funciona ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li {
  background: var(--paper); border-radius: var(--radius); padding: 30px 28px; text-align: center;
  box-shadow: var(--shadow);
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%; border: 1px solid var(--taupe-light); color: var(--taupe);
  font-family: var(--font-display); font-size: 1.6rem;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- sobre mí ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; max-width: 440px; width: 100%;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; background: var(--soft);
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { font-size: 1.08rem; color: var(--muted); }
.about-text .signature { font-family: var(--font-script); font-size: 2.4rem; color: var(--taupe); margin: 0 0 12px; line-height: 1; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

/* ---------- Instagram ---------- */
.ig-card {
  max-width: 780px; margin: 28px auto 0;
  background: var(--paper); border-radius: 24px; padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
}
.ig-profile { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: start; }
.ig-avatar {
  display: block; width: clamp(76px, 14vw, 112px); aspect-ratio: 1; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, var(--blue), var(--taupe-light));
}
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--paper); }
.ig-user { margin: 4px 0 0; font-weight: 600; font-size: 1.15rem; }
.ig-kind { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.ig-bio { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.55; }
.ig-follow { margin-top: 4px; }
.ig-tabs { display: flex; justify-content: center; border-top: 1px solid var(--line); margin: 24px 0 2px; }
.ig-tabs span { padding: 10px 28px; color: var(--muted); }
.ig-tabs .is-active { color: var(--ink); border-top: 1.5px solid var(--ink); margin-top: -1px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 6px; overflow: hidden; }
.ig-post { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ig-post::after {
  content: "♥"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.8rem; color: #fff; background: rgba(74, 60, 51, .35);
  opacity: 0; transition: opacity .2s;
}
.ig-post:hover::after, .ig-post:focus-visible::after { opacity: 1; }
.ig-post:hover img { transform: scale(1.04); }
.ig-more { text-align: center; margin-top: 22px; }
@media (max-width: 600px) {
  .ig-profile { grid-template-columns: auto 1fr; }
  .ig-follow { grid-column: 1 / -1; width: 100%; }
}

/* ---------- preguntas ---------- */
.faq { margin-top: 24px; background: var(--paper); border-radius: var(--radius); padding: 4px 26px; box-shadow: var(--shadow); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 500; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--taupe); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- pie ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.footer-name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); line-height: 1.1; }
.footer-name span { display: block; font-family: var(--font-body); font-size: .6rem; letter-spacing: .42em; color: var(--blue-ink); margin-top: 4px; }
.footer-note { margin: 14px 0 6px; font-family: var(--font-script); font-size: 1.6rem; color: var(--taupe); line-height: 1; }
.footer-text { color: var(--muted); font-size: .92rem; max-width: 30ch; margin-bottom: 14px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--taupe-deep); font-weight: 500; font-size: .92rem; }
.footer-social:hover span { text-decoration: underline; text-underline-offset: 3px; }
.footer-col h2 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue-ink); margin: 6px 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: .94rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--taupe-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .84rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { gap: 28px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- cabecera de las páginas interiores ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); margin-bottom: .25em; }
.page-lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 auto; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -8px 0 22px; }
.shop-toolbar p { margin: 0; font-size: .92rem; }

/* tarjetas de enlace (inicio) */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.link-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper); border-radius: var(--radius); padding: 30px 28px;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.link-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(74,60,51,.06), 0 16px 36px rgba(74,60,51,.12); }
.link-card h2 { font-size: 1.9rem; margin: 0 0 6px; }
.link-card p { color: var(--muted); margin: 0 0 14px; }
.link-arrow { margin-top: auto; color: var(--taupe-dark); font-weight: 500; font-size: .92rem; }
@media (max-width: 820px) { .link-cards { grid-template-columns: 1fr; } }

/* consejos (cómo funciona) */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.tip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.tip h3 { margin-bottom: .3em; }
.tip p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .tips { grid-template-columns: 1fr; } }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-left { justify-content: flex-start; margin-top: 8px; }

/* caja de ayuda (preguntas) */
.help-box { text-align: center; margin-top: 32px; padding: 32px 24px; border-radius: var(--radius); background: var(--paper); border: 1px dashed var(--taupe-light); }
.help-box h2 { font-size: 1.8rem; margin-bottom: .2em; }
.help-box p { color: var(--muted); }

/* páginas legales */
.legal { max-width: 760px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal .legal-data { list-style: none; padding: 16px 20px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.legal a { color: var(--taupe-dark); }
.pendiente { background: #fdf0d5; color: #8a5a00 !important; padding: 0 4px; border-radius: 4px; font-style: italic; }

/* ---------- diálogos (ficha y carrito) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(74, 60, 51, .4); backdrop-filter: blur(3px); }
body:has(dialog[open]) { overflow: hidden; }

.modal {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  border-radius: 24px;
  overflow: auto;
}
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(253,251,248,.92); }
.modal-body { display: grid; grid-template-columns: 1.05fr 1fr; }

.gallery { padding: 16px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.thumb[aria-pressed="true"] { border-color: var(--taupe); }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }

.detail { padding: 44px 32px 32px 16px; display: flex; flex-direction: column; }
.detail h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: .2em; padding-right: 32px; }
.detail-price { font-size: 1.3rem; font-weight: 500; margin-bottom: .4em; }
.detail-price.price-ask { font-size: 1.15rem; }
.ask-note { margin-top: -.2em; }
.detail-desc { color: var(--muted); white-space: pre-line; }
.stock { font-size: .88rem; color: var(--blue-ink); }
.stock-out { color: var(--danger); }
.personal { margin-bottom: 10px; }
.personal .small { margin: 6px 0 0; }

.options { border: 0; padding: 0; margin: 0 0 18px; }
.options legend { font-weight: 500; margin-bottom: 8px; }
.option { display: inline-block; margin: 0 6px 6px 0; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; }
.option input:checked + span { border-color: var(--taupe-dark); background: var(--taupe-dark); color: #fff; }
.option input:focus-visible + span { outline: 2px solid var(--blue-ink); outline-offset: 2px; }

.buy-row { display: flex; gap: 12px; margin-top: auto; padding-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 48px; background: var(--paper); }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 1.2rem; border-radius: 999px; }
.qty button:hover { background: var(--soft); }
.qty output { min-width: 24px; text-align: center; font-weight: 500; }
.qty-small { height: 34px; margin-top: 8px; }
.qty-small button { width: 32px; font-size: 1rem; }

@media (max-width: 720px) {
  .modal { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .modal-body { grid-template-columns: 1fr; }
  .gallery { padding: 12px 12px 0; }
  .gallery-main { aspect-ratio: 5 / 4; }
  .detail { padding: 20px 20px 24px; }
  .buy-row { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 4px; }
}

/* carrito lateral */
.drawer {
  margin: 0 0 0 auto;
  width: min(440px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
}
.drawer[open] { animation: slide .28s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
.drawer-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 14px 24px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.8rem; margin: 0; margin-right: auto; }
.drawer-step { display: flex; flex-direction: column; flex: 1; }

.cart-lines { padding: 8px 24px; flex: 1; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 72px; height: 88px; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.cart-img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; }
.cart-name { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.15; }
.cart-info .small { margin: 3px 0 0; }
.cart-note { font-style: italic; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; text-align: right; }
.cart-side strong { font-weight: 500; font-size: .95rem; }
.cart-empty { text-align: center; padding: 64px 0; color: var(--muted); }

.drawer-foot { position: sticky; bottom: 0; padding: 18px 24px 24px; background: var(--paper); border-top: 1px solid var(--line); }
.totals { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.05rem; }
.totals strong { font-weight: 600; text-align: right; }
.drawer-foot .small { margin: 4px 0 14px; }
.free-ship { font-size: .9rem; margin-bottom: 14px; }
.free-ship .bar { display: block; height: 5px; margin-top: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.free-ship .bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }

/* formulario */
.checkout { padding: 20px 24px 28px; }
.field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--taupe); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fdf3f2; }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--taupe); background: var(--bg); }
.radio input { accent-color: var(--taupe-dark); width: 18px; height: 18px; margin: 0; }

.order-summary { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 4px 0 16px; font-size: .92rem; }
.order-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.order-summary .row span:last-child { white-space: nowrap; text-align: right; }
.order-summary .row-sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; }
.order-summary .row-total { font-weight: 600; font-size: 1.02rem; }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: .9rem; cursor: pointer; }
.check input { accent-color: var(--taupe-dark); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.check a { color: var(--taupe-dark); }
.send-buttons { display: grid; gap: 10px; }
.form-error { color: var(--danger); font-size: .9rem; margin: 12px 0 0; }

.done { padding: 32px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.done h3 { font-size: 1.9rem; margin: 0; }
.done p { color: var(--muted); margin: 0; }
.done-instagram { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 12px; text-align: left; }
.done-instagram p { color: var(--ink); }
.done textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); font-size: .85rem; line-height: 1.5; resize: vertical; text-align: left;
}
.done label { text-align: left; margin-top: 6px; }

/* aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px);
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px; font-size: .92rem;
  box-shadow: var(--shadow);
  transition: opacity .25s, transform .25s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

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