/* -------------------------------------------------------
   VARIABLES Y ESTILOS BASE
------------------------------------------------------- */

:root {
  --color-bg: #0a1a2f;           /* Azul profundo - fondo principal */
  --color-primary: #ffcc00;      /* Amarillo señalización - botones y acentos */
  --color-secondary: #2f353c;    /* Gris acero - secciones secundarias */
  --color-light: #ffffff;        /* Blanco - texto sobre fondo oscuro */
  --color-muted: #9ba3af;        /* Gris claro - texto secundario */
  --color-border: #374151;       /* Bordes suaves */

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 10px 25px rgba(0,0,0,0.25);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-light);
  line-height: 1.5;
}

.body-alt {
  background: radial-gradient(circle at top left, #1f2933, #050814 55%);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* -------------------------------------------------------
   NAVBAR / HEADER
------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 10, 20, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(10px);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* LOGO (ahora es texto dentro de un enlace) */
.logo {
  display: flex;
  align-items: center;
}

/* Enlace del logo: que NO parezca enlace */
.logo-link {
  all: unset;              /* elimina estilos por defecto del <a> */
  cursor: pointer;
  display: inline-block;
}

.logo-link h1 {
  all: unset;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-light);
  line-height: 1;
}

.nav-back-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-back-link:hover {
  color: var(--color-primary);
}

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(to bottom right, rgba(5, 10, 20, 0.85), rgba(5, 10, 20, 0.60)),
    url("../assets/img/hero-truck.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 204, 0, 0.12), transparent 55%);
}

.hero-content {
  position: relative;
  padding: 65px 16px 85px;
}

.hero-text {
  max-width: 560px;
}

/* Hero centrado y panorámico */
.hero-centered {
  text-align: center;
  margin: 0 auto;
}

.hero-wide {
  max-width: 80%; /* 70–80% del ancho para efecto panorámico */
}

.hero-centered h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  margin-bottom: 18px;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.hero-centered p {
  font-size: 1.1rem;
  max-width: 70%;
  margin: 0 auto 24px;
  color: var(--color-light);
  line-height: 1.6;
}

/* BOTONES HERO – BASE */
.hero-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: stretch;
}

/* Botones hero centrados */
.hero-buttons-centered {
  justify-content: center;
  margin-top: 40px;
  gap: 42px;
}

/* Botones grandes del hero */
.btn-hero {
  padding: 20px 40px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 18px;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------
   BOTONES GENERALES
------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s ease;
  font-size: 1rem;
}

.btn-large {
  padding: 18px 32px;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.btn-secondary:hover {
  background-color: #3b4148;
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.full-width {
  width: 100%;
}

/* -------------------------------------------------------
   SECCIONES GENERALES
------------------------------------------------------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: radial-gradient(circle at top, #111827, #020617 60%);
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 28px;
  text-align: center;
}

/* -------------------------------------------------------
   BLOQUE CÓMO FUNCIONA + BENEFICIOS
------------------------------------------------------- */

.process-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.process-item {
  text-align: center;
}

.process-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background-color: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.process-label {
  font-size: 0.98rem;
  color: var(--color-light);
}

/* Beneficios empresas / camioneros */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  background-color: rgba(15, 23, 42, 0.98);
  border-radius: 16px;
  padding: 20px 22px 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.benefit-card ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.benefit-card li {
  font-size: 0.96rem;
  color: var(--color-muted);
  margin-bottom: 10px;
  position: relative;
  padding-left: 34px;
  line-height: 1.3;
}

.benefit-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* -------------------------------------------------------
   BLOQUES CONDUCTOR / EMPRESA
------------------------------------------------------- */

.two-column {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

.column-box {
  background-color: rgba(15,23,42,0.98);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--shadow-soft);
}

.column-box h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.column-box p {
  color: var(--color-muted);
  margin-bottom: 16px;
}

/* -------------------------------------------------------
   FORMULARIOS
------------------------------------------------------- */

.form-page {
  padding: 40px 0 60px;
}

.form-container {
  max-width: 520px;
  margin-top: 24px;
  padding: 24px;
  background-color: rgba(15,23,42,0.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.4);
}

.form-container h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
}

.form-description {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Asegura label arriba y campo debajo (textarea incluido) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.93rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background-color: #020617;
  color: var(--color-light);
}

.form-group textarea {
  resize: vertical;
}

/* Checkboxes zonas */
.checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Grupo anidado de comunidades autonómicas */
.form-group.nested {
  margin-top: 4px;
}

#community_group {
  display: none; /* se muestra solo si marcan Nacional (JS) */
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */

.footer {
  background-color: #020617;
  border-top: 1px solid rgba(148,163,184,0.35);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-primary);
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

@media (max-width: 900px) {
  .navbar-cta {
    display: none;
  }

  .process-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-wide {
    max-width: 90%;
  }

  .hero-centered h1 {
    max-width: 100%;
  }

  .hero-centered p {
    max-width: 90%;
  }
}

@media (max-width: 640px) {
  .hero-centered h1 {
    font-size: 2.2rem;
  }

  .hero-centered p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .btn-hero {
    width: 100%;
    max-width: 320px;
  }

  .process-icons {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
