/* ==========================================================================
   YAAPP! — SITIO WEB OFICIAL (YARCE 360 S.A. DE C.V.)
   Identidad Visual Oficial: Azul Profundo (#0A1138) + Naranja Yaapp! (#FF5B00)
   Arquitectura: Blanca & Directa (Opción A) + Banners Oficiales (Opción B)
   ========================================================================== */

:root {
  --navy: #0A1138;
  --navy-hover: #131E5A;
  --orange: #FF5B00;
  --orange-hover: #E04F00;
  --orange-soft: #FFF3EC;
  --bg: #FFFFFF;
  --surface: #F6F7F9;
  --surface-hover: #EDEEF3;
  --ink: #0A1138;
  --muted: #5B6178;
  --subtle: #8A8FA3;
  --line: #E6E8F0;
  --success: #1F7A4C;
  --success-bg: #E6F4EC;
  --font-display: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* ACCESIBILIDAD */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: #FFF;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 2px;
}

/* ==========================================================================
   ENCABEZADO Y NAVEGACIÓN PRINCIPAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 5px;
  border-radius: 999px;
}

.nav-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-pill:hover {
  color: var(--navy);
}

.nav-pill.is-active {
  background: #FFFFFF;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(10, 17, 56, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-partner {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 10px;
  transition: color 0.15s;
}

.link-partner:hover {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-pill {
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
}

.btn-navy {
  background: var(--navy);
  color: #FFFFFF;
}
.btn-navy:hover {
  background: var(--navy-hover);
}

.btn-orange {
  background: var(--orange);
  color: #FFFFFF;
}
.btn-orange:hover {
  background: var(--orange-hover);
}

.btn-surface {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-surface:hover {
  background: var(--surface-hover);
}

/* BOTÓN MENÚ MÓVIL */
.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
}

/* ==========================================================================
   PORTADA CLIENTES (INDEX.HTML) — OPCIÓN A + BANNERS OPCIÓN B
   ========================================================================== */
.hero-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 28px 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.02;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--orange);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 30px;
}

/* SELECTOR DE LAS 4 VERTICALES CON ÍCONOS OFICIALES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.category-tile {
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 18px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.category-tile:hover,
.category-tile.is-active {
  background: #FFFFFF;
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 17, 56, 0.06);
}

.category-tile img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.category-tile strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.category-tile small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.store-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* TARJETA VISUAL DERECHA DEL HERO */
.hero-visual-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 30px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-visual-card img.hero-moto {
  width: 100%;
  max-width: 310px;
  height: auto;
}

.hero-facts {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.hero-facts strong {
  color: var(--navy);
}

/* VITRINA LIMPIA ESTILO UBER EATS */
.showcase-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 28px 48px;
}

.showcase-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.showcase-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.showcase-header span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feed-card {
  cursor: pointer;
}

.feed-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 10px;
}

.feed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.feed-card:hover .feed-photo img {
  transform: scale(1.03);
}

.feed-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.feed-time {
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--navy);
  white-space: nowrap;
}

.feed-meta {
  font-size: 13px;
  color: var(--muted);
}

/* FRANJA DE BANNERS OFICIALES (INTEGRACIÓN OPCIÓN B) */
.banners-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 28px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.official-banner-link {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.official-banner-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 17, 56, 0.08);
}

.official-banner-link img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   PÁGINAS DEDICADAS: NEGOCIOS Y REPARTIDORES (CERO SCROLL ETERNO)
   ========================================================================== */
.split-page-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 28px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.split-page-section h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  color: var(--navy);
  margin-bottom: 16px;
}

.split-page-section h1 span {
  color: var(--orange);
}

.split-page-section p.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 26px;
}

.clean-points {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.clean-points li {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.clean-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  flex-shrink: 0;
}

.partner-card-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
}

.partner-card-box h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 6px;
}

.partner-card-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.quick-form {
  display: grid;
  gap: 14px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #D5D8E2;
  background: #FFFFFF;
  color: var(--navy);
  font-size: 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.wide-banner-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.wide-banner-wrap img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
}

/* TARIFAS ZONA A, B, C EN REPARTIDORES */
.zones-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.zone-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.zone-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.zone-pill span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ==========================================================================
   PÁGINAS LEGALES (PRIVACIDAD, TÉRMINOS, ELIMINAR CUENTA)
   ========================================================================== */
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

.legal-container h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 42px);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.65;
  color: #2D334A;
  margin-bottom: 10px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-callout {
  background: var(--surface);
  border-left: 4px solid var(--orange);
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--navy);
}

/* ==========================================================================
   FOOTER INSTITUCIONAL COMPACTO
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: #FFFFFF;
  padding: 28px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--navy);
}

/* ==========================================================================
   MODAL DE DESCARGA DE APP (QR + GOOGLE PLAY + APP STORE)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 56, 0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 60px rgba(10, 17, 56, 0.25);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.modal-dialog img.modal-logo {
  height: 42px;
  margin: 0 auto 16px;
}

.modal-dialog h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 8px;
}

.modal-dialog p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.modal-buttons {
  display: grid;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS Y MÓVILES)
   ========================================================================== */
@media (max-width: 960px) {
  .hero-section,
  .split-page-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px;
  }

  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banners-strip {
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .brand-logo img {
    height: 36px;
  }

  .link-partner {
    display: none;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }

  .nav-pill {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feed-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .zones-row {
    grid-template-columns: 1fr;
  }

  .showcase-section,
  .wide-banner-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .store-actions .btn {
    width: 100%;
  }
}
