
/* =========================================
   VARIABLES Y COLORES
========================================= */
:root {
  --page-bg: #f9fafb;
  --card-bg: #f9fafb;
  --field-bg: #ffffff;
  --text-primary: #202a37;
  --text-secondary: #27313f;
  --text-muted: #929eb1;
  --border-color: #e0e5ed;
  --primary-blue: #1769ff;
  --button-disabled: #cbd0d9;
  --button-active: #1769ff;

  --font-main: "Inter", Arial, sans-serif;
  --card-radius: 21px;
  --field-radius: 12px;
}

/* =========================================
   HEADER PÚBLICO PROAUTEK
========================================= */
.pa-site-header {
  height: 72px;
}

.pa-navbar {
  position: fixed;
  z-index: 1080;
  top: 0;
  right: 0;
  left: 0;
  min-height: 72px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: #212121;
  font-family: "Inter", Arial, sans-serif;
}

.pa-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 16px;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
}

.pa-brand img {
  width: auto;
  height: 48px;
}

.pa-brand span {
  margin-left: 10px;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.pa-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.pa-nav-link,
.pa-dropdown-button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 26px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.pa-nav-link:hover,
.pa-nav-link:focus,
.pa-nav-link.active {
  color: #fff200;
}

.pa-dropdown {
  position: relative;
}

.pa-dropdown-button i {
  margin-left: 4px;
  font-size: .72em;
}

.pa-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 190px;
  padding: 8px 0;
  background: #212121;
  border: 1px solid rgba(255, 255, 255, .12);
}

.pa-dropdown.is-open .pa-dropdown-menu {
  display: block;
}

.pa-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: #fff;
  font-size: .94rem;
  text-decoration: none;
  white-space: nowrap;
}

.pa-dropdown-menu a:hover,
.pa-dropdown-menu a:focus {
  background: #0056b3;
  color: #fff200;
}

.pa-appointment,
.pa-login {
  margin-left: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.pa-appointment {
  padding: 8px 24px;
  border: 1px solid #0056b3;
  border-radius: 14px;
  background: #0056b3;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.pa-appointment:hover,
.pa-appointment:focus {
  border-color: #004494;
  background: #004494;
}

.pa-login {
  padding: 6px 16px;
  border: 1px solid #f8f9fa;
  border-radius: 14px;
  color: #f8f9fa;
  font-size: .9rem;
}

.pa-login:hover,
.pa-login:focus {
  background: #f8f9fa;
  color: #212121;
}

.pa-menu-button {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: transparent;
}

.pa-menu-button span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

/* =========================================
   RESET
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text-primary);
}

/* Reduce sólo el contenido del cotizador; el header conserva su tamaño original. */
main {
  zoom: 0.8;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* =========================================
   HERO / IMAGEN DE FONDO
========================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 691px;

  background-image:
    linear-gradient(
      90deg,
      rgba(0, 20, 40, 0.07),
      rgba(0, 20, 40, 0.04)
    ),
    url("https://images.pexels.com/photos/23319098/pexels-photo-23319098.jpeg");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero__container {
  position: relative;
  width: 100%;
  min-height: 691px;

  display: flex;
  align-items: flex-start;

  padding: 72px 28px 70px;
}

/* =========================================
   TARJETA DEL FORMULARIO
========================================= */
.vehicle-card {
  width: 929px;
  max-width: 100%;

  padding: 29px 27px 27px;

  background: var(--card-bg);
  border-radius: var(--card-radius);

  box-shadow: 0 12px 40px rgba(15, 31, 48, 0.035);
}

/* =========================================
   ENCABEZADO
========================================= */
.vehicle-card__header h1 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.55px;
}

.vehicle-card__header p {
  margin-top: 13px;

  color: var(--text-secondary);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.55px;
}

/* =========================================
   FORMULARIO
========================================= */
.vehicle-form {
  display: flex;
  flex-direction: column;
  gap: 22px;

  margin-top: 30px;
}

.form-field {
  width: 100%;
}

.select-wrapper {
  position: relative;
  width: 100%;
  height: 64px;

  background: var(--field-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--field-radius);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.select-wrapper:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.09);
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  display: block;
  width: 100%;
  height: 100%;

  padding: 0 75px 0 22px;

  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;

  color: #425064;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.45px;

  cursor: pointer;
}

.select-wrapper select:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: var(--text-muted);
}

.select-wrapper select:invalid {
  color: #425064;
}

.select-wrapper select option {
  color: var(--text-primary);
  background: #ffffff;
  font-size: 16px;
}

/* Flecha del desplegable */
.select-icon {
  position: absolute;

  top: 50%;
  right: 0;
  transform: translateY(-50%);

  width: 61px;
  height: 28px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-left: 1px solid var(--border-color);

  color: var(--primary-blue);
  font-size: 17px;

  pointer-events: none;
}

.select-icon i {
  font-weight: 600;
  transition: transform 0.2s ease;
}

.select-wrapper:focus-within .select-icon i {
  transform: rotate(180deg);
}

.select-wrapper select:disabled + .select-icon {
  color: var(--text-muted);
}

