/* MOVANTA · componentes.css · botones, tarjetas, formularios, cabecera, pie */

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton-primario { background: var(--naranja-500); color: #fff; box-shadow: 0 6px 16px rgba(234,88,12,.35); }
.boton-primario:hover { background: var(--naranja-600); color: #fff; }
.boton-azul { background: var(--azul-700); color: #fff; }
.boton-azul:hover { background: var(--azul-800); color: #fff; }
.boton-borde { background: transparent; color: var(--azul-700); border-color: var(--azul-700); }
.boton-borde:hover { background: var(--azul-50); color: var(--azul-800); }
.boton-block { width: 100%; }
.boton[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--gris-300);
}
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marca { display: flex; align-items: center; text-decoration: none; }
.marca img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--gris-700);
  font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.nav a:hover { background: var(--azul-50); color: var(--azul-800); }
.nav a[aria-current="page"] { color: var(--azul-700); background: var(--azul-100); }
.nav .boton { margin-left: 8px; padding: 10px 20px; color: #fff; }
.nav .boton:hover { background: var(--naranja-600); }
.nav .boton[aria-current="page"] { background: var(--naranja-600); color: #fff; }
.menu-boton {
  display: none; background: none; border: 2px solid var(--gris-300); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--azul-800);
}

@media (max-width: 1180px) {
  .menu-boton { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--gris-300);
    box-shadow: var(--sombra); display: none;
  }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px; }
  .nav .boton { margin: 8px 0 0; }
}

/* Tarjetas */
.tarjeta {
  background: #fff; border: 1px solid var(--gris-300); border-radius: var(--radio-lg);
  padding: 26px; box-shadow: var(--sombra-sm);
}
.icono {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--azul-100); color: var(--azul-700); margin-bottom: 16px;
}
.icono.naranja { background: var(--naranja-100); color: var(--naranja-600); }
.icono svg { width: 30px; height: 30px; }

/* Etiquetas y avisos */
.etiqueta {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--naranja-100); color: var(--naranja-600);
}
.aviso { padding: 14px 18px; border-radius: var(--radio); border: 1px solid; font-size: .98rem; }
.aviso-info { background: var(--azul-50); border-color: var(--azul-100); color: var(--azul-800); }
.aviso-ok { background: #e8f6ee; border-color: #bfe3cf; color: var(--ok); }
.aviso-error { background: #fdeceb; border-color: #f4c7c3; color: var(--error); }
.aviso[hidden] { display: none; }

/* Formularios */
.formulario { display: grid; gap: 16px; }
.campo label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .96rem; }
.campo input, .campo textarea, .campo select {
  width: 100%; padding: 13px 14px; font: inherit; color: inherit;
  border: 2px solid var(--gris-300); border-radius: 12px; background: #fff;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--azul-500); outline: none; }
.campo textarea { min-height: 140px; resize: vertical; }
.campo .ayuda { font-size: .88rem; color: var(--gris-500); margin-top: 4px; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--gris-300);
  border-radius: 12px; cursor: pointer; font-weight: 600;
}
.opcion:has(input:checked) { border-color: var(--azul-600); background: var(--azul-50); }
.honeypot { position: absolute; left: -9999px; }

/* Ver / ocultar contraseña */
.clave-envoltura { position: relative; }
.clave-envoltura input { padding-right: 92px; }
.ojo { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--azul-50); color: var(--azul-700); border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.ojo:hover { background: var(--azul-100); }

/* Sugerencias de direcciones */
.sug-envoltura { position: relative; }
.sug-lista { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 2px solid var(--azul-500); border-radius: 12px; box-shadow: var(--sombra); max-height: 280px; overflow: auto; }
.sug-lista li { padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--gris-100); }
.sug-lista li:hover, .sug-lista li.activa { background: var(--azul-50); }
.sug-lista .sug-pie { cursor: default; font-size: .8rem; color: var(--gris-500); background: var(--gris-100); border-bottom: 0; }

/* Preguntas frecuentes */
.faq details {
  border: 1px solid var(--gris-300); border-radius: var(--radio); background: #fff; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--azul-900); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--naranja-500); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .respuesta { padding: 0 22px 18px; color: var(--gris-700); }

/* Pie de página */
.pie { background: var(--azul-900); color: #f3dcc8; margin-top: 80px; }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { text-decoration: underline; color: #fff; }
.pie-grilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 32px; }
.pie h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: 8px; }
.pie .logo-pie { background: #fff; border-radius: 14px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.pie .logo-pie img { height: 46px; width: auto; }
.pie-legal {
  border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0 28px; font-size: .88rem; color: #aebbdc;
}
@media (max-width: 860px) { .pie-grilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pie-grilla { grid-template-columns: 1fr; } .opciones { grid-template-columns: 1fr; } }
