:root {
  --ink: #17170f;
  --paper: #fbfaf5;
  --sand: #f2efdf;
  --line: #e0ddca;
  --yellow: #ffe11a;
  --green: #2f7d1f;
  --lm-muted: #55523f;
  --display: "Archivo", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #14490e; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); }
h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.06; margin-top: 12px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section { padding-top: 92px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.row--tight { margin-top: 0; gap: 10px; }
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid--cats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--values { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: 30px; }

.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--green); text-transform: uppercase; }
.eyebrow--light { color: var(--yellow); }
.mono { font-family: var(--mono); font-size: 12.5px; color: #8a8770; }
.xs { font-size: 11.5px; letter-spacing: 0.06em; }
.green { color: var(--green); }
.muted { color: var(--lm-muted); line-height: 1.6; }
.sm { font-size: 14.5px; line-height: 1.5; }
.lead { font-size: 17px; margin-top: 18px; max-width: 560px; }
.narrow { max-width: 380px; }
.center { text-align: center; }

.btn { display: inline-block; border: 0; font-family: var(--display); font-weight: 700; font-size: 16px; padding: 17px 28px; border-radius: 12px; transition: background .15s, color .15s; }
.btn--sm { font-size: 14.5px; padding: 12px 18px; border-radius: 10px; }
.btn--dark { background: var(--ink); color: var(--yellow); }
.btn--dark:hover { background: var(--green); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 15px 26px; }
.btn--outline:hover { background: var(--ink); color: var(--yellow); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--ink); color: var(--yellow); }
.btn--green { background: var(--green); color: #fff; margin-left: auto; }
.btn--green:hover { background: var(--ink); color: var(--yellow); }

.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: #f6f3e2; background-image: repeating-linear-gradient(135deg, rgba(23,23,15,.06) 0 2px, transparent 2px 11px); }
.ph span { font-family: var(--mono); font-size: 12px; color: #6b6851; background: var(--paper); padding: 6px 10px; border-radius: 6px; }
.ph--dark { align-items: flex-end; padding: 20px; border: 2px solid var(--ink); border-radius: 18px; aspect-ratio: 1; background-color: #e9e5d0; }
.ph--dark span { background: var(--ink); color: var(--yellow); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,245,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #e6e3d5; }
.header__inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand small { font-weight: 600; font-size: 13px; color: var(--green); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { padding: 9px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: #3f3f31; }
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav .btn { margin-left: 10px; }

/* Hero */
.hero { background: var(--yellow); border-bottom: 3px solid var(--ink); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 76px; }
.pill { display: inline-flex; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; padding: 7px 13px; border-radius: 100px; text-transform: uppercase; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5vw, 68px); line-height: .96; letter-spacing: -0.035em; margin-top: 22px; text-wrap: balance; }
.hero__lead { font-size: 19px; line-height: 1.55; max-width: 520px; margin-top: 22px; color: #3c3a20; text-wrap: pretty; }
.hero__stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; }
.hero__stats span { font-size: 13.5px; color: #4d4a2c; font-weight: 500; }
.photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 18px; background-color: #e9e5d0; }
.hero__media { position: relative; }
.hero__media .photo { aspect-ratio: 4 / 3.4; border-width: 3px; box-shadow: 14px 14px 0 rgba(23,23,15,.16); }
.hero__media .ph--dark { aspect-ratio: 4 / 3.4; border-width: 3px; background-color: #fff8cc; box-shadow: 14px 14px 0 rgba(23,23,15,.16); justify-content: center; }
.hero__badge { position: absolute; bottom: -26px; left: -26px; width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); }

.ticker { background: var(--ink); color: var(--paper); }
.ticker__inner { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; padding-top: 16px; padding-bottom: 16px; font-family: var(--mono); font-size: 13.5px; letter-spacing: .04em; }
.ticker b { color: var(--yellow); margin-right: 40px; font-weight: 400; }

/* Cards */
.card { border: 2px solid var(--line); background: #fff; border-radius: 16px; display: block; color: inherit; transition: transform .18s, border-color .18s; }
.card:hover { border-color: var(--ink); color: inherit; }
.card--lift { padding: 24px; }
.card--lift:hover { transform: translateY(-4px); }
.card--lift h3 { font-weight: 700; font-size: 20px; margin: 18px 0 7px; }
.card--lift .mono { margin-top: 16px; }
.chip-code { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: 2px solid #ddd9c3; background: transparent; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 100px; }
.filter.is-active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

.product { overflow: hidden; display: flex; flex-direction: column; }
.product__media { aspect-ratio: 4 / 3; position: relative; border-bottom: 2px solid var(--line); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 6px; }
.product__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__body h3 { font-weight: 700; font-size: 17.5px; line-height: 1.25; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--display); font-weight: 800; font-size: 21px; }
.product__foot s { font-size: 13.5px; color: #8a8770; margin-left: 7px; }

/* Deals */
.deals { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; align-items: center; }
.deals h2 { color: var(--paper); margin-top: 14px; font-size: clamp(29px, 3.2vw, 42px); }
.deals__lead { font-size: 17px; line-height: 1.55; color: #cfccb8; max-width: 460px; margin-top: 16px; }
.countdown { display: flex; gap: 8px; }
.countdown div { background: #262618; border: 1px solid #3d3d28; border-radius: 10px; padding: 10px 14px; text-align: center; min-width: 66px; }
.countdown strong { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--yellow); }
.countdown span { font-family: var(--mono); font-size: 10.5px; color: #8f8c78; letter-spacing: .08em; }
.deals__list { display: grid; gap: 14px; }
.deal { display: flex; align-items: center; gap: 16px; background: #201f14; border: 1px solid #35341f; border-radius: 14px; padding: 16px; }
.deal strong { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--yellow); min-width: 58px; }
.deal h4 { color: var(--paper); font-weight: 700; font-size: 16px; }
.deal p { font-size: 13.5px; color: #a5a28d; margin-top: 3px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; margin-top: 36px; align-items: start; }
.services__tabs { display: grid; gap: 10px; }
.tab { text-align: left; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 18px 20px; font-family: var(--display); }
.tab strong { display: block; font-weight: 700; font-size: 17px; }
.tab span { display: block; font-family: var(--body); font-size: 13.5px; opacity: .72; margin-top: 4px; }
.tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.services__panel { border: 2px solid var(--ink); border-radius: 18px; background: #fff; padding: 34px; box-shadow: 10px 10px 0 rgba(23,23,15,.1); grid-column: span 2; }
.services__panel h3 { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.services__panel > p { font-size: 16.5px; margin-top: 12px; max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; margin-top: 26px; }
.step { border-top: 3px solid var(--yellow); padding-top: 12px; }
.step h4 { font-weight: 700; font-size: 15.5px; margin: 5px 0; }
.services__foot { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid #e6e3d5; }
.services__foot strong { font-family: var(--display); font-weight: 800; font-size: 24px; }

/* About */
.about { margin-top: 92px; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.about h2 { font-size: clamp(29px, 3.2vw, 42px); }
.value { background: var(--paper); border: 1px solid #ddd9c3; border-radius: 14px; padding: 18px; }
.value h4 { font-weight: 700; font-size: 16px; margin-bottom: 6px; }

/* Testimonials */
.round { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 18px; color: var(--ink); }
.round--yellow { background: var(--yellow); }
.round:hover { background: var(--ink); color: var(--yellow); }
.testimonial { margin-top: 30px; border: 2px solid var(--line); border-radius: 20px; background: #fff; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; align-items: center; }
.testimonial > div:first-child { grid-column: span 2; }
blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.45; letter-spacing: -0.015em; text-wrap: pretty; }
.author { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.author strong { display: block; font-family: var(--display); font-size: 16px; }
.author span { font-size: 13.5px; color: #6b6851; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
.testimonial__side { border-left: 1px solid #e6e3d5; padding-left: 32px; }
.stars { font-family: var(--display); font-weight: 800; font-size: 42px; color: var(--green); }

/* Blog */
.post { overflow: hidden; }
.post__media { aspect-ratio: 16 / 9; }
.post__body { padding: 20px; }
.post__body h3 { font-weight: 700; font-size: 19px; line-height: 1.28; margin: 10px 0 8px; }

/* Contact */
.contact { margin-top: 92px; background: var(--yellow); border-top: 3px solid var(--ink); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; padding-top: 84px; padding-bottom: 84px; }
.contact__lead { font-size: 17px; line-height: 1.55; color: #3c3a20; margin-top: 16px; max-width: 460px; }
.contact__info { display: grid; gap: 16px; margin: 32px 0 0; }
.contact__info div { display: flex; gap: 14px; align-items: baseline; }
.contact__info dt { font-family: var(--mono); font-size: 11.5px; color: #6d6828; letter-spacing: .08em; min-width: 96px; }
.contact__info dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.form-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 32px; box-shadow: 12px 12px 0 rgba(23,23,15,.2); }
.form { display: grid; gap: 14px; }
.form h3, .sent h3 { font-weight: 800; font-size: 22px; }
.form input, .form select, .form textarea { font-size: 15px; padding: 14px; border: 2px solid #ddd9c3; border-radius: 10px; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: none; }
.sent { text-align: center; padding: 40px 10px; }
.sent h3 { color: var(--green); font-size: 26px; }
.sent p { margin: 12px 0 22px; }

/* Footer */
.footer { background: var(--ink); color: #cfccb8; }
.footer__inner { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 52px; padding-bottom: 52px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer__brand strong { display: block; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--paper); }
.footer__brand span { font-family: var(--mono); font-size: 12px; color: #8f8c78; }
.footer__address { display: block; margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 12px; color: #8f8c78; }
.footer nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14.5px; }
.footer nav a { color: #cfccb8; }
.footer nav a:hover { color: var(--yellow); }

/* Cart + modal */
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cart { position: fixed; bottom: 22px; right: 22px; z-index: 60; background: var(--ink); color: var(--yellow); border: 2px solid var(--yellow); border-radius: 100px; padding: 14px 22px; font-family: var(--display); font-weight: 700; font-size: 15px; display: flex; gap: 12px; align-items: center; animation: fade .25s ease; }
.cart small { font-family: var(--mono); font-size: 12.5px; color: var(--paper); }
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(23,23,15,.6); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .2s ease; }
.modal { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; max-width: 480px; width: 100%; padding: 32px; }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal h3 { font-weight: 800; font-size: 26px; margin-top: 8px; letter-spacing: -0.02em; }
.close { border: 0; background: var(--sand); width: 36px; height: 36px; border-radius: 50%; font-size: 17px; flex: 0 0 auto; }
.slots { display: grid; gap: 12px; margin-top: 22px; }
.slot { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.slot strong { font-family: var(--display); font-size: 16px; }
.slot span { font-family: var(--mono); font-size: 13px; color: var(--lm-muted); }
.slot.is-active { background: var(--yellow); border-color: var(--ink); }

/* ---------- Responsive ---------- */
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 20px; line-height: 1; flex: 0 0 auto; }
.header__cta { display: none; }
.modal { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* Tablet: el menú completo ya no cabe en una línea -> menú desplegable */
@media (max-width: 1080px) {
  .header__inner { position: relative; gap: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header__cta { display: inline-block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 20px; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 14px 28px rgba(23,23,15,.14); }
  .nav.is-open { display: flex; }
  .nav a { display: block; padding: 13px 10px; font-size: 16px; border-bottom: 1px solid #ece9d8; border-radius: 0; }
  .nav .btn { margin: 10px 0 0; text-align: center; border-bottom: 0; }
  .nav .btn--outline { border: 2px solid var(--ink); border-radius: 10px; }
  /* Páginas públicas con pocas opciones: el menú se queda visible */
  .nav--simple { display: flex; position: static; flex-direction: row; margin-left: auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav--simple a { padding: 8px 10px; font-size: 14px; border: 0; }
}

/* Una sola columna en la portada: la imagen no debe ocupar toda la pantalla */
@media (max-width: 900px) {
  .hero__media { max-width: 520px; width: 100%; }
  .about__grid > .ph--dark, .about__grid > .photo { max-width: 520px; width: 100%; }
}

/* Celular */
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .section { padding-top: 64px; }
  .header__inner { padding-top: 10px; padding-bottom: 10px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 56px; }
  .hero__lead { font-size: 17px; }
  .hero__stats { gap: 18px 28px; margin-top: 32px; }
  .hero__stats strong { font-size: 24px; }
  .hero__media .ph--dark, .hero__media .photo { box-shadow: 8px 8px 0 rgba(23,23,15,.16); }
  .hero__badge { width: 72px; height: 72px; left: -8px; bottom: -18px; }
  .ticker__inner { gap: 10px 18px; font-size: 12px; }
  .ticker b { margin-right: 18px; }
  .about__grid, .contact__grid, .deals, .services { grid-template-columns: 1fr; }
  .about, .contact { margin-top: 64px; }
  .about__grid, .contact__grid { gap: 36px; padding-top: 56px; padding-bottom: 56px; }
  .services__panel, .testimonial > div:first-child { grid-column: auto; }
  .deals, .testimonial, .services__panel { padding: 24px; }
  .deals { gap: 28px; border-radius: 18px; }
  .services__panel { box-shadow: 6px 6px 0 rgba(23,23,15,.1); }
  .services__panel h3 { font-size: 23px; }
  .services__foot { gap: 16px; }
  .btn--green { margin-left: 0; width: 100%; text-align: center; }
  .testimonial { gap: 22px; }
  .testimonial__side { border-left: 0; padding-left: 0; border-top: 1px solid #e6e3d5; padding-top: 18px; }
  blockquote { font-size: 19px; }
  .stars { font-size: 30px; }
  .form-card { padding: 22px; box-shadow: 6px 6px 0 rgba(23,23,15,.2); }
  .contact__info div { flex-direction: column; gap: 2px; }
  .contact__info dt { min-width: 0; }
  .contact__info dd { font-size: 16px; overflow-wrap: anywhere; }
  .row .btn { flex: 1 1 auto; text-align: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 40px; padding-bottom: 40px; }
  .cart { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
}

/* Celulares pequeños */
@media (max-width: 420px) {
  .brand { font-size: 16px; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { font-size: 11.5px; }
  .header__cta { padding: 10px 12px; font-size: 13.5px; }
  .hero h1 { font-size: 34px; }
  .countdown div { min-width: 0; padding: 8px 10px; }
  .deal { padding: 12px; gap: 12px; }
  .deal strong { font-size: 19px; min-width: 48px; }
  .filter { padding: 8px 12px; font-size: 13px; }
  .product__body h3 { font-size: 16.5px; }
}

/* Ventanas emergentes (agenda y carrito) en celular: desde abajo y con scroll propio */
@media (max-width: 520px) {
  .overlay { padding: 12px; align-items: flex-end; }
  .modal { padding: 22px; border-radius: 18px; }
  .modal h3 { font-size: 22px; }
  .slots { gap: 8px; margin-top: 16px; }
  .slot { padding: 11px 14px; gap: 10px; }
  .slot strong { font-size: 15px; }
  .slot span { font-size: 12px; white-space: nowrap; }
}
