:root {
  --verde: #1b6b35;
  --verde-profundo: #0b5a3a;
  --verde-flecha: #5fa83a;
  --amarillo: #f5b800;
  --amarillo-suave: #fdf0c2;
  --texto: #1e2a23;
  --texto-oscuro: #0b2e1d;
  --gris: #4a5159;
  --fondo: #f7f8f4;
  --borde: #e3e6df;
  --borde-input: #b8bec4;
  --blanco: #ffffff;
  --error: #8d1d1d;
  --error-fondo: #fde8e8;
  --sombra-login: 0 8px 0 var(--verde-profundo);
  --contenedor: 1200px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--texto);
  background: var(--blanco);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--verde-profundo);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--contenedor);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--verde);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.brand--dark {
  color: var(--texto-oscuro);
  font-size: 24px;
}

.brand__logo {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-nav {
  display: none;
}

.site-nav a {
  color: var(--texto);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Language menu, as in the panel: globe pill with the code and a list with the active one checked. */
.lang-menu {
  position: relative;
  display: inline-flex;
}

.lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d9dde0;
  border-radius: 999px;
  background: var(--blanco);
  color: var(--verde);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-menu__toggle:hover {
  background: var(--fondo);
}

.lang-menu__toggle:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

.lang-menu__toggle svg {
  width: 18px;
  height: 18px;
}

.lang-menu__code {
  text-transform: uppercase;
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--blanco);
  box-shadow: 0 8px 24px rgb(11 46 29 / 12%);
  list-style: none;
}

.lang-menu__list[hidden] {
  display: none;
}

.lang-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--texto);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.lang-menu__item:hover,
.lang-menu__item:focus-visible {
  background: var(--fondo);
  outline: none;
}

.lang-menu__item svg {
  width: 14px;
  height: 14px;
  color: var(--verde);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--blanco);
  color: var(--texto-oscuro);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: '';
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--verde);
  color: var(--blanco);
}

.btn--primary:hover {
  background: var(--verde-profundo);
}

.btn--dark {
  background: var(--texto-oscuro);
  color: var(--blanco);
}

.btn--dark:hover {
  background: var(--verde-profundo);
}

.btn--line {
  border: 2px solid var(--verde);
  background: var(--blanco);
  color: var(--verde);
}

.btn--line:hover {
  background: var(--amarillo-suave);
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  text-decoration: none;
}

.icon-btn:hover {
  background: var(--verde-profundo);
}

.icon-btn--lg {
  flex-basis: 56px;
  width: 56px;
  height: 56px;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.hero {
  padding: 64px 0;
  background: var(--amarillo);
}

.hero__grid,
.split,
.app-banner,
.business {
  display: grid;
  gap: 24px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--verde-profundo);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 0 0 16px;
  color: var(--texto-oscuro);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero__lead,
.section p,
.cta p,
.app-banner p,
.business p {
  margin: 0;
  color: var(--texto);
  font-size: 16px;
}

.hero__lead {
  max-width: 38rem;
  color: var(--texto-oscuro);
  font-size: 18px;
}

.pickup {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 12px;
  border-radius: 20px;
  background: var(--blanco);
}

.pickup input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--borde-input);
  border-radius: 12px;
  color: var(--texto);
  font:
    500 16px Poppins,
    sans-serif;
}

/* Same focus as the admin forms: one 1px green line over the input border. */
.pickup input:focus,
.login-card input:focus {
  border-color: var(--verde);
  outline: 1px solid var(--verde);
  outline-offset: -1px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.hero__note {
  margin: 12px 0 0;
  color: var(--texto-oscuro);
  font-size: 14px;
  font-weight: 600;
}

/* Hero: team cut-out over a deep-green arch, anchored to the bottom edge of the hero. */
.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 40%, rgba(255, 255, 255, 0.28), transparent 45%);
  content: '';
  pointer-events: none;
}

.hero__grid {
  position: relative;
}

.hero-visual {
  position: relative;
  height: 440px;
  margin-top: 16px;
}

