/* =============================================================
   TRANSBNC SPA — styles.css
   Fletes con palabra de familia.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy:      #12233D;
  --navy-2:    #1B3252;
  --navy-3:    #0D1A2E;
  --orange:    #E8722C;
  --orange-2:  #D45F1B;
  --cream:     #F5EFE6;
  --cream-2:   #ECE1CE;
  --cream-3:   #E4D6BC;
  --gold:      #C9922E;
  --paper:     #FFFFFF;

  --ink:       #12233D;
  --ink-soft:  rgba(18, 35, 61, 0.74);
  --ink-mute:  rgba(18, 35, 61, 0.52);
  --line:      rgba(18, 35, 61, 0.14);
  --line-strong: rgba(18, 35, 61, 0.26);

  --on-navy:       #F5EFE6;
  --on-navy-soft:  rgba(245, 239, 230, 0.74);
  --on-navy-mute:  rgba(245, 239, 230, 0.5);
  --on-navy-line:  rgba(245, 239, 230, 0.16);

  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: 1.5rem;
  --container-max: 1240px;
  --nav-h: 76px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-btn: 8px;
}

@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--display); font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--orange); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--navy); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500; font-size: .9rem;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Reveal on scroll — defensive: never invisible if JS is stale/absent */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* mandatory defensive rule */
.split-word { display: inline-block; opacity: 0; transform: translateY(100%); }
.split-word.is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-btn);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease-out); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--orange);
  color: var(--cream);
  box-shadow: 0 10px 24px -12px rgba(232, 114, 44, 0.55);
}
.btn-primary:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(232, 114, 44, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(18,35,61,0.05); transform: translateY(-2px); }

.hero .btn-ghost { color: var(--cream); border-color: var(--on-navy-line); }
.hero .btn-ghost:hover { border-color: var(--cream); background: rgba(245,239,230,0.1); }

.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }

/* =============================================================
   5. Cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.cursor.is-active .cursor-ring {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background: rgba(232, 114, 44, 0.12);
  border-color: var(--orange);
}
.cursor-label {
  position: fixed; top: 0; left: 0;
  transform: translate(20px, 14px);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  padding: .2rem .5rem;
  border-radius: var(--radius-btn);
  opacity: 0;
  transition: opacity .2s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-active .cursor-label { opacity: 1; }

@media (hover: none) {
  .cursor { display: none; }
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .page-credits .nav {
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -18px rgba(18,35,61,0.35);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cream);
  transition: color .35s var(--ease-out);
}
.nav.is-scrolled .nav-logo { color: var(--navy); }

/* Wordmark logo has fixed dark colors — unreadable over the dark hero photo.
   Show the plain text version while the nav is transparent, swap to the
   real logo image once the nav has a light background behind it. */
.nav-logo-img { display: none; height: 30px; width: auto; }
.nav.is-scrolled .nav-logo-text { display: none; }
.nav.is-scrolled .nav-logo-img { display: block; }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.9rem;
  font-size: .92rem;
  font-weight: 500;
}
.nav-links a { color: var(--cream); transition: color .3s var(--ease-out), opacity .3s; opacity: .88; }
.nav-links a:hover { opacity: 1; color: var(--orange); }
.nav-num {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--gold);
  margin-right: .15rem;
}
.nav-cta-mobile { display: none; }

.nav-cta { display: none; }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  z-index: 20;
}
.nav-burger span {
  display: block; height: 2px; width: 22px;
  background: var(--cream);
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out), background-color .35s var(--ease-out);
  margin-inline: auto;
}
.nav.is-scrolled .nav-burger span, .page-credits .nav-burger span { background: var(--navy); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-links {
    display: flex;
    position: fixed; inset: 0 0 0 auto;
    z-index: 600; /* por encima de cualquier iframe (ej. el video de Instagram) */
    isolation: isolate;
    width: min(84vw, 360px);
    height: 100vh; height: 100svh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
    font-size: 1.15rem;
  }
  .nav-links a { color: var(--on-navy-soft) !important; }
  .nav-links a:hover { color: var(--orange); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-cta-mobile { display: inline-flex; margin-top: .6rem; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  /* Cambio de color solo aplica a la barra fija de escritorio;
     en móvil el panel es un cajón navy propio, siempre con texto claro. */
  .nav.is-scrolled .nav-links a { color: var(--navy); }
  .nav.is-scrolled .nav-links a:hover { color: var(--orange); }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,26,46,0.72) 0%, rgba(13,26,46,0.58) 45%, rgba(13,26,46,0.82) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 760px;
  padding-block: 2rem;
}
.hero .kicker { color: var(--gold); margin-bottom: 1.1rem; display: block; }
.hero-title {
  font-size: clamp(3rem, 10vw, 6.4rem);
  color: var(--cream);
  text-wrap: balance;
  max-width: 14ch;
  margin-inline: auto;
}
.hero-dot { color: var(--orange); }
.hero-slogan {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--cream);
  margin-top: 1.1rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--on-navy-soft);
  margin-top: .7rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2.4rem;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: var(--on-navy-soft);
  animation: heroScrollBob 2.4s ease-in-out infinite;
}
@keyframes heroScrollBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* =============================================================
   8. Trust bar
   ============================================================= */
