/* ============================================================
   Bodega Tepotzotlán — landing
   Paleta: azul marino #0B1F3A · azul medio #14315A · amarillo #FFC319
   ============================================================ */

:root {
  --navy-900: #0B1F3A;
  --navy-800: #102a4d;
  --navy-700: #14315A;
  --navy-50:  #eef3fb;

  --yellow:   #FFC319;
  --yellow-d: #e6ad00;

  --ink:      #11203a;
  --muted:    #5a6b85;
  --line:     #e3e8f1;
  --soft:     #f4f7fc;
  --white:    #ffffff;

  --wa:       #25D366;
  --wa-d:     #1ebf5a;

  --radius:   14px;
  --radius-lg: 22px;
  --shadow:   0 12px 32px rgba(11, 31, 58, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .18);
  --maxw:     1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============ Tipografía ============ */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw + 1rem, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 2.2vw + .8rem, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255,195,25,.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.dark { color: var(--navy-700); background: var(--navy-50); }
.muted { color: var(--muted); }
.hl { color: var(--yellow); }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.btn-primary:hover { background: var(--wa-d); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, .45); }
.btn-ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,31,58,.92);
  backdrop-filter: saturate(160%) blur(10px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--yellow); color: var(--navy-900);
  border-radius: 10px; font-weight: 900; letter-spacing: -.04em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: .98rem; }
.logo-text em { font-style: normal; font-size: .72rem; opacity: .7; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; }
.nav-cta {
  background: var(--yellow); color: var(--navy-900) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 1 !important;
}
.nav-cta:hover { background: var(--yellow-d); }

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .logo-text em { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(255,195,25,.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-copy .lede { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 56ch; }
.hero-copy .lede strong { color: var(--white); }

.hero-chips {
  list-style: none; padding: 0; margin: 22px 0 30px;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.hero-chips li {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 14px 14px;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  display: flex; flex-direction: column; gap: 4px;
  line-height: 1.15;
}
.hero-chips li span {
  font-size: 1.15rem; color: var(--yellow); font-weight: 800;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-trust {
  margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.65);
}

.hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateZ(0);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-chips { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Tira logos ============ */
.bar-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.bar-strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  justify-content: center;
}
.bar-strip-label {
  font-weight: 700; color: var(--navy-700); letter-spacing: -.01em;
}
.bar-pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line);
  font-weight: 700; color: var(--ink); font-size: .92rem;
}
.bar-pill.amazon { background: #232f3e; color: #fff; border-color: #232f3e; font-family: "Inter", sans-serif; letter-spacing: -.01em; }
.bar-pill.ml { background: #FFE600; color: #2D3277; border-color: #FFE600; }

/* ============ Secciones ============ */
.section { padding: 88px 0; }
.section-dark {
  background: var(--navy-900);
  color: var(--white);
}
.section-dark .muted { color: rgba(255,255,255,.7); }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .muted { font-size: 1.05rem; }

.two-col {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.check-list { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 10px; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding-left: 28px; position: relative;
  color: var(--ink);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 3px var(--navy-900);
}

/* ============ Mapa esquemático ============ */
.map-card {
  background: linear-gradient(160deg, #0e2447, #1a3b6b);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  color: white;
}
.map-grid {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.map-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Pin base */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none; /* solo visual */
  z-index: 2;
}
.pin-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy-900);
  font-weight: 900; font-size: .82rem;
  box-shadow: 0 6px 14px rgba(11,31,58,.3), 0 0 0 3px rgba(255,255,255,.85);
  flex-shrink: 0;
}
.pin-label {
  background: rgba(255,255,255,.97);
  color: var(--navy-900);
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.1;
  box-shadow: 0 6px 14px rgba(11,31,58,.25);
  white-space: nowrap;
  font-size: .78rem;
}
.pin-label strong { display: block; font-size: .82rem; }
.pin-label small { display: block; font-size: .65rem; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* Amazon */
.pin-amz .pin-dot { background: #232f3e; color: #ff9900; box-shadow: 0 6px 14px rgba(35,47,62,.4), 0 0 0 3px rgba(255,255,255,.85); }

/* Mercado Libre */
.pin-ml .pin-dot { background: #FFE600; color: #2D3277; box-shadow: 0 6px 14px rgba(255,230,0,.45), 0 0 0 3px rgba(255,255,255,.85); }

/* La bodega — destacada con animación */
.pin-here {
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}
.pin-here .pin-dot.here {
  width: 38px; height: 38px;
  background: var(--yellow);
  color: var(--navy-900);
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(255,195,25,.55), 0 0 0 4px rgba(255,255,255,.95);
  position: relative;
}
.pin-here .pin-dot.here::before,
.pin-here .pin-dot.here::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--yellow);
  z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
.pin-here .pin-dot.here::after { animation-delay: 1.2s; }
.pin-here .pin-label {
  background: var(--navy-900);
  color: var(--white);
}
.pin-here .pin-label strong { color: var(--yellow); }
.pin-here .pin-label small { color: rgba(255,255,255,.7); }
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--yellow); color: var(--navy-900);
  padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: .8rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  z-index: 4;
}

/* En móvil reducimos el detalle de las etiquetas para no saturar */
@media (max-width: 520px) {
  .pin-label small { display: none; }
  .pin-label { font-size: .72rem; padding: 5px 8px; }
  .pin-label strong { font-size: .75rem; }
  .pin-dot { width: 26px; height: 26px; font-size: .72rem; }
  .pin-here .pin-dot.here { width: 32px; height: 32px; font-size: .9rem; }
}

/* ============ Features ============ */
.features-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 26px;
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(255,195,25,.35); background: rgba(255,255,255,.06); }
.feature .ficon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy-900);
  border-radius: 12px; font-size: 1.3rem; font-weight: 900;
  margin-bottom: 14px;
}
.feature h3 { color: var(--white); }
.feature p { color: rgba(255,255,255,.72); margin: 0; font-size: .96rem; }

