/* Letra Plus Jakarta Sans guardada dentro del sitio (licencia libre OFL): no se descarga de Google.
   Es una fuente "variable": un solo archivo trae todos los grosores, de 400 a 800. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fuentes/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fuentes/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Página web de Mudego. Colores de la marca (los mismos que la app). */
:root {
  --brand: #0b7a80;
  --brand-dark: #08595d;
  --brand-logo: #15a8af;
  --brand-light: #e6f4f4;
  --deep: #0c3a3d; /* verde petróleo de la portada y el pie */
  --surface: #f2f6f6;
  --ink: #000000;
  --muted: #000000;
  --borde: #dfe7e7;
  --radio: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* color-scheme: la página es clara; evita que algunos navegadores (ej. Samsung Internet) la oscurezcan solos.
   text-size-adjust: que el navegador no agrande la letra por su cuenta y desarme la página. */
:root { color-scheme: light only; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.contenedor-angosto { max-width: 780px; }

/* ---------- Código de acceso ---------- */
.acceso { display: none; }
.bloqueado .acceso {
  display: flex; position: fixed; inset: 0; z-index: 100;
  background: #fff; align-items: center; justify-content: center; padding: 16px;
}
.bloqueado .cabecera, .bloqueado main, .bloqueado .pie { display: none; }
.acceso-caja { width: 100%; max-width: 300px; text-align: center; }
.acceso-candado {
  width: 52px; height: 52px; border-radius: 16px; background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.acceso-candado svg { width: 24px; height: 24px; }
.acceso-caja p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.acceso-caja input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--borde); border-radius: 10px; outline: none;
}
.acceso-caja input:focus { border-color: var(--brand-logo); }
.acceso-caja .acceso-error { color: #c0392b; font-size: 12px; font-weight: 600; min-height: 16px; margin-bottom: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; border: none; cursor: pointer;
  padding: 14px 22px; border-radius: 10px; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--brand); color: #fff; }
.btn-primario:hover { background: var(--brand-dark); }
.btn-secundario { background: #fff; color: var(--brand-dark); border: 1px solid var(--borde); }
.btn-secundario:hover { border-color: var(--brand-logo); }
.btn-blanco { background: #fff; color: var(--ink); }
.btn-blanco:hover { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.btn-chico { padding: 10px 18px; font-size: 15px; }
.btn-bloque { width: 100%; }

/* ---------- Cabecera (sobre la portada oscura) ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--deep); }
.cabecera-fila { display: flex; align-items: center; gap: 24px; height: 76px; }
.cabecera-logo img { height: 30px; width: auto; }
.menu { flex: 1; display: flex; justify-content: center; align-items: center; gap: 30px; font-size: 15.5px; font-weight: 500; }
.menu a:not(.btn) { color: #fff; transition: color .15s; }
.menu a:not(.btn):hover { color: #fff; }
.menu-solo-cel { display: none; }
.cabecera-acciones { display: flex; align-items: center; gap: 22px; }
.cabecera-ingresar { color: #fff; font-size: 15.5px; font-weight: 700; }
.cabecera-ingresar:hover { opacity: .8; }
.menu-boton { display: none; background: none; border: none; color: #fff; padding: 8px; cursor: pointer; }
.menu-boton svg { width: 24px; height: 24px; }

/* ---------- Textos comunes ---------- */
.etiqueta {
  display: block; color: var(--brand); font-weight: 700; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; font-size: 13.5px;
}
h1 { font-size: 68px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin-bottom: 32px; }
h3 { font-size: 19.5px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.bajada { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.resaltado { color: var(--brand-logo); }

/* ---------- Portada ---------- */
.portada { background: var(--deep); color: #fff; position: relative; }
/* Solo la foto se recorta: la lista de sugerencias del buscador puede salir por debajo de la portada */
.portada-arriba { position: relative; overflow: hidden; }
/* Foto a la derecha, que se funde con el verde oscuro hacia la izquierda y hacia abajo */
.portada-foto {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%;
  background: url("portada.jpg") 55% 62% / cover no-repeat;
}
.portada-foto::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--deep) 0%, rgba(12, 58, 61, .55) 32%, rgba(12, 58, 61, .12) 70%, rgba(12, 58, 61, .2) 100%),
    linear-gradient(to top, var(--deep) 0%, rgba(12, 58, 61, 0) 35%),
    linear-gradient(to bottom, rgba(12, 58, 61, .45) 0%, rgba(12, 58, 61, 0) 30%);
}
.portada-grilla { position: relative; padding-top: 80px; padding-bottom: 96px; }
.etiqueta-clara {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.portada h1 { margin-bottom: 24px; }
.portada-bajada { font-size: 19px; color: #fff; max-width: 470px; }
.portada-texto { min-width: 0; max-width: 560px; }
.portada h1, .portada-bajada { text-shadow: 0 2px 18px rgba(12, 58, 61, .45); }

/* Buscador: la tarjeta queda mitad sobre la portada y mitad sobre la sección de abajo */
.buscador-envoltura { position: relative; z-index: 5; background: linear-gradient(to bottom, var(--deep) 50%, var(--surface) 50%); }
.buscador {
  background: #fff; border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 24px 50px -28px rgba(12, 58, 61, .55);
  display: grid; grid-template-columns: 1.4fr 1.4fr 1fr .8fr auto; gap: 14px; align-items: end;
}
.campo { min-width: 0; }
.campo label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.campo input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #f7f9f9; border: 1px solid var(--borde); border-radius: 10px; padding: 12px 14px; outline: none;
  transition: border-color .15s, background .15s;
}
.campo input::placeholder { color: #8a989a; }
.campo input:focus { border-color: var(--brand-logo); background: #fff; }
.buscador-boton { height: 48px; white-space: nowrap; }
.buscador-error { grid-column: 1 / -1; color: #c0392b; font-size: 13px; font-weight: 600; }
.buscador-error:empty { display: none; }

/* ---------- Secciones ---------- */
.seccion { padding: 96px 0; }
.seccion-gris { background: var(--surface); }
#por-que { padding-top: 88px; }

.beneficios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.beneficio { background: #fff; border-radius: var(--radio); padding: 26px; border: 1px solid var(--borde); }
.beneficio p { color: var(--muted); font-size: 16px; }
.icono { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }

/* Cómo funciona: ejemplo de fletero + texto + pasos */
.como-grilla { display: grid; grid-template-columns: .85fr 1fr 1fr; gap: 56px; align-items: center; }
.como-texto h2 { margin-bottom: 16px; }
.muestra {
  background: #fff; border: 1px solid var(--borde); border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 60px -36px rgba(12, 58, 61, .45);
}
.muestra-cabeza { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--borde); }
.muestra-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.muestra-nombre { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.muestra-ejemplo { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.muestra-sello { font-size: 10.5px; font-weight: 700; color: #2e7d4f; background: #eaf4ea; padding: 3px 8px; border-radius: 999px; }
.muestra-dato { font-size: 13px; color: var(--muted); }
.muestra-filas { padding: 14px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.muestra-filas p { display: flex; justify-content: space-between; font-size: 15px; }
.muestra-filas span { color: var(--muted); }
.muestra-boton { background: var(--brand); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 10px; }

.pasos { list-style: none; display: flex; flex-direction: column; gap: 30px; }
.pasos li { display: flex; gap: 18px; }
.paso-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pasos h3 { margin-bottom: 4px; }
.pasos p { color: var(--muted); font-size: 16px; }

.nota {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 64px;
  border: 1px solid var(--borde); border-left: 3px solid var(--brand-logo); border-radius: 12px; padding: 20px 22px;
}
.nota svg { color: var(--brand); margin-top: 2px; }
.nota p { font-size: 16px; color: var(--muted); }
.nota b { color: var(--ink); }

/* Para fleteros */
.fleteros-grilla { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.fleteros-grilla > div { min-width: 0; }
.lista { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; font-size: 17px; }
.lista li { display: flex; align-items: center; gap: 12px; }
.lista svg { width: 18px; height: 18px; color: var(--brand-logo); stroke-width: 2.6; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.fleteros-tarjeta { background: var(--deep); color: #fff; border-radius: 20px; padding: 36px; }
.fleteros-titulo { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.fleteros-tarjeta ol { list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; margin-bottom: 24px; }
.fleteros-tarjeta li { display: flex; align-items: flex-start; gap: 12px; color: #fff; }
.fleteros-tarjeta li span {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fleteros-chico { font-size: 13.5px; color: #fff; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* Preguntas */
.preguntas { display: flex; flex-direction: column; border-top: 1px solid var(--borde); }
details { border-bottom: 1px solid var(--borde); }
summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 22px 36px 22px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 16.5px; padding-bottom: 22px; max-width: 640px; }

/* Llamado final */
.final { padding: 0 0 96px; }
.final-caja {
  background: var(--brand); color: #fff; border-radius: 20px; padding: 34px 40px;
  display: flex; align-items: center; gap: 22px;
}
.final-icono {
  width: 56px; height: 56px; border-radius: 14px; background: var(--deep); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.final-icono svg { width: 26px; height: 26px; }
.final-texto { flex: 1; min-width: 0; }
.final h2 { margin-bottom: 2px; font-size: 28px; color: #fff; }
.final p { color: #fff; font-size: 17px; }

/* ---------- Pie ---------- */
.pie { background: var(--deep); color: #fff; padding: 48px 0 32px; }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pie-logo { height: 28px; width: auto; }
.pie-lema { color: #fff; font-weight: 700; font-size: 16px; }
.pie-lema span { color: #f5c518; }
.pie-abajo { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pie-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.pie-links a:hover { color: #fff; }
.pie-copy { font-size: 14px; }

h1, h2 { overflow-wrap: break-word; }

/* ---------- Tablet ---------- */
@media (max-width: 1040px) {
  h1 { font-size: 54px; }
  .portada-foto { width: 75%; }
  .buscador { grid-template-columns: 1fr 1fr; }
  .buscador-boton { grid-column: 1 / -1; }
  .beneficios { grid-template-columns: repeat(2, 1fr); }
  .como-grilla { grid-template-columns: 1fr 1fr; gap: 40px; }
  .como-grilla .muestra { grid-row: span 2; }
}

/* ---------- Tablet y celular: el menú pasa a ser desplegable (☰) para que no se amontone ---------- */
@media (max-width: 1040px) {
  .cabecera-fila { justify-content: space-between; }
  .menu-boton { display: block; }
  .menu-solo-cel { display: block; }
  .menu {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px 18px 18px;
  }
  .menu.abierto { display: flex; }
  .menu a:not(.btn) { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 16px; }
  .menu-cta { margin-top: 14px; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .contenedor { padding: 0 18px; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; margin-bottom: 24px; }
  .bajada { font-size: 17px; }
  .portada-grilla { padding-top: 40px; padding-bottom: 150px; }
  .portada-bajada { font-size: 17px; }
  /* En el celular la foto ocupa todo el ancho, abajo del texto y fundida hacia arriba */
  .portada-foto { width: 100%; background-position: 50% 70%; }
  .portada-foto::after {
    background:
      linear-gradient(to bottom, var(--deep) 0%, rgba(12, 58, 61, .85) 38%, rgba(12, 58, 61, .25) 72%, var(--deep) 100%);
  }
  .buscador { grid-template-columns: 1fr 1fr; padding: 18px; gap: 12px; }
  .campo-ancho { grid-column: 1 / -1; }
  .seccion { padding: 64px 0; }
  #por-que { padding-top: 64px; }
  .beneficios { grid-template-columns: 1fr; gap: 12px; }
  /* En el celular el ícono va a la izquierda del título, así las tarjetas quedan más bajas */
  .beneficio { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .beneficio .icono { grid-row: span 2; margin-bottom: 0; }
  .beneficio h3 { margin-bottom: 4px; }
  .como-grilla { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .como-grilla .muestra { grid-row: auto; order: 3; }
  .nota { margin-top: 40px; }
  .fleteros-grilla { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fleteros-tarjeta { padding: 26px; }
  .botones .btn { flex: 1; }
  .final { padding-bottom: 64px; }
  .final-caja { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .final .btn { width: 100%; }

  .cabecera-fila { height: 64px; justify-content: space-between; }
  .cabecera-logo img { height: 26px; }
  .cabecera-registro { display: none; }
  .cabecera-acciones { gap: 6px; }
  .menu { top: 64px; }
  .campo input { padding: 12px 10px; }
}

/* ---------- WhatsApp (el número se configura en web.js) ---------- */
.logo-wa { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.whatsapp-flotante {
  position: fixed; z-index: 60; right: 24px; bottom: 24px;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366 linear-gradient(#25d366, #25d366); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: transform .15s;
}
.whatsapp-flotante:hover { transform: scale(1.06); }
.whatsapp-flotante[hidden], .pie-whatsapp[hidden] { display: none; }
.bloqueado .whatsapp-flotante { display: none; }
.pie-whatsapp { display: inline-flex; align-items: center; gap: 6px; color: #7fe3a5; font-weight: 700; }
.pie-whatsapp .logo-wa { width: 17px; height: 17px; }
/* Instagram en el pie: el ícono con los colores de Instagram y el usuario */
.pie-instagram { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.pie-instagram .logo-ig { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.pie-instagram svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; }
.pie-instagram svg .punto { fill: #fff; stroke: none; }
/* Botón flotante "Soy fletero" (abajo a la izquierda, a la altura del de WhatsApp) → guía de registro.
   Es una IMAGEN (soy-fletero.png) a propósito: el "modo oscuro" de Samsung Internet cambia a la fuerza
   los colores de fondo y de texto (el amarillo quedaba marrón), pero no toca las imágenes. */
.fletero-flotante {
  position: fixed; z-index: 60; left: 24px; bottom: 31px; display: block; line-height: 0;
  border-radius: 12px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .15s;
}
.fletero-flotante img { display: block; height: 46px; width: auto; }
.fletero-flotante:hover { transform: scale(1.05); }
.bloqueado .fletero-flotante { display: none; }
/* Que el botón flotante no tape el final de la página */
.pie { padding-bottom: 96px; }

@media (max-width: 760px) {
  .whatsapp-flotante { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .whatsapp-flotante .logo-wa { width: 28px; height: 28px; }
  .fletero-flotante { left: 16px; bottom: 23px; }
  .fletero-flotante img { height: 42px; }
}

/* ---------- Direcciones con Google Maps (sugerencias y mapa del buscador) ---------- */
.campo { position: relative; }
.sugerencias {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; list-style: none;
  background: #fff; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 32px -16px rgba(12, 58, 61, .45);
}
.sugerencias[hidden] { display: none; }
.sugerencias li { padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--surface); }
.sugerencias li:last-child { border-bottom: 0; }
.sugerencias li:hover { background: var(--brand-light); }
.sugerencias b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.sugerencias small { display: block; font-size: 13px; color: var(--muted); }
.ruta { grid-column: 1 / -1; }
.ruta[hidden] { display: none; }
.ruta-mapa { height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--borde); background: var(--surface); }
.ruta-texto { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.ruta-texto b { color: var(--ink); }
@media (max-width: 760px) {
  .ruta-mapa { height: 200px; }
}
