/* Sistema: .claude/skills/landing-page-design. Excepción por la inspo: serif en titulares y titular en color plano. */
@font-face { font-family: "Young Serif"; src: url(fonts/young-serif.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
:root { --crema: #f8f4eb; --crema-2: #efe8d9; --linea: #e4dccb; --tinta: #14110f; --suave: #5f564d; --terracota: #a9573a; --terracota-2: #8c452c; --ease: cubic-bezier(.22,1,.36,1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; overflow-x: clip; }
body { background: var(--crema); color: var(--tinta); font: 400 1rem/1.5rem Manrope, system-ui, sans-serif; overflow-x: clip; }
img { display: block; width: 100%; object-fit: cover; border-radius: 24px; }
ul, ol { list-style: none; }
h1, h2, h3, .heading-2 { text-wrap: balance; } p { text-wrap: pretty; }
a { color: inherit; } button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 4px; }
[hidden] { display: none !important; }

[class*="heading-"] { font-family: "Young Serif", Georgia, serif; font-weight: 400; }
.heading-1 { font-size: 3.75rem; line-height: 1.1; letter-spacing: -.02em; }
.heading-2 { font-size: 3rem; line-height: 1.1; letter-spacing: -.01em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3, .body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; }
.body-6, .caption-2 { font-size: .875rem; line-height: 1.25rem; }
.caption-1 { font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.suave { color: var(--suave); }
.i { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; mask: var(--i) center / contain no-repeat; }

.ancho { width: min(1200px, 100% - 48px); margin-inline: auto; }
section { padding-block: 96px; }
.banda { background: var(--crema-2); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dos img { aspect-ratio: 4/3; } .dos img.cuadrada { aspect-ratio: 1; }
.saltar { position: absolute; left: -999px; } .saltar:focus { left: 16px; top: 16px; z-index: 9; background: #fff; padding: 8px 16px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.boton { display: inline-block; border: 0; border-radius: 9999px; padding: 12px 24px; background: var(--terracota); color: #fff; text-decoration: none; text-align: center; }
.boton:hover { background: var(--terracota-2); transform: translateY(-2px); }
button:active, .boton:active { transform: scale(.98); }
.boton, button { transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }

.logo { display: inline-flex; align-items: center; gap: 8px; font: 400 1.5rem/2rem "Young Serif", Georgia, serif; text-decoration: none; }
.logo svg { width: 24px; height: 32px; }
.cabecera { position: fixed; z-index: 5; top: 16px; left: 50%; translate: -50%; display: flex; align-items: center; gap: 32px; padding: 8px 8px 8px 24px; border: 1px solid var(--linea); border-radius: 9999px; }
.cabecera::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgb(248 244 235 / .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } /* en ::before para que el menú fijo no herede el filtro */
nav { display: flex; gap: 24px; }
nav a { padding-block: 8px; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--terracota-2); text-decoration: underline; text-underline-offset: 8px; }
.cesta { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 9999px; background: var(--tinta); color: var(--crema); white-space: nowrap; }
.cesta:hover { background: var(--terracota-2); }
.toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; }
.toggle span { position: absolute; left: 10px; top: 21px; width: 24px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.toggle span:first-child { transform: translateY(-4px); } .toggle span:last-child { transform: translateY(4px); }
.menu-abierto .toggle span:first-child { transform: rotate(45deg); } .menu-abierto .toggle span:last-child { transform: rotate(-45deg); }

.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 96px; padding-bottom: 48px; }
.hero-texto { position: relative; z-index: 1; max-width: 680px; }
.hero-texto > p { max-width: 480px; margin-block: 24px 32px; } .hero-texto > .caption-1 { margin-block: 16px 0; }
.hero-foto { position: relative; height: min(672px, 80vh); min-height: 480px; object-position: 60% 50%; }
.trazos { position: absolute; left: 14%; top: 32px; width: 46%; height: 100%; color: var(--linea); pointer-events: none; }
.lema p { max-width: 960px; margin-inline: auto; text-align: center; }
.js .lema span { opacity: .3; transition: opacity .5s var(--ease); } .js .lema .visto { opacity: 1; }
.titulo { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; } .titulo p { max-width: 320px; }
.productos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 24px; }
.producto { display: flex; flex-direction: column; gap: 8px; }
.producto img { aspect-ratio: 4/5; border-radius: 16px; margin-bottom: 8px; }
.producto-pie { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; font-weight: 600; }
.anadir { min-height: 44px; padding: 8px 16px; border: 1px solid var(--tinta); border-radius: 9999px; background: none; } .anadir:hover { background: var(--tinta); color: var(--crema); }
.beneficios { display: grid; gap: 32px; margin-top: 32px; } .beneficios li { display: flex; gap: 16px; } .beneficios .i { color: var(--terracota); margin-top: 2px; }
.pasos { counter-reset: p; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.pasos li { counter-increment: p; display: grid; gap: 8px; }
.pasos li::before { content: counter(p); font: 400 3rem/1 "Young Serif", serif; color: var(--terracota); }
.opiniones { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
figure { display: grid; gap: 16px; align-content: space-between; padding: 32px; border-radius: 24px; background: var(--crema); }
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
details { border-top: 1px solid var(--linea); } details p { padding-bottom: 24px; max-width: 560px; color: var(--suave); }
summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; cursor: pointer; list-style: none; } summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--terracota-2); } summary .i { transition: transform .5s var(--ease); } [open] summary .i { transform: rotate(45deg); }
#visitanos p { margin-block: 16px 32px; }
dl { margin-bottom: 32px; } dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--linea); } dd { text-align: right; }
.pie { border-top: 1px solid var(--linea); padding-block: 32px; }
.pie .ancho { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-right: 80px; } /* hueco para la burbuja del chat */
.pie .logo { margin-right: auto; }
.simple { display: grid; gap: 24px; justify-items: start; align-content: center; min-height: 100dvh; padding-block: 64px; }