.hero-visual__arch {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(340px, 88%);
  height: 300px;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(120% 80% at 50% 0%, #1e7a40 0%, var(--verde) 40%, var(--texto-oscuro) 100%);
  transform: translateX(-50%);
}

.hero-visual__arch::after {
  position: absolute;
  inset: -14px -14px 0;
  border: 2px solid rgba(11, 90, 58, 0.35);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: '';
}

.hero-visual__dots {
  position: absolute;
  top: 120px;
  right: 0;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(var(--verde-profundo) 2px, transparent 2.5px);
  background-size: 16px 16px;
  opacity: 0.35;
}

.hero-visual__team {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: auto;
  max-width: none;
  height: 420px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
  transform: translateX(-50%);
}

.hero-chip {
  position: absolute;
  display: none;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--blanco);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.35);
  color: var(--texto-oscuro);
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}

.hero-chip strong,
.hero-chip small {
  display: block;
}

.hero-chip strong {
  font-size: 15px;
  font-weight: 600;
}

.hero-chip small {
  color: var(--gris);
  font-size: 13px;
}

.hero-chip__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--amarillo-suave);
  color: var(--verde);
}

.hero-chip__icon svg {
  width: 20px;
  height: 20px;
}

.hero-chip--top {
  top: 250px;
  left: -40px;
}

.hero-chip--side {
  right: -30px;
  bottom: 200px;
}

.hero-chip--whatsapp {
  bottom: 40px;
  left: -20px;
  background: var(--texto-oscuro);
  color: var(--blanco);
}

.hero-chip--whatsapp small {
  color: #cfe8d7;
}

.hero-chip--whatsapp .hero-chip__icon {
  background: #25d366;
  color: var(--blanco);
}

.hero-chip--whatsapp:hover {
  background: var(--verde-profundo);
}

section[id],
#contacto {
  scroll-margin-top: 76px;
}

.section {
  padding: 56px 0;
  background: var(--fondo);
}

.section--plain {
  background: var(--blanco);
}

.section h2,
.cta h2,
.app-banner h2,
.business h2 {
  margin: 0 0 12px;
  color: var(--texto-oscuro);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--borde);
  border-radius: 20px;
  background: var(--blanco);
  padding: 28px;
}

.card h3,
.step h3,
.business li {
  margin: 0;
}

.card h3,
.step h3 {
  margin-top: 16px;
  color: var(--texto-oscuro);
  font-size: 20px;
  font-weight: 700;
}

.card p,
.step p {
  margin-top: 8px;
  color: var(--gris);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--amarillo-suave);
  color: var(--verde-profundo);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.steps {
  counter-reset: none;
}

.step {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amarillo);
  color: var(--texto-oscuro);
  font-size: 18px;
  font-weight: 800;
}

.app-banner {
  align-items: center;
  padding: 28px;
  border: 1px solid var(--amarillo);
  border-radius: 20px;
  background: var(--amarillo-suave);
}

.business {
  padding: 32px 24px;
  border-radius: 28px;
  background: var(--verde-profundo);
  color: var(--blanco);
}

.business h2,
.business p,
.business li {
  color: var(--blanco);
}

.business ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business li {
  padding-left: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23F5B800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9l4 4 8-8'/%3E%3C/svg%3E")
    left center no-repeat;
  font-weight: 600;
}

.coverage p {
  margin: 0;
  color: var(--texto);
  font-size: 18px;
}

.cta {
  padding: 64px 0;
  background: var(--amarillo);
  text-align: center;
}

.cta h2 {
  font-size: 40px;
  font-weight: 800;
}

.cta .hero__actions {
  justify-content: center;
}

.site-footer {
  background: var(--verde-profundo);
  color: #e6f0ea;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e6f0ea;
}

.site-footer__grid {
  display: grid;
  gap: 28px;
  padding: 40px 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #e6f0ea;
  font-size: 16px;
  font-weight: 700;
}

.site-footer p,
.site-footer li {
  margin: 0;
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal {
  border-top: 1px solid rgb(255 255 255 / 18%);
  padding: 16px 0 24px;
  font-size: 14px;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal .legal-note {
  margin-top: 6px;
  opacity: 0.85;
}

.login-footer {
  margin-top: 24px;
  color: var(--texto-oscuro);
  font-size: 13px;
  text-align: center;
}

.login-footer .legal-note {
  margin: 0;
}

.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
  background: var(--amarillo);
}

.login-page .brand {
  margin-bottom: 20px;
}

.login-card {
  width: min(440px, 100%);
  max-width: 440px;
  min-width: 0;
  padding: 28px 20px;
  border-radius: 28px;
  background: var(--blanco);
  box-shadow: var(--sombra-login);
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--texto-oscuro);
  font-size: 28px;
  font-weight: 700;
}

