/* Jomery Rosario: hoja de estilos del sitio.
   Línea visual del lienzo "Página web de Jomery Rosario": fondo claro, títulos Poppins en minúscula,
   texto DM Serif Text y resaltador pastel. */

:root {
  --bg: #FDFDFD;
  --ink: #3F3D3E;
  --ink-strong: #1F1E1E;
  --title: #676566;
  --line: #E4E2E3;
  --rosa: #F8D4D4;
  --amarillo: #FCFCD4;
  --fucsia: #FCD8FC;
  --azul: #ACD4EC;
  --verde: #D4E488;
  --lila: #E8D8FC;
  --menta: #B8E0D8;
  --durazno: #F8D0AC;
  --dark: #3F3D3E;
  --error: #A3262A;
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-control: 999px;
  --sans: 'Poppins', Arial, sans-serif;
  --serif: 'DM Serif Text', Georgia, serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-strong); }
:focus-visible { outline: 3px solid #4B6BFB; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.band { width: 100%; }
.band--amarillo { background: var(--amarillo); }
.band--rosa { background: var(--rosa); }
.band--menta { background: var(--menta); }
.band--lila { background: var(--lila); }
.band--dark { background: var(--dark); color: var(--bg); }
.band--dark a { color: var(--bg); }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; color: var(--title); margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 66px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.045em; }
h3 { font-size: 28px; letter-spacing: -0.04em; color: var(--ink); line-height: 1.15; }
.band--dark h2 { color: var(--bg); }
p { margin: 0; }
.kicker { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--title); }
.lead { font-size: 26px; line-height: 1.4; }
.muted { color: #5E5B5C; }
.small { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }

/* Resaltador */
.hl { padding: 2px 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--verde { background: var(--verde); }
.hl--rosa { background: var(--rosa); }
.hl--azul { background: var(--azul); }
.hl--amarillo { background: var(--amarillo); }
.hl--durazno { background: var(--durazno); }
.hl--lila { background: var(--lila); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none;
  min-height: 48px; padding: 14px 28px; border-radius: var(--radius-control);
  border: 2px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: var(--bg); background: var(--ink-strong); transform: translateY(-1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--verde { background: var(--verde); border-color: var(--verde); color: #2B2A2A; }
.btn--verde:hover { background: #C6D86F; color: #2B2A2A; }
.btn--light { background: transparent; border-color: var(--bg); color: var(--bg); }
.btn--light:hover { background: var(--bg); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.link-action { font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 12px 0; display: inline-block; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253,253,253,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { font-family: var(--sans); font-weight: 700; font-size: 26px; letter-spacing: -1.5px; color: var(--title); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.cart-btn { position: relative; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); min-width: 44px; min-height: 44px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; border-radius: 10px; background: var(--verde); color: #2B2A2A; font: 600 12px/20px var(--sans); text-align: center; padding: 0 5px; }
.cart-count:empty { display: none; }
.menu-toggle { display: none; background: none; border: 0; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--lila); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; } .hero-photo { aspect-ratio: 4 / 3; } }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.stat-num { font-family: var(--sans); font-weight: 700; font-size: 56px; letter-spacing: -2.5px; line-height: 1; color: var(--title); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 20px; } }

/* Tira de logos */
.logos { padding: 40px 0 44px; overflow: hidden; }
.logos-title { text-align: center; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #D9D7D8; margin-bottom: 28px; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover, .marquee:focus-within { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.marquee img { height: 56px; width: auto; max-width: 170px; object-fit: contain; opacity: .9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding: 0; }
  .marquee-group[aria-hidden="true"] { display: none; }
}
.logos-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { border-radius: var(--radius-md); padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--fucsia); }
.card .link-action { margin-top: auto; }
.card--outline { background: transparent; border: 2px solid var(--line); }
.card a.card-link { text-decoration: none; }

/* Sobre mí */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); aspect-ratio: 1 / 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Quiz */
.quiz { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.quiz-box { background: var(--bg); border-radius: var(--radius-md); padding: 36px; min-height: 360px; }
.quiz-progress { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--title); margin-bottom: 12px; }
.quiz-q { font-family: var(--sans); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 20px; line-height: 1.2; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt { text-align: left; font-family: var(--serif); font-size: 19px; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; cursor: pointer; min-height: 48px; transition: border-color .15s ease, background .15s ease; }
.quiz-opt:hover { border-color: var(--ink); }
.quiz-result { display: flex; flex-direction: column; gap: 16px; }
.quiz-back { background: none; border: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 12px 0; cursor: pointer; color: var(--ink); text-decoration: underline; align-self: flex-start; }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } }

/* FAQ */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { font-family: var(--sans); font-size: 15px; font-weight: 500; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius-control); padding: 10px 18px; min-height: 44px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.faq-list { border-top: 2px solid var(--line); }
.faq-item { border-bottom: 2px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; text-align: left; font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--ink); padding: 22px 0; cursor: pointer; min-height: 48px; }
.faq-q .sign { font-size: 26px; line-height: 1; flex: none; transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .sign { transform: rotate(45deg); }
.faq-a { padding: 0 0 24px; max-width: 760px; }
.faq-a p + p, .faq-a ul, .faq-a ol { margin-top: 12px; }

/* Eventos y blog */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.tile-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--lila); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-title { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.tile-meta { font-family: var(--sans); font-size: 14px; font-weight: 500; color: #5E5B5C; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius-md); padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* Artículo */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.article h1 { margin: 16px 0 24px; }
.prose { font-size: 21px; line-height: 1.65; }
.prose > * + * { margin-top: 20px; }
.prose h2, .prose h3 { margin-top: 36px; }
.prose img { border-radius: var(--radius-md); }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 4px solid var(--verde); font-size: 24px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }

/* Producto y tienda */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0 88px; align-items: start; }
.product-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--lila); }
.product-price { font-family: var(--sans); font-size: 30px; font-weight: 700; color: var(--ink); }
.ribbon { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600; background: var(--verde); color: #2B2A2A; border-radius: var(--radius-control); padding: 6px 12px; }
.info-section { border-top: 2px solid var(--line); padding-top: 16px; }
.info-section h3 { font-size: 18px; margin-bottom: 6px; }
.notify { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.notify .field { flex: 1 1 240px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

/* Formularios */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 17px/1.4 var(--sans); color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field .req { color: var(--error); }
.field-error { font-family: var(--sans); font-size: 13px; color: var(--error); }
.band--dark .field-error, .band--dark .form-error { color: #FFB4B4; }
.form-error { font-family: var(--sans); font-size: 15px; color: var(--error); }
.form-success { background: var(--verde); color: #2B2A2A; border-radius: var(--radius-md); padding: 28px; font-size: 22px; }
.form-card { background: var(--bg); color: var(--ink); border-radius: var(--radius-md); padding: 32px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Carrito */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(31,30,30,.45); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 90; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 2px solid var(--line); }
.drawer-head h2 { font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.drawer-foot { padding: 20px 24px; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.icon-btn { background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; color: var(--ink); font-family: var(--sans); }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; }
.line-name { font-family: var(--sans); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: var(--radius-control); }
.stepper button { background: none; border: 0; min-width: 40px; min-height: 40px; cursor: pointer; font-size: 18px; color: var(--ink); }
.totals { display: flex; justify-content: space-between; font-family: var(--sans); font-weight: 600; }
body.no-scroll { overflow: hidden; }

/* Pie */
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { padding: 12px 0; }

.skeleton { background: linear-gradient(90deg, #F1EFF0 25%, #F8F7F7 50%, #F1EFF0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-md); min-height: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dim { opacity: .55; transition: opacity .2s; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }

/* .section no debe borrar el margen lateral de .wrap cuando van juntos */
.wrap.section { padding-left: 24px; padding-right: 24px; }