/* =========================================
   BOTÓN PRINCIPAL
========================================= */
.submit-button {
  width: 100%;
  height: 64px;

  margin-top: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 11px;

  background: var(--button-active);
  color: #ffffff;

  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.7px;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.submit-button:disabled {
  background: var(--button-disabled);
  color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
}

.submit-button:not(:disabled):hover {
  background: #0955df;
  box-shadow: 0 5px 15px rgba(23, 105, 255, 0.2);
}

.submit-button:not(:disabled):active {
  transform: translateY(1px);
}

.submit-button:focus-visible {
  outline: 3px solid #8db7ff;
  outline-offset: 3px;
}

.submit-button.is-loading {
  gap: 12px;
  background: #1769ff;
  cursor: wait;
}

.button-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin .7s linear infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

.form-status {
  min-height: 20px;
  color: #5d6a7d;
  font-size: 14px;
  line-height: 1.45;
}

.form-status--error {
  color: #b42318;
}

.vehicle-result {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #b7d2ff;
  border-radius: 11px;
  background: #edf4ff;
  color: #173b73;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* =========================================
   ESPACIO INFERIOR DE LA PÁGINA
========================================= */
.page-bottom {
  min-height: 85px;
  background: var(--page-bg);
}

/* =========================================
   TABLETS
========================================= */
@media (max-width: 1100px) {
  .pa-menu-button {
    display: block;
  }

  .pa-menu {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 72px);
    padding: 8px 0 16px;
    overflow-y: auto;
    background: #212121;
  }

  .pa-menu.is-open {
    display: block;
  }

  .pa-nav-link,
  .pa-dropdown-button {
    display: block;
    width: 100%;
    padding: 11px 15px;
    text-align: left;
  }

  .pa-dropdown-menu {
    position: static;
    margin: 0 15px 6px;
    border: 0;
  }

  .pa-appointment,
  .pa-login {
    display: block;
    margin: 7px 15px;
    text-align: center;
  }

  .hero {
    background-position: 58% center;
  }

  .vehicle-card {
    width: min(929px, 72vw);
  }

  .vehicle-card__header h1 {
    font-size: clamp(28px, 3.1vw, 40px);
  }

  .vehicle-card__header p {
    font-size: clamp(16px, 1.8vw, 21px);
  }
}

/* =========================================
   MÓVILES
========================================= */
@media (max-width: 767px) {
  .pa-site-header,
  .pa-navbar {
    min-height: 64px;
    height: 64px;
  }

  .pa-brand img {
    height: 42px;
  }

  .pa-brand span {
    font-size: 1.5rem;
  }

  .pa-menu {
    top: 64px;
    max-height: calc(100vh - 64px);
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;

    background-position: 62% center;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 25, 42, 0.25);
    pointer-events: none;
  }

  .hero__container {
    min-height: 100vh;
    min-height: 100svh;

    align-items: flex-start;
    justify-content: center;

    padding: 30px 16px 45px;
  }

  .vehicle-card {
    width: 100%;
    padding: 25px 20px 23px;
    border-radius: 18px;
  }

  .vehicle-card__header h1 {
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -1px;
  }

  .vehicle-card__header p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.25px;
  }

  .vehicle-form {
    gap: 16px;
    margin-top: 24px;
  }

  .select-wrapper {
    height: 58px;
    border-radius: 10px;
  }

  .select-wrapper select {
    font-size: 17px;
    padding-left: 18px;
    padding-right: 65px;
  }

  .select-icon {
    width: 53px;
    height: 26px;
    font-size: 15px;
  }

  .submit-button {
    height: 58px;
    margin-top: 20px;
    font-size: 17px;
    border-radius: 10px;
  }

  .page-bottom {
    min-height: 50px;
  }
}

/* =========================================
   MÓVILES MUY PEQUEÑOS
========================================= */
@media (max-width: 380px) {
  .hero__container {
    padding: 20px 12px 30px;
  }

  .vehicle-card {
    padding: 21px 23px 20px;
  }

  .vehicle-card__header h1 {
    font-size: 22px;
  }

  .vehicle-card__header p {
    font-size: 16px;
  }
}

/* Estilo del desplegable */
.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-color: transparent;
  color: #425064;
  transition: all 0.2s ease;
}

/* Opciones del menú */
.select-wrapper select option {
  background-color: #ffffff;
  color: #27313f;
  font-family: "Inter", sans-serif;
  font-size: 21px;
  font-weight: 500;
  padding: 14px 18px;
}

/* Elemento deshabilitado */
.select-wrapper select option:disabled {
  color: #929eb1;
}

/* Estilo cuando el usuario interactúa */
.select-wrapper:hover {
  border-color: #b5c5db;
}

.select-wrapper:focus-within {
  border-color: #1769ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.08);
}


/* =====================================
   AJUSTE COMPACTO DEL BANNER
===================================== */

/* Reducir altura del fondo */
.hero {
  min-height: 590px;
}

/* Reducir espacio superior e inferior */
.hero__container {
  min-height: 590px;
  padding: 40px 28px 35px;
}

/* Tarjeta más compacta */
.vehicle-card {
  padding: 25px 27px 24px;
}

/* Título ligeramente más pequeño */
.vehicle-card__header h1 {
  font-size: 22px;
}

/* Descripción */
.vehicle-card__header p {
  font-size: 19px;
  margin-top: 10px;
}

/* Reducir separación entre campos */
.vehicle-form {
  margin-top: 21px;
  gap: 16px;
}

/* Campos un poco más bajos */
.select-wrapper {
  height: 58px;
}

.select-wrapper select {
  font-size: 19px;
}

/* Botón más compacto */
.submit-button {
  height: 58px;
  margin-top: 20px;
  font-size: 19px;
}

/* Franja blanca inferior */
.page-bottom {
  min-height: 35px;
}

/* Mantener diseño responsive */
@media (max-width: 767px) {
  .hero,
  .hero__container {
    min-height: 0;
  }

  .hero__container {
    padding: 30px 16px;
  }

  .vehicle-card__header h1 {
    font-size: 22px;
  }

  .vehicle-card__header p {
    font-size: 10px;
  }

  .select-wrapper,
  .submit-button {
    height: 56px;
  }
}