/* ============ Galería ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(11,31,58,.85), transparent);
  color: var(--white);
  font-size: .85rem; font-weight: 600;
}
.g-big { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: auto !important; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-big { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 16/9 !important; }
}

/* ============ Audiencia ============ */
.audience {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .audience { grid-template-columns: 1fr; } }
.audience > div {
  background: var(--white); border: 1px solid var(--line);
  padding: 22px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.audience strong { color: var(--navy-900); font-size: 1.05rem; }
.audience span { color: var(--muted); font-size: .92rem; }

/* ============ CTA final ============ */
.cta-final {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(255,195,25,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--white);
  padding: 72px 0;
}
.cta-inner {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 32px; align-items: center;
}
.cta-final p { color: rgba(255,255,255,.78); margin: 0; }
.cta-actions { display: flex; justify-content: flex-end; }
@media (max-width: 820px) {
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { justify-content: center; }
}

/* ============ Footer ============ */
.site-footer {
  background: #06122a; color: rgba(255,255,255,.7);
  padding: 36px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 18px;
}
.footer-inner strong { color: var(--white); display: block; }
.footer-inner p { margin: 4px 0 0; font-size: .9rem; }
.foot-links { display: flex; gap: 18px; font-size: .92rem; }
.foot-links a:hover { color: var(--yellow); }
.site-footer small { width: 100%; text-align: center; font-size: .8rem; opacity: .55; margin-top: 12px; }

/* ============ WhatsApp flotante ============ */
.wa-float {
  position: fixed; right: 18px; bottom: 18px;
  background: var(--wa); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(37,211,102,.45);
  z-index: 60;
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { background: var(--wa-d); transform: translateY(-2px); }
.wa-float svg { flex-shrink: 0; }
@media (max-width: 520px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* ============ Misc ============ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
