/* Dulcería Doña Candela · demo
   Colores: cambia estas variables para adaptar la web a otra dulcería. */
:root {
  --paper: #FAF7F2;
  --paper-2: #F1EAE0;
  --white: #FFFFFF;
  --choco: #3B2620;
  --cherry: #8E3B46;      /* botones y enlaces: 6,9:1 sobre papel */
  --cherry-dark: #722E37;
  --blush: #F3D9C9;       /* acento sobre chocolate */
  --muted: #76665E;
  --line: #E4D9CB;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--choco); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cherry); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 em, h2 em { font-style: italic; color: var(--cherry); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 44rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: .75rem; top: -3rem; z-index: 20; background: var(--white); color: var(--choco); padding: .6rem 1rem; }
.skip-link:focus { top: .75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rótulos espaciados */
.label { font: 600 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.title-caps { font-family: var(--sans); font-weight: 600; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); letter-spacing: .28em; text-transform: uppercase; line-height: 1.4; }
.rule { width: 3.5rem; height: 1px; background: var(--choco); border: 0; margin: 1.25rem auto 1.5rem; }

/* Cabecera */
.site-header { background: rgba(250, 247, 242, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { color: var(--choco); text-decoration: none; line-height: 1.1; }
.brand strong { display: block; font: 400 1.45rem/1 var(--serif); font-style: italic; }
.brand span { display: block; font: 600 .66rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a:not(.button) { display: none; color: var(--choco); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.header-nav a:not(.button):hover { color: var(--cherry); }
@media (min-width: 52rem) { .header-nav a:not(.button) { display: inline; } }

/* Botones */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.6rem; border-radius: 999px; border: 1.5px solid var(--cherry); background: var(--cherry); color: var(--white); font: 600 .82rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--cherry-dark); border-color: var(--cherry-dark); }
.button-outline { background: transparent; color: var(--choco); border-color: var(--choco); }
.button-outline:hover { background: var(--choco); border-color: var(--choco); color: var(--paper); }
.button-small { min-height: 2.5rem; padding: .5rem 1.1rem; }

/* Portada */
.hero { padding-block: 3rem 4rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } .hero { padding-block: 5rem 6rem; } }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.8rem); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.25rem; }
.demo-note { font-size: .85rem; color: var(--muted); }
.hero-photo { position: relative; max-width: 30rem; justify-self: center; width: 100%; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid var(--choco); z-index: -1; }

/* Secciones */
.section { padding-block: 5rem; }
.section-soft { background: var(--paper-2); }
.section-white { background: var(--white); }
.section-intro { color: var(--muted); max-width: 36rem; margin-inline: auto; }

/* Lo que hacemos: cuadrícula de producto */
.products { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 56rem) { .products { grid-template-columns: repeat(4, 1fr); } }
.product { text-align: center; }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.1rem; }
.product h3 { font: 600 .82rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; margin-bottom: .4rem; }
.product p { color: var(--muted); font-size: .95rem; margin: 0 0 .35rem; }
.product .price { font-family: var(--serif); font-style: italic; color: var(--choco); font-size: 1.05rem; }

/* Dulces de las islas */
.sweets { list-style: none; margin: 3rem auto 0; padding: 0; display: grid; gap: 0 3rem; max-width: 60rem; }
@media (min-width: 48rem) { .sweets { grid-template-columns: 1fr 1fr; } }
.sweet { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.sweet h3 { font-size: 1.35rem; margin: 0; }
.sweet .origin { font: 600 .7rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cherry); align-self: center; text-align: right; }
.sweet p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; }

/* Historia */
.story { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .story { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-width: 28rem; }
.story h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
.facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.facts strong { display: block; font: 400 2rem/1.1 var(--serif); font-style: italic; color: var(--cherry); }
.facts span { font-size: .85rem; color: var(--muted); }

/* Encargos */
.order { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .order { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.order h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
.order-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 1.5rem; }
.order-form { background: var(--white); border: 1px solid var(--line); padding: 1.75rem 1.5rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 600 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--choco); background: var(--paper); border: 1px solid #CDBFAE; border-radius: 0;
  padding: .7rem .8rem; min-height: 3rem; width: 100%;
}
.field textarea { min-height: 5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--cherry); outline-offset: 1px; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 30rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* Tienda */
.visit { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .visit { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.hours { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.hours th, .hours td { padding: .65rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours th { font: 600 .78rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; }

/* Pie */
.site-footer { background: var(--choco); color: var(--blush); padding-block: 3rem 2rem; font-size: .92rem; }
.site-footer a { color: var(--blush); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer .brand { color: var(--paper); }
.site-footer .brand span { color: var(--blush); }
.site-footer p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--blush); }

/* Que ninguna columna se ensanche por su contenido (desplegables largos, fechas) */
.hero-grid > *, .story > *, .order > *, .visit > *, .form-row > * { min-width: 0; }
.order { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.order-form > * { min-width: 0; }
.order-form .button { white-space: normal; text-align: center; }
