/* Landing El Rey del Congelado. Paleta de la marca: azul #0a3a5c y celeste #7ec8e3 */
:root {
  --ink:   #0a3a5c;
  --ink-2: #062a45;
  --ice:   #e6f2f8;
  --frost: #f7f9fc;
  --acento:  #7ec8e3;
  --acento-d:#4fa8c9;
  --line:  #d3e3ec;
  --text:  #2d3748;
  --muted: #5b6b7e;
  --radius: 10px;
  --head: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--frost); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mapa :focus-visible, footer :focus-visible { outline-color: var(--acento); }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; }
.section h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; max-width: 18ch; }
.lead { color: var(--muted); max-width: 58ch; margin-top: 16px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: 600 16px/1 var(--body); transition: background .2s, color .2s, border-color .2s; }
.btn-acento { background: var(--acento); color: var(--ink); }
.btn-acento:hover { background: #a5dbef; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(247,251,252,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { height: 44px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--acento); }
.nav-cta { padding: 10px 18px; font-size: 15px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { background: var(--ice); padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(40px, 6.6vw, 78px); font-weight: 900; color: var(--ink); }
.hero .lead { font-size: 19px; color: var(--text); margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 72px; }
.ficha { background: var(--ink); color: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 32px 32px 40px; }
.ficha h2 { font-size: 22px; font-weight: 800; color: var(--acento); max-width: none; margin-bottom: 18px; }
.ficha dl { margin: 0; }
.ficha div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.ficha dt { font-size: 14px; color: #A9C3D1; }
.ficha dd { margin: 2px 0 0; font-weight: 600; font-size: 18px; }

/* Marcas */
.marcas-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.marca { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 120px; display: grid; place-items: center; padding: 18px; }
.marca img { max-height: 70px; width: auto; object-fit: contain; }

/* Mapa */
.mapa { background: var(--ink-2); color: #fff; }
.mapa h2 { color: #fff; }
.mapa .lead { color: #A9C3D1; }
.mapa-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 44px; align-items: start; }
#mapa { height: 600px; border-radius: var(--radius); background: #0a1f2e; border: 1px solid rgba(255,255,255,.14); }
.region + .region { margin-top: 26px; }
.region h3 { font-size: 19px; font-weight: 800; color: var(--acento); margin-bottom: 8px; }
.region ul { list-style: none; margin: 0; padding: 0; }
.region li + li { border-top: 1px solid rgba(255,255,255,.12); }
.ciudad-btn { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 4px; cursor: pointer; font-size: 16px; }
.ciudad-btn:hover { color: var(--acento); }
.ciudad-btn:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.origen-nota { margin-top: 28px; padding: 14px 16px; border-left: 4px solid #fff; background: rgba(255,255,255,.06); font-size: 15px; color: #D5E5EE; }
.leaflet-container { font-family: var(--body); }
/* Oscurece los tiles de OpenStreetMap para que combinen con la sección */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.85) saturate(.6); }
.leaflet-tooltip { font-weight: 600; color: var(--ink); }
path.ruta { stroke-dasharray: 7 9; animation: fluir 1.6s linear infinite; }
@keyframes fluir { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { path.ruta { animation: none; } html { scroll-behavior: auto; } }

/* Nosotros */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 40px; }
.nosotros-grid p { max-width: 60ch; }
.practicas { list-style: none; margin: 0; padding: 0; }
.practicas li { padding: 18px 0 18px 20px; border-left: 4px solid var(--acento); background: linear-gradient(90deg, var(--ice), transparent); margin-bottom: 14px; }
.practicas strong { display: block; font-family: var(--head); font-size: 19px; color: var(--ink); }
.numeros { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; font-weight: 600; color: var(--ink); }
.numeros span { font-family: var(--head); font-size: 34px; font-weight: 900; margin-right: 6px; }

/* A quién servimos */
.servimos { background: var(--ice); }
.servimos ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.servimos li { padding: 22px 0; border-top: 2px solid var(--ink); }
.servimos h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.servimos p { color: var(--muted); margin: 0; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contacto-datos { margin-top: 28px; }
.contacto-datos p { margin-bottom: 8px; }
form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.campo { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid #A9C3D1; border-radius: 8px; font: inherit; color: var(--text); background: var(--frost); }
input:focus, textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.campo-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-nota { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Footer */
footer { background: var(--ink-2); color: #D5E5EE; padding: 48px 0 28px; font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-logo { height: 54px; width: auto; border-radius: 6px; margin-bottom: 14px; }
footer p { max-width: 44ch; margin: 0; }
footer a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
footer a:hover { color: var(--acento); border-color: var(--acento); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #A9C3D1; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-actions { padding-bottom: 40px; }
  .ficha { border-radius: var(--radius); margin-bottom: 40px; }
  .marcas-grid { grid-template-columns: repeat(3, 1fr); }
  .mapa-grid { grid-template-columns: 1fr; }
  #mapa { height: 460px; }
  .servimos ul { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--frost); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.abierto { display: flex; }
  .nav-links a { display: block; padding: 14px 0; }
  .campo-doble { grid-template-columns: 1fr; gap: 0; }
  form { padding: 22px; }
}
@media (max-width: 480px) { .marcas-grid { grid-template-columns: repeat(2, 1fr); } }