dialog { width: min(440px, 100%); height: 100dvh; max-height: none; margin: 0 0 0 auto; border: 0; padding: 32px; background: var(--crema); color: inherit; }
dialog::backdrop { background: rgb(20 17 15 / .45); }
.cesta-cabecera { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cerrar { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 9999px; background: none; } .cerrar:hover { background: var(--crema-2); }
#lineas li { display: flex; align-items: center; gap: 8px; padding-block: 12px; border-top: 1px solid var(--linea); } #lineas li > span:first-child { margin-right: auto; }
#lineas button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #cfc4ae; border-radius: 9999px; background: none; } #lineas button:hover { background: var(--crema-2); } #lineas .i { width: 16px; height: 16px; }
#lineas output { min-width: 24px; text-align: center; }
form, form label { display: grid; gap: 16px; } form label { gap: 8px; }
form input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid #9c907e; border-radius: 12px; background: #fff; font: inherit; } form input:user-invalid { border-color: #b3261e; }
.total { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--tinta); } form small { text-align: center; }

.js .aparece { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); } .js .aparece.visto { opacity: 1; transform: none; }

@media (max-width: 1024px) { .heading-1 { font-size: 3rem; } .heading-2 { font-size: 2.25rem; } .productos { grid-template-columns: 1fr 1fr; } .cabecera { gap: 24px; } }
@media (max-width: 768px) {
  section { padding-block: 64px; }
  .heading-1 { font-size: 2.25rem; } .heading-2 { font-size: 1.875rem; } .heading-3 { font-size: 1.875rem; line-height: 2.25rem; }
  .ancho { width: calc(100% - 32px); }
  .hero, .dos, .faq, .opiniones, .pasos { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 112px; }
  .hero-foto { height: auto; min-height: 0; aspect-ratio: 1; } .trazos { left: auto; right: 0; width: 80%; height: 60%; }
  .titulo { display: grid; gap: 12px; } .productos { gap: 32px 16px; }
  .cabecera { width: calc(100% - 32px); gap: 8px; padding-left: 16px; } .cabecera .logo { margin-right: auto; } .toggle { display: block; } .cabecera .logo, .cesta, .toggle { position: relative; z-index: 2; }
  nav { position: fixed; inset: -17px; width: 100vw; height: 100dvh; z-index: 1; flex-direction: column; justify-content: center; gap: 16px; padding: 32px; background: rgb(248 244 235 / .96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility .5s; }
  .cabecera { translate: none; left: 16px; }
  nav { inset: 0; }
  nav a { font: 400 1.875rem/2.25rem "Young Serif", serif; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .menu-abierto nav { visibility: visible; opacity: 1; } .menu-abierto nav a { opacity: 1; transform: none; }
  .menu-abierto nav a:nth-child(2) { transition-delay: 60ms; } .menu-abierto nav a:nth-child(3) { transition-delay: 120ms; } .menu-abierto nav a:nth-child(4) { transition-delay: 180ms; }
}
@media (max-width: 360px) { .cabecera .logo { font-size: 1.25rem; } .cabecera .logo svg { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-delay: 0s !important; } .js .aparece { transform: none; } .js .lema span { opacity: 1; } .boton:hover, button:active { transform: none; } }