.login-card > p,
.login-card__lead {
  margin: 0 0 24px;
  color: var(--gris);
}

.login-card__hint {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
  color: var(--gris);
  font-size: 14px;
  text-align: center;
}

.login-card [hidden] {
  display: none;
}

/* An app account (customer or courier) signed in to the panel: where to go instead. */
.app-only {
  outline: none;
}

.app-only__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--amarillo-suave);
  color: var(--verde-profundo);
}

.app-only__greeting {
  margin: 0 0 4px;
  color: var(--verde);
  font-weight: 600;
}

.app-only h1 {
  margin: 0 0 8px;
  color: var(--texto-oscuro);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.app-only .login-card__lead {
  margin-bottom: 12px;
}

.app-only__list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.app-only__list li {
  position: relative;
  padding-left: 26px;
  color: var(--texto);
}

.app-only__list li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 2.4px solid var(--verde);
  border-left: 2.4px solid var(--verde);
  transform: rotate(-45deg);
}

.app-only__actions {
  display: grid;
  gap: 12px;
}

.link-button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--verde-profundo);
  font:
    600 15px Poppins,
    sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

.login-card form {
  display: grid;
  gap: 16px;
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  color: var(--texto-oscuro);
  font-size: 14px;
  font-weight: 600;
}

.login-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--borde-input);
  border-radius: 12px;
  color: var(--texto);
  font:
    500 16px Poppins,
    sans-serif;
}

/* Con Keycloak: el motivo por el que no se completó el inicio de sesión y el botón para volver a intentarlo. */
.login-card__keycloak {
  display: grid;
  gap: 16px;
}

/* Contraseña con el botón de ver u ocultar dentro del campo, a la derecha. */
.password-field {
  position: relative;
}

.login-card .password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--gris);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--verde-profundo);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: -2px;
}

.password-toggle svg {
  width: 22px;
  height: 22px;
}

.field__row {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.field__row a,
.back-home {
  color: var(--verde-profundo);
  font-weight: 600;
}

.field__row a,
.back-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.back-home {
  display: block;
  margin: 16px 0 0;
  text-align: center;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--error-fondo);
  color: var(--error);
  font-weight: 600;
}

.form-error[hidden] {
  display: none;
}

.form-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e3f4e8;
  color: var(--verde-profundo);
  font-weight: 600;
}

.form-notice[hidden] {
  display: none;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--gris);
  font-size: 13px;
}

#reset-view form + .link-button {
  display: block;
  margin: 12px auto 0;
}

@media (max-width: 639px) {
  .site-header .brand {
    font-size: 16px;
  }
}

@media (min-width: 640px) {
  .pickup {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .login-card {
    padding: 40px 36px;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-header__login {
    display: inline-flex;
  }

  .site-nav .site-header__login {
    display: none;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero__grid > :first-child {
    padding-bottom: 64px;
  }

  .hero-visual {
    align-self: end;
    height: 620px;
    margin-top: 0;
  }

  .hero-visual__arch {
    width: 500px;
    height: 430px;
  }

  .hero-visual__team {
    height: 570px;
  }

  .hero-chip {
    display: flex;
  }

  .hero__grid,
  .business,
  .app-banner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .section h2,
  .app-banner h2,
  .business h2 {
    font-size: 36px;
  }

  .business {
    padding: 56px;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .site-header__login {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 8px 24px 16px;
    background: var(--blanco);
    border-bottom: 1px solid var(--borde);
  }

  .site-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .site-nav.is-open .site-header__login {
    display: inline-flex;
  }
}

/* Legal pages: privacy, terms and account deletion. */
.legal {
  padding: 40px 0 56px;
  background: var(--blanco);
}

.legal__body {
  max-width: 760px;
  color: var(--texto);
  font-size: 16px;
  line-height: 1.6;
}

.legal__body h1 {
  margin: 0 0 8px;
  color: var(--texto-oscuro);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal__body h2 {
  margin: 32px 0 8px;
  color: var(--texto-oscuro);
  font-size: 20px;
  font-weight: 700;
}

.legal__body p,
.legal__body ul,
.legal__body ol {
  margin: 0 0 12px;
}

.legal__body li + li {
  margin-top: 6px;
}

.legal__body a {
  color: var(--verde);
  font-weight: 600;
}

.legal__updated {
  color: var(--gris);
  font-size: 14px;
}
