/* XS Minibodegas — estilos del rediseño 2026 (compartido por todas las páginas) */

:root {
  --xs-yellow: #f1ce05;
  --xs-yellow-soft: #fdf6cc;
  --xs-ink: #141414;
  --xs-ink-2: #3d3d3d;
  --xs-muted: #6b6b6b;
  --xs-line: #e6e3da;
  --xs-bg: #ffffff;
  --xs-bg-alt: #f7f6f2;
  --xs-dark: #121212;
  --xs-green: #1faa59;
  --xs-radius: 14px;
  --xs-shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --xs-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--xs-ink-2);
  background: var(--xs-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--xs-ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--xs-max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--xs-bg-alt); }
.section.dark { background: var(--xs-dark); color: #cfcfcf; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--xs-ink); background: var(--xs-yellow);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--xs-muted); max-width: 640px; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  padding: 15px 26px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--xs-ink); outline-offset: 2px; }
.btn-primary { background: var(--xs-yellow); color: var(--xs-ink); box-shadow: 0 6px 18px rgba(241, 206, 5, .35); }
.btn-primary:hover { background: #ffdc1a; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--xs-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--xs-ink); border-color: var(--xs-ink); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Barra superior */
.topbar { background: var(--xs-ink); color: #d9d9d9; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar .tb-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .dot { color: var(--xs-yellow); margin-right: 6px; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--xs-line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--xs-ink); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--xs-yellow); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--xs-ink); margin: 5px 0; }

/* Portada */
.hero { position: relative; color: #fff; background: var(--xs-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .65) 55%, rgba(10, 10, 10, .2) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 110px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 mark { background: none; color: var(--xs-yellow); white-space: nowrap; }
.hero .lead { color: #e2e2e2; font-size: 1.25rem; max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 38px; }
.hero-proof { display: flex; gap: 28px; flex-wrap: wrap; font-size: .95rem; color: #e8e8e8; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof strong { color: #fff; }
.stars { color: var(--xs-yellow); letter-spacing: 1px; }
ul.reset { list-style: none; margin: 0; padding: 0; }

/* Tarjetas de tamaños */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.size-card {
  background: #fff; border: 1px solid var(--xs-line); border-radius: var(--xs-radius);
  padding: 26px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.size-card:hover { box-shadow: var(--xs-shadow); transform: translateY(-2px); }
.size-card .tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--xs-muted); }
.size-card .m2 { font-size: 2.6rem; font-weight: 800; color: var(--xs-ink); line-height: 1; margin: 8px 0 6px; letter-spacing: -.03em; }
.size-card .m2 small { font-size: 1.1rem; font-weight: 700; }
.size-card .dims { font-size: .92rem; color: var(--xs-muted); margin-bottom: 14px; }
.size-card .fits { font-size: .97rem; margin-bottom: 18px; flex-grow: 1; }
.size-card .price { border-top: 1px dashed var(--xs-line); padding-top: 16px; margin-bottom: 16px; font-size: .92rem; color: var(--xs-muted); }
.size-card .price strong { font-size: 1.45rem; color: var(--xs-ink); }
.size-card.featured { border: 2px solid var(--xs-yellow); position: relative; }
.size-card.featured::before { content: "Más pedida"; position: absolute; top: -12px; left: 22px; background: var(--xs-yellow); color: var(--xs-ink); font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.sizes-note { margin-top: 28px; text-align: center; color: var(--xs-muted); }

/* Marcador de datos por confirmar (se elimina al publicar) */
.ph { background: #fff3b0; outline: 2px dashed #d4a800; outline-offset: 2px; border-radius: 4px; padding: 0 4px; color: var(--xs-ink); }

/* Para quién */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud { background: #fff; border-radius: var(--xs-radius); overflow: hidden; border: 1px solid var(--xs-line); display: flex; flex-direction: column; }
.aud img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.aud .body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.aud ul { padding-left: 18px; margin: 0 0 18px; flex-grow: 1; }
.aud li { margin-bottom: 4px; }
.aud a.more { font-weight: 800; color: var(--xs-ink); text-decoration: none; }
.aud a.more:hover { text-decoration: underline; }

/* Seguridad */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--xs-radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.checks { display: grid; gap: 18px; margin-top: 24px; }
.check { display: flex; gap: 16px; }
.check .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--xs-yellow); color: var(--xs-ink); display: grid; place-items: center; flex-shrink: 0; }
.check .ic svg { width: 22px; height: 22px; }
.check h3 { margin-bottom: 2px; font-size: 1.05rem; }
.check p { margin: 0; color: var(--xs-muted); font-size: .97rem; }
.section.dark .check p { color: #a9a9a9; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--xs-line); border-radius: var(--xs-radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--xs-ink); color: var(--xs-yellow); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step p { margin: 0; color: var(--xs-muted); }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--xs-yellow); line-height: 1.1; }
.stat .l { color: #cfcfcf; font-size: .95rem; }

/* Reseñas */
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.rating-box { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--xs-line); border-radius: var(--xs-radius); padding: 14px 20px; }
.rating-box .big { font-size: 2.2rem; font-weight: 800; color: var(--xs-ink); line-height: 1; }
.rating-box small { color: var(--xs-muted); display: block; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: #fff; border: 1px solid var(--xs-line); border-radius: var(--xs-radius); padding: 26px; margin: 0; }
.review blockquote { margin: 10px 0 16px; color: var(--xs-ink-2); }
.review figcaption { font-weight: 800; color: var(--xs-ink); font-size: .95rem; }
.review figcaption span { display: block; font-weight: 500; color: var(--xs-muted); font-size: .85rem; }

/* Ubicación */
.location { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: stretch; }
.map { border-radius: var(--xs-radius); overflow: hidden; min-height: 380px; border: 1px solid var(--xs-line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.info-list { display: grid; gap: 22px; }
.info-list h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.info-list p { margin: 0; }
.info-list a { font-weight: 700; color: var(--xs-ink); }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--xs-line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--xs-ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--xs-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--xs-muted); }

/* Llamado final */
.cta-band { background: var(--xs-yellow); color: var(--xs-ink); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; }

/* Pie */
.footer { background: var(--xs-dark); color: #a9a9a9; font-size: .95rem; padding: 64px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer a { color: #e6e6e6; text-decoration: none; }
.footer a:hover { color: var(--xs-yellow); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .logo-foot { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer .logo-foot img { height: 52px; width: auto; }
.footer .legal { border-top: 1px solid #2a2a2a; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Botón flotante de WhatsApp */
.btn-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.btn-whatsapp svg { width: 32px; height: 32px; fill: #fff; pointer-events: none; }

/* Popup de cotización (mismos IDs que js/whatsapp-popup.js) */
#ws-popup { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.ws-box { background: #fff; border-radius: 18px; padding: 2rem; width: 100%; max-width: 480px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); max-height: 92vh; overflow-y: auto; }
.ws-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 22px; cursor: pointer; color: #888; line-height: 1; }
.ws-intro { font-size: 1rem; color: var(--xs-ink-2); margin: 0 0 1.25rem; padding-right: 24px; }
.ws-intro strong { color: var(--xs-ink); }
.ws-form { display: flex; flex-direction: column; gap: 13px; }
.ws-form label { font-size: .85rem; font-weight: 700; color: var(--xs-ink-2); display: block; margin-bottom: 4px; }
.ws-form input, .ws-form select, .ws-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d8d5cc; border-radius: 9px; font: inherit; font-size: .95rem; color: var(--xs-ink); background: #fff;
}
.ws-form input:focus, .ws-form select:focus, .ws-form textarea:focus { outline: 2px solid var(--xs-yellow); border-color: var(--xs-ink); }
.ws-form textarea { resize: vertical; min-height: 72px; }
#ws-error { display: none; font-size: .85rem; color: #b3261e; padding: 8px 12px; background: #fdecea; border-radius: 8px; }
#ws-btn { background: #25d366; color: #fff; border: 0; border-radius: 10px; padding: 14px; font: inherit; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
#ws-btn svg { width: 18px; height: 18px; fill: #fff; }
.ws-foot { font-size: .8rem; color: #8a8a8a; text-align: center; margin: 0; }

/* Responsive */
@media (max-width: 980px) {
  .sizes, .audiences, .reviews, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split, .location { grid-template-columns: 1fr; gap: 32px; }
  .split img { aspect-ratio: 16 / 10; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) and (min-width: 821px) {
  .nav { gap: 16px; }
  .nav a { font-size: .88rem; }
  .logo img { height: 56px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--xs-line); box-shadow: var(--xs-shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--xs-line); }
  .nav a:hover, .nav a[aria-current="page"] { box-shadow: none; color: #000; }
  .nav .btn { margin-top: 14px; }
  .topbar .tb-hide { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .sizes, .audiences, .reviews, .steps { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 72px; padding-bottom: 72px; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 10, 10, .75), rgba(10, 10, 10, .9)); }
  .hero-ctas .btn { width: 100%; }
  .footer .cols { grid-template-columns: 1fr; }
  .logo img { height: 52px; }
  .header .wrap { min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .size-card { transition: none; }
}

/* Precio en pesos bajo el valor en UF */
.size-card .clp, .size-card .clp-note { display: block; font-size: .88rem; font-weight: 700; color: var(--xs-ink-2); margin-top: 4px; min-height: 1.2em; }

/* ---------- Páginas interiores ---------- */

/* Portada interior más baja */
.page-hero .wrap { padding-top: 84px; padding-bottom: 84px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-size: .85rem; color: #cfcfcf; margin-bottom: 14px; }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }

/* Filas imagen + texto, alternadas */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; scroll-margin-top: 110px; }
.feature + .feature { margin-top: 88px; }
.feature img { border-radius: var(--xs-radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature.reverse > :first-child { order: 2; }
.feature ul { padding-left: 20px; margin: 0 0 24px; }
.feature li { margin-bottom: 6px; }
.feature .range { display: inline-block; font-weight: 800; color: var(--xs-ink); background: var(--xs-yellow-soft); border-radius: 6px; padding: 2px 10px; margin-bottom: 14px; }

/* Grilla de servicios / consejos */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: #fff; border: 1px solid var(--xs-line); border-radius: var(--xs-radius); padding: 26px; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--xs-muted); font-size: .97rem; }
.card .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--xs-yellow); color: var(--xs-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card .num { font-size: .8rem; font-weight: 800; color: var(--xs-muted); letter-spacing: .1em; margin-bottom: 8px; display: block; }

/* Imagen en tarjeta de tamaño */
.size-card .render { margin: -26px -26px 20px; border-radius: var(--xs-radius) var(--xs-radius) 0 0; overflow: hidden; background: #1a1a1a; }
.size-card .render img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.callout { margin-top: 36px; background: var(--xs-yellow-soft); border-radius: var(--xs-radius); padding: 28px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; max-width: 680px; }

/* Línea de tiempo */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 6px; bottom: 6px; width: 2px; background: var(--xs-line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding-bottom: 34px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year { font-weight: 800; color: var(--xs-ink); background: var(--xs-yellow); border-radius: 8px; text-align: center; padding: 4px 0; height: fit-content; position: relative; z-index: 1; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--xs-muted); }

/* Cita */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: #fff; line-height: 1.4; margin: 0 0 22px; }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--xs-yellow); margin-bottom: 14px; }
.quote cite { font-style: normal; color: #cfcfcf; }
.quote cite strong { color: #fff; display: block; }

/* Contacto */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--xs-line); border-radius: var(--xs-radius); padding: 28px; display: flex; flex-direction: column; }
.contact-card.primary { border: 2px solid var(--xs-yellow); }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--xs-muted); flex-grow: 1; }
.contact-card .links { display: grid; gap: 6px; margin-bottom: 18px; }
.contact-card .links a { font-weight: 800; color: var(--xs-ink); text-decoration: none; font-size: 1.05rem; }
.contact-card .links a:hover { text-decoration: underline; }
.centers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.center { background: #fff; border: 1px solid var(--xs-line); border-radius: var(--xs-radius); overflow: hidden; }
.center img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.center .body { padding: 22px; }
.center h3 { margin-bottom: 4px; }
.center p { color: var(--xs-muted); margin-bottom: 14px; }

@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse > :first-child { order: 0; }
  .grid-3, .contact-cards, .centers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .contact-cards, .centers { grid-template-columns: 1fr; }
  .page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .timeline::before { left: 35px; }
  .timeline li { grid-template-columns: 72px 1fr; gap: 16px; }
  .callout { padding: 24px; }
}
