/* ============================================================
   FUENTES — Proxima Nova desde CDN MercadoLibre
============================================================ */
@font-face {
  font-family: 'Proxima Nova';
  src: url('https://http2.mlstatic.com/ui/webfonts/v3.0.0/proxima-nova/proximanova-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('https://http2.mlstatic.com/ui/webfonts/v3.0.0/proxima-nova/proximanova-semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('https://http2.mlstatic.com/ui/webfonts/v3.0.0/proxima-nova/proximanova-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ============================================================
   TOKENS — design system (scope CALM: .page-container en lugar de :root)
============================================================ */
.page-container {
  /* ---- COLORES ---- */
  --brand-yellow: #FFE600;
  --accent-blue: #3483FA;
  --accent-blue-dark: #2968C8;
  --text-primary: rgba(0,0,0,0.9);
  --text-secondary: rgba(0,0,0,0.55);
  --text-white: #FFFFFF;
  --text-link: #3483FA;
  --text-positive: #00A650;
  --bg-white: #FFFFFF;
  --bg-gray: #F5F5F5;
  --gray-dark: #1A1A1A;
  --divider: rgba(0,0,0,0.1);
  --shadow-flat: 0 1px 2px rgba(0,0,0,0.12);
  --andes-surface-secondary-idle: #f4f5f9;
  --andes-text-secondary-legal: #646587;
  --andes-text-primary-heavy: #282834;
  --footer-strip-bg: #f7f7f7;

  /* ---- BORDER RADIUS ---- */
  --radius-2: 2px;
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-full: 100px;

  /* ---- ALIAS CALM ---- */
  --r-hero: 24px;
  --r-card: 20px;
  --r-sm: 12px;
  --r-pill: 9999px;

  /* ---- ESPACIADO (escala 8px) ---- */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s7: 56px;
  --s8: 64px;
  --s10: 80px;

  /* ---- TIPOGRAFÍA ---- */
  --font: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Navbar height (móvil: 12 + 56 + 12) */
  --navbar-height: 80px;

  /* Inset horizontal */
  --page-gutter: 8px;
  --content-inset: 20px;

  /* Contenedor — siempre 100% */
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* ============================================================
   RESET & BASE
============================================================ */
.page-container img { display: block; max-width: 100%; }
.page-container a { text-decoration: none; color: inherit; }
.page-container button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ============================================================
   FOOTER — TyC + franja logo/social/copyright (Figma 11404:42776)
============================================================ */
.footer-legal {
  background: var(--bg-white);
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-legal-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--andes-text-secondary-legal);
  margin: 0 0 16px;
}
.footer-legal-terms {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--andes-text-secondary-legal);
  margin: 0;
}
.footer-legal-terms a {
  color: var(--text-link);
  text-decoration: none;
}
.footer-legal-terms a:hover {
  text-decoration: underline;
}
/* Nav links de footer (mirrors footer productivo de ML) */
.footer-nav {
  background: var(--bg-white);
  padding: 0 24px 16px;
}
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: block;
  border-top: 1px solid var(--divider);
}
.footer-nav-list li { display: inline; }
.footer-nav-list a {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  display: inline;
  margin-right: 8px;
}
.footer-nav-list a:hover { text-decoration: underline; }

/* Franja gris: logo (con enlace) + copyright */
.footer-bottom {
  background: var(--footer-strip-bg);
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copyright {
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  color: rgba(51, 51, 51, 0.8);
  margin: 0;
}
.footer-copyright-address {
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  color: rgba(51, 51, 51, 0.8);
  margin: 0;
}
/* Logo footer */
.footer-logo-img {
  height: 20px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
}

/* ============================================================
   DESKTOP — 768px+
============================================================ */
@media (min-width: 768px) {

  /* Tokens desktop */
  .page-container {
    --content-inset: 40px;
  }

  /* Footer TyC — padding desktop */
  .footer-legal {
    padding: 24px 10px;
  }

  /* Nav links desktop — una sola fila, padding mayor */
  .footer-nav {
    padding: 0 48px 20px;
  }
  .footer-nav-list {
    padding: 20px 0 0;
  }

  /* Franja gris desktop */
  .footer-bottom {
    padding: 32px 48px 28px;
    border-radius: var(--radius-16);
  }
}
