/* Café Prueba 4. Concepto: «barra a media mañana»: papel crema, tinta espresso y un solo acento, el azul de una taza esmaltada.
   Aire de las referencias (mucho espacio, líneas finas, esquinas suaves); titulares sans pesados con una palabra en serif cursiva. Solo fuentes del sistema. */
:root {
  --brand: #1f5fa8;       /* azul taza esmaltada: botones, cifras, eyebrows */
  --brand-ink: #ffffff;   /* sobre --brand: 6.4:1 */
  --accent: #1f5fa8;
  --accent-soft: #9cc3ef; /* acento sobre fondos espresso: 8.8:1 */
  --bg: #f7f2ea;          /* crema */
  --bg-2: #efe7da;        /* crema tostada */
  --surface: #fffdf9;
  --espresso: #2a1d16;
  --text: #2a1d16;        /* sobre --bg: 14.5:1 */
  --muted: #6b5a4e;       /* sobre --bg: 5.9:1; sobre --bg-2: 5.3:1 */
  --cream-on-dark: #f7f2ea;
  --line: rgba(42, 29, 22, .12);
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(64px, 9vw, 112px);
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font-text); overflow-x: hidden; }
@media (min-width: 768px) { body { font-size: 1.125rem; } }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { max-width: 65ch; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--brand-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: .75rem 1rem; z-index: 20; }
.skip:focus { left: 8px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 242, 234, .94); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand-name { font: 800 1.25rem/1 var(--font-head); letter-spacing: -.01em; color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.brand-name span { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-left: .35em; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .8em; }
.menu { display: flex; align-items: center; gap: .25rem 1.25rem; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu a:not(.btn):hover { color: var(--brand); text-decoration: underline; }
.menu li:not(:last-child) { display: none; }
@media (min-width: 720px) { .menu li:not(:last-child) { display: block; } }

/* Tipografía */
.eyebrow { font: 700 .8rem/1.3 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
h1 { font: 800 clamp(2.5rem, 7vw, 5.2rem)/1 var(--font-head); letter-spacing: -.03em; text-wrap: balance; }
h1 em, .band em { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--brand); letter-spacing: -.01em; }
h2 { font: 800 clamp(2rem, 5vw, 3.6rem)/1.02 var(--font-head); letter-spacing: -.025em; text-wrap: balance; }
h3 { font: 700 1.25rem/1.2 var(--font-head); letter-spacing: -.01em; }
.lead { margin-top: 1.4rem; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5em; border-radius: 999px; border: 2px solid var(--brand); font: 700 1rem/1 var(--font-text); text-decoration: none; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 14px 30px -14px rgba(31, 95, 168, .75); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(42, 29, 22, .25); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.menu .btn-sm { min-height: 44px; padding: 0 1.1em; background: var(--brand); color: var(--brand-ink); }

/* Hero */
.hero { position: relative; padding-block: clamp(48px, 9vw, 110px); overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 1px 1px, rgba(42, 29, 22, .07) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--bg); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 70vmax; aspect-ratio: 1; right: -30vmax; top: -20vmax; border-radius: 50%; background: radial-gradient(circle, rgba(156, 195, 239, .45), transparent 65%); }
.hero-in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.facts { display: grid; gap: 1rem 2rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: .2rem; }
.facts strong { font: 800 1.1rem/1.15 var(--font-head); color: var(--text); }
.facts span { font-size: .92rem; color: var(--muted); max-width: 18em; line-height: 1.4; }
.shot { position: relative; justify-self: center; width: min(100%, 380px); }
.frame { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 1.5rem;
  color: var(--cream-on-dark); font: 600 1.15rem/1.3 var(--font-serif); font-style: italic;
  background: linear-gradient(160deg, #4a3326, var(--espresso) 70%); transform: rotate(-2deg); box-shadow: 24px 36px 70px -30px rgba(42, 29, 22, .55); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 40%, rgba(247, 242, 234, .12) 50%, transparent 60%); }
.frame p { position: relative; z-index: 1; padding: .6rem 1.1rem; border: 1px dashed rgba(247, 242, 234, .5); border-radius: 999px; }
/* la taza: un círculo azul con su asa, sobre la foto */
.cup { position: absolute; left: -6%; bottom: -7%; width: 32%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); border: 8px solid var(--surface); box-shadow: 0 18px 40px -18px rgba(31, 95, 168, .7); }
.cup::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #7a5440, #3a271d 70%); }
.cup::after { content: ""; position: absolute; right: -26%; top: 32%; width: 26%; height: 36%; border: 7px solid var(--surface); border-left: 0; border-radius: 0 40px 40px 0; }

/* Franja inclinada */
.strip { background: var(--espresso); color: var(--cream-on-dark); clip-path: polygon(0 16%, 100% 0, 100% 84%, 0 100%); padding: 1.5rem 0; overflow: hidden; }
.strip p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.4rem; padding-inline: var(--gutter); max-width: none; }
.strip span { font: 700 1rem/1 var(--font-text); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.strip i { width: 8px; height: 8px; background: var(--accent-soft); transform: rotate(45deg); flex: none; }

/* Secciones */
.section { padding-block: var(--section-pad); }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.sub { margin-top: 1rem; color: var(--muted); }

.who { display: grid; gap: 1rem; }
.who li { position: relative; padding: clamp(1.3rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s ease; }
.who li:hover { transform: translateY(-3px); border-color: rgba(31, 95, 168, .45); }
.who .num { display: block; font: 800 .85rem/1 var(--font-text); letter-spacing: .2em; color: var(--brand); margin-bottom: 1.2rem; }
.who p { margin-top: .5rem; color: var(--muted); }

.band { padding-block: clamp(56px, 8vw, 96px); text-align: center; background: linear-gradient(135deg, #3a281e, var(--espresso) 60%); color: var(--cream-on-dark); }
.band blockquote p { font: 800 clamp(1.9rem, 4.8vw, 3.4rem)/1.05 var(--font-head); letter-spacing: -.02em; max-width: 16em; margin-inline: auto; }
.band em { color: var(--accent-soft); }
.band-note { margin: 1.2rem auto 0; color: #d9cbbd; max-width: 32em; } /* sobre espresso: 10.5:1 */

.site-footer { background: var(--espresso); color: #d9cbbd; padding-top: 2rem; }
.site-footer a { color: var(--cream-on-dark); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer strong { color: var(--cream-on-dark); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding-bottom: 1.2rem; }
/* Powered by Duxels: la misma insignia que llevan las demás páginas de Duxels (copiada tal cual de ellas; no la cambies). Va como hijo directo del pie (footer), al final. */
footer:has(> .dx-powered){padding-bottom:0}
.dx-powered{box-sizing:border-box;width:100%;align-self:stretch;justify-self:stretch;margin:0;padding:24px 20px calc(28px + env(safe-area-inset-bottom));text-align:center;font-size:15px;line-height:1.2;letter-spacing:.03em;border-top:1px solid color-mix(in srgb,currentColor 16%,transparent)}
.dx-powered a{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none;opacity:.9;transition:opacity .2s ease,transform .2s ease}
.dx-powered a:hover,.dx-powered a:focus-visible{opacity:1;transform:translateY(-2px)}
.dx-powered a img{display:block;width:30px;height:30px;max-width:none;margin:0}
.dx-powered b{font-size:19px;font-weight:800;letter-spacing:.02em}
.site-footer .dx-powered{max-width:none} /* (la regla general de p limita el ancho a 65ch) */

/* Preview cover (GENERATOR.md section 12): a band of locked teasers and a closing call. Only preview jobs use them; a paid build replaces them with real sections. */
.teasers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.teaser { position: relative; overflow: hidden; background: var(--surface); border: 1px dashed rgba(42, 29, 22, .25); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); min-height: 10rem; }
.teaser h3 { filter: blur(1.5px); }
.teaser-body { filter: blur(3.5px); user-select: none; margin: .6rem 0 0; color: var(--muted); }
.teaser-lock { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none; padding: .75rem; text-align: center; background: rgba(255, 253, 249, .35); }
.lock-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--espresso); color: var(--cream-on-dark); padding: .55rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.closing { padding-block: var(--section-pad); background: var(--brand); color: var(--brand-ink); text-align: center;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .12) 1px, transparent 1.5px); background-size: 22px 22px; }
.closing p { margin: 1rem auto 0; max-width: 36em; }
.closing-word { font: 600 italic clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--font-serif); }

@media (min-width: 768px) {
  .hero-in { grid-template-columns: 1.15fr .85fr; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; }
  .who { grid-template-columns: repeat(3, 1fr); }
  .teasers { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .who li, .dx-powered a { transition: none; }
  .btn:hover, .who li:hover { transform: none; }
}