.trust-bar {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
  padding-block: 1rem;
}
.trust-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .6rem 1rem;
  text-align: center;
  font-size: .88rem;
  color: var(--ink-soft);
}
.trust-item strong { color: var(--navy); font-weight: 600; }
.trust-sep { color: var(--gold); }

/* =============================================================
   9. Sections (generic)
   ============================================================= */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--navy); color: var(--on-navy); }
.section-dark .section-lead { color: var(--on-navy-soft); }
.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.6rem, 6vw, 4.5rem);
}
.section-head-left { margin-inline: 0; text-align: left; }
.section-num {
  display: block;
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: .6rem;
}
.section-title { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: .9rem; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; }

/* Sub-heading used to separate two topics living inside one numbered section
   (e.g. "Nuestra flota" / "Dónde trabajamos" inside 02 Servicios y cobertura) */
.section-subtitle {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.3rem;
}
.section-divider {
  border: 0;
  border-top: 1px solid var(--line-strong);
  margin-block: clamp(2.6rem, 6vw, 4rem);
}

/* =============================================================
   10. Steps (01)
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--navy-2);
  border: 1px solid var(--on-navy-line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(0,0,0,0.45); border-color: rgba(232,114,44,0.45); }
.step-photo { position: relative; aspect-ratio: 4/3; }
.step-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transition: transform .5s var(--ease-out);
}
.step:hover .step-photo img { transform: scale(1.05); }
.step-num {
  position: absolute; top: .85rem; right: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-3);
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 600;
}
.step-body { padding: 1.6rem 1.7rem 1.9rem; }
.step-body h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--cream); }
.step-body p { color: var(--on-navy-soft); font-size: .95rem; }

/* =============================================================
   11. Services grid (02)
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -26px rgba(18,35,61,0.3);
  border-color: var(--orange);
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.service-vehicle {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.service-desc { color: var(--ink-soft); font-size: .93rem; margin-bottom: .9rem; }
.service-capacity {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--navy);
  border-top: 1px dashed var(--line-strong);
  padding-top: .7rem;
}

/* =============================================================
   12. Coverage (part of 02 Servicios y cobertura)
   ============================================================= */
