/* =====================================================================
 *  DISTRIBUIDORA LA FICHA · Landing  —  styles.css
 *  Mobile-first. Sin frameworks. Marca: negro · blanco · mostaza.
 * ===================================================================== */

:root {
  --brand: #d9a521;
  --brand-600: #c2911b;
  --brand-700: #9a6d08;
  --brand-soft: #fdf6e3;
  --brand-ink: #2b1f00;

  --ink: #0d0f12;
  --ink-2: #2a2f37;
  --muted: #6b7280;
  --line: #e8e8ea;
  --line-dark: #24272d;

  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --dark: #0b0d10;
  --dark-2: #14171c;

  --wa: #25d366;
  --wa-dark: #1eae55;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(13,15,18,.06), 0 6px 18px -12px rgba(13,15,18,.24);
  --shadow: 0 2px 4px rgba(13,15,18,.05), 0 20px 45px -24px rgba(13,15,18,.30);
  --shadow-lg: 0 30px 70px -30px rgba(13,15,18,.45);
  --wrap: 1180px;
  --header-h: 74px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip:focus { left: 0; }

/* ------------------------------- Botones ---------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #1a1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(217,165,33,.5); outline-offset: 2px; }

.btn-brand { --btn-bg: var(--brand); --btn-fg: #1a1400; }
.btn-brand:hover { --btn-bg: var(--brand-600); }

.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: #262a31; }

.btn-wa { --btn-bg: var(--wa); --btn-fg: #052e16; }
.btn-wa:hover { --btn-bg: var(--wa-dark); color: #fff; }

.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ------------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(13,15,18,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.brand-logo { height: 46px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-size: 16px; letter-spacing: .2px; }
.brand-text small { font-size: 11.5px; color: var(--brand-700); font-weight: 700; letter-spacing: .3px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
}
.site-nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transition: right .25s ease;
}
.site-nav > a:not(.btn):hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle span:nth-child(2) { }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- Hero ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(217,165,33,.20), transparent 70%),
    radial-gradient(60% 60% at 10% 0%, rgba(217,165,33,.10), transparent 60%),
    linear-gradient(180deg, #fffdf7 0%, #ffffff 60%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.hero-copy { max-width: 860px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(217,165,33,.35);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 .hl { color: var(--brand-700); position: relative; }
.hero h1 .hl::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .28em;
  background: rgba(217,165,33,.22);
  border-radius: .2em;
  z-index: -1;
}
.hero-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  font-weight: 600;
  color: var(--ink-2);
  font-family: var(--font-body);
  letter-spacing: 0;
}
.hero-lead {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--muted);
  max-width: 34em;
}
.hero-chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero-chips svg { color: var(--brand-700); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ------------------------------ Secciones --------------------------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .section-lead { color: rgba(255,255,255,.72); }

.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 54px); text-align: center; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  max-width: none;
}
.section-head--light { color: #fff; }
.kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-700);
}
.section--dark .kicker { color: var(--brand); }
.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
}
.section-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.1rem);
}
.section-head--row .section-lead { max-width: 46ch; }

/* ----------------------------- Beneficios --------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(217,165,33,.5);
}
.feature-ico {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-700);
  margin-bottom: 20px;
  border: 1px solid rgba(217,165,33,.3);
}
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

/* ----------------------------- Carrusel ----------------------------- */
.section-head--row { align-items: flex-end; }
.carousel-nav { display: flex; gap: 10px; }
.cnav {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, color .2s ease, border-color .2s ease;
}
.cnav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cnav:active { transform: scale(.95); }

.carousel {
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: #d7d7d7; border-radius: 999px; }
.track {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  gap: 20px;
}
.p-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(230px, 26vw, 270px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.p-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1f1ef;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.p-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s ease; }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-ph {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--brand-700);
  opacity: .5;
}
.p-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
}
.p-tag--top { background: var(--brand); color: #1a1400; }
.p-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); }
.p-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.p-price { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.p-price small { font-size: 11px; font-weight: 600; color: var(--muted); display: block; }
.p-cta {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #1a1400;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.p-cta:hover { background: var(--brand-600); transform: translateY(-2px); }
.carousel-status { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.section-foot { display: flex; justify-content: center; margin-top: 36px; }

/* ---------------------------- Categorías ---------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
  aspect-ratio: 4 / 3;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,18,0) 30%, rgba(13,15,18,.82) 100%);
}
.cat-name {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cat-name::after {
  content: '→';
  font-family: var(--font-body);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.cat-card:hover .cat-name::after { opacity: 1; transform: translateX(0); }
.cat-card--fallback { display: grid; place-items: center; background: linear-gradient(135deg, #14171c, #262a31); }
.cat-card--fallback .cat-name { position: static; }

/* ----------------------------- Ubicación ---------------------------- */
.section--dark { background: linear-gradient(180deg, #0b0d10, #101317); }
.section-head--light .section-lead { color: #b9bcc2; }
.ubi-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}
.ubi-info {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ubi-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.ubi-list li { display: flex; gap: 14px; }
.ubi-ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217,165,33,.14);
  color: var(--brand);
}
.ubi-list b { display: block; color: #fff; font-size: 15px; }
.ubi-list span, .ubi-list a { color: #b9bcc2; text-decoration: none; font-size: 15px; }
.ubi-list a:hover { color: var(--brand); }
.ubi-rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(255,255,255,.22);
  letter-spacing: 2px;
}
.stars-fill {
  position: absolute;
  left: 0; top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--brand);
  letter-spacing: 2px;
}
.rating-txt { color: #b9bcc2; font-size: 14px; }
.rating-txt b { color: #fff; }
.ubi-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ubi-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.ubi-photos img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid rgba(255,255,255,.08); }
.ubi-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  min-height: 420px;
  box-shadow: var(--shadow-lg);
}
.ubi-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.15); }

/* ------------------------------ CTA final --------------------------- */
.cta-strip { padding-block: 0 clamp(56px, 8vw, 96px); background: var(--dark); }
.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand), #e9bf4a);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.cta-grid h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #1a1400; }
.cta-grid p { margin: 6px 0 0; color: #4a3a05; }

/* ------------------------------- Footer ----------------------------- */
.site-footer {
  background: #08090b;
  color: #9aa0a8;
  padding-block: 54px 30px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-mark { display: flex; justify-content: center; margin-bottom: 40px; }
.footer-mark img { max-width: min(340px, 78%); height: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col h3 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col p { margin: 0; font-size: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { color: #9aa0a8; text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--brand); }
.ig-ico {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #fff !important;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
}
.footer-bottom p { margin: 0; }
.footer-legal { color: #6b7178; }

/* --------------------------- WhatsApp flotante ---------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), var(--shadow);
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ============================== Responsive ========================== */
@media (max-width: 1024px) {
  .hero-copy { max-width: 100%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .ubi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform .3s ease;
    z-index: 80;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta { display: inline-flex; margin-top: 14px; }
  .btn-cta { display: none; }
  .nav-toggle { display: flex; }
  .cards-3 { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; padding: 32px 26px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 1.4rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card:nth-child(1) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .ubi-photos { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; }
}
