/* ============================================
   FACUNDO VALLEJO - SEGUROS DE CAMIONES
   Sistema de diseño
   ============================================ */

:root {
  /* Color */
  --navy: #0F2540;
  --navy-light: #16345A;
  --road-blue: #1C6FD9;
  --road-blue-dark: #1558AE;
  --route-orange: #E8852C;
  --route-orange-dark: #C76B1A;
  --slate: #5B6B7D;
  --slate-light: #8B97A5;
  --off-white: #F7F8FA;
  --white: #FFFFFF;
  --border: #E2E6EC;
  --success: #1E8E5A;

  /* Tipografía */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espaciado */
  --container-width: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--route-orange);
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro p {
  color: var(--slate);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* Línea de ruta - elemento distintivo */
.route-line {
  height: 3px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    var(--route-orange) 0px,
    var(--route-orange) 18px,
    transparent 18px,
    transparent 34px
  );
  opacity: 0.85;
}

.route-line--vertical {
  width: 3px;
  height: 100%;
  background-image: repeating-linear-gradient(
    180deg,
    var(--route-orange) 0px,
    var(--route-orange) 18px,
    transparent 18px,
    transparent 34px
  );
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text h2 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}

.main-nav a.active {
  color: var(--road-blue);
}

.main-nav a:not(.active):hover {
  color: var(--road-blue);
}

.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a.nav-cta:hover {
  background: var(--road-blue-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--road-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--road-blue-dark);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--road-blue);
  color: var(--road-blue);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1ebd5a;
}

.btn-block {
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--navy);
  color: var(--off-white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-brand-mark img {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.footer-brand-mark h4 {
  margin: 0;
}

.footer-brand p {
  color: var(--slate-light);
  font-size: 0.88rem;
  margin-top: 6px;
  line-height: 1.5;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul li a,
.footer-grid ul li {
  color: var(--slate-light);
  font-size: 0.9rem;
}

.footer-grid ul li a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--road-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--slate-light);
}

/* ============================================
   UTILIDADES RESPONSIVE
   ============================================ */

@media (max-width: 860px) {
  .main-nav { 
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Focus visible para accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--road-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