.coverage-regions { margin-bottom: 2.4rem; }
.coverage-block-label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.chip-list {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-bottom: 1.4rem;
}
.chip-list li {
  font-family: var(--mono);
  font-size: .8rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.region-list li {
  border-color: var(--line-strong);
  background: rgba(18, 35, 61, 0.05);
  color: var(--navy);
  font-weight: 500;
}
.coverage-note { color: var(--ink-soft); font-size: .95rem; max-width: 46ch; }
.coverage-comunas .coverage-note { max-width: none; }

/* =============================================================
   13. Nosotros (04)
   ============================================================= */
.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.nosotros-text p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 60ch; }
.nosotros-text strong { color: var(--navy); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.fact dt {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.fact dd { font-size: 1rem; color: var(--navy); font-weight: 500; }
.fact-note { display: block; font-size: .78rem; font-weight: 400; color: var(--ink-mute); margin-top: .25rem; }

.testimonials-row {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: start;
}
.testimonials { min-width: 0; }
.clients { min-width: 0; }
.clients-label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.client-list li {
  background: rgba(245, 239, 230, 0.06);
  border-color: var(--on-navy-line);
  color: var(--on-navy-soft);
}
.testimonials-label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

.nosotros-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  order: -1; /* mobile: foto del camión antes que el texto y el video */
}
.nosotros-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* Dark-section overrides for "Quiénes somos" (elements with explicit light-mode colors) */
.section-dark .nosotros-text p { color: var(--on-navy-soft); }
.section-dark .nosotros-text strong { color: var(--cream); }
.section-dark .facts { border-top-color: var(--on-navy-line); }
.section-dark .fact dd { color: var(--cream); }
.section-dark .fact-note { color: var(--on-navy-mute); }
.section-dark .nosotros-figure { border-color: var(--on-navy-line); }

/* =============================================================
   14. Cotización (05)
   ============================================================= */
.cotizar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  min-width: 0;
}
.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  min-width: 0;
}
.form-row { margin-bottom: 1.2rem; min-width: 0; }
.form-row-split {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  margin-bottom: 0;
  min-width: 0;
}
.form-row-split > div { margin-bottom: 1.2rem; min-width: 0; }
.form-row input, .form-row select, .form-row textarea { min-width: 0; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.form-optional { text-transform: none; color: var(--ink-mute); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font: inherit; font-size: .98rem;
  color: var(--navy);
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--orange);
  background: var(--paper);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-submit { width: 100%; justify-content: center; margin-top: .4rem; }
.form-alt { text-align: center; margin-top: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.form-alt a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.contact-panel {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.contact-panel h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 1.3rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; flex-direction: column; gap: .25rem; border-bottom: 1px solid var(--on-navy-line); padding-bottom: 1.05rem; }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-list a { color: var(--cream); font-weight: 500; transition: color .25s var(--ease-out); }
.contact-list a:hover { color: var(--orange); }
.contact-list span:not(.contact-label) { color: var(--on-navy-soft); }

/* =============================================================
   15. Footer
   ============================================================= */
.footer {
  background: var(--navy-3);
  color: var(--on-navy);
  padding-block: clamp(3.2rem, 7vw, 5rem) 2rem;
}
.footer-logo {
  display: inline-block;
  background: var(--cream);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.3rem;
}
.footer-logo img { height: 84px; width: auto; display: block; }
.footer-slogan { font-family: var(--display); font-style: italic; color: var(--on-navy-soft); margin-top: .5rem; margin-bottom: 2.6rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.2rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--on-navy-line);
}
.footer-col h3 {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold); margin-bottom: .9rem; font-weight: 500;
}
.footer-col p { color: var(--on-navy-soft); margin-bottom: .5rem; font-size: .95rem; }
.footer-col a:hover { color: var(--orange); }
.footer-note { font-size: .82rem; color: var(--on-navy-mute); }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .82rem;
  color: var(--on-navy-mute);
}
.footer-legal a { color: var(--on-navy-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-top { font-family: var(--mono); color: var(--cream) !important; text-decoration: none !important; }
.footer-top:hover { color: var(--orange) !important; }
.footer-simple { padding-top: 2.5rem; }
.footer-simple .footer-legal { border-top: 1px solid var(--on-navy-line); padding-top: 1.6rem; }

/* =============================================================
   16. Credits page
   ============================================================= */
.credits-main { padding-block: calc(var(--nav-h) + 3rem) 4rem; max-width: 760px; }
.credits-main h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }
.credits-intro { color: var(--ink-soft); margin-bottom: 2rem; }
.credits-intro a { text-decoration: underline; text-underline-offset: 3px; }
.credits-list { display: flex; flex-direction: column; gap: 1.4rem; }
.credits-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-size: .92rem; color: var(--ink-soft); }
.credits-list a { text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }

/* Defensive: grid tracks default to min-width:auto (content-based),
   which lets a <select> with long option text force a track wider
   than its column — this collapses it back to the track's own size. */
.nosotros-layout > *, .footer-grid > *,
.steps > *, .services-grid > * { min-width: 0; }

/* =============================================================
   17. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .form-row-split { grid-template-columns: 1fr 1fr; }
  .form-row-split > div { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .hero-actions { gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-row { grid-template-columns: 1.15fr 1fr; }
}

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .nosotros-layout { grid-template-columns: 1.2fr .8fr; }
  .nosotros-figure { order: 0; } /* escritorio: vuelve al orden lado a lado normal */
  .cotizar-layout { grid-template-columns: 1.5fr 1fr; }
}

@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
  .container { padding-inline: 2rem; }
}

@media (min-width: 1600px) {
  :root { --container-max: 1360px; }
}

/* =============================================================
   18. Reduced-motion — ONLY intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
  /* Do NOT disable: reveal fades, hover states, card lifts, cursor */
}
