/* TRANSCOVALL SL — Estilos globales */
:root {
  --blue: #1e6bb8;
  --blue-hover: #155a9e;
  --blue-dark: #1a2f4a;
  --steel: #5c6370;
  --gray-100: #f5f7fa;
  --gray-200: #e2e6ec;
  --white: #ffffff;
  --accent-line: #94a3b8;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(26, 47, 74, 0.08);
  --radius: 8px;
  --maxw: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Revelado suave global (marcado desde js/main.js) */
  html.js-motion .motion-reveal:not(section.hero.hero--photo) {
    opacity: 0;
    transform: translateY(0.875rem);
    transition:
      opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.js-motion .motion-reveal.is-visible:not(section.hero.hero--photo) {
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--blue-dark);
  background: var(--white);
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--blue-dark);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: var(--white);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.section--muted {
  background: var(--gray-100);
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--steel);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 14px rgba(11, 27, 45, 0.06);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 26px rgba(11, 27, 45, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--blue);
}

.logo small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0;
}

.nav-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  line-height: 0;
  background: var(--blue-dark);
  color: var(--white);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-toggle:hover {
  background: #243d5c;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 1.38rem;
  height: 1.05rem;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.22s ease,
    opacity 0.14s ease,
    top 0.22s ease,
    bottom 0.22s ease;
}

.nav-toggle__bar:nth-child(1) {
  top: 0;
}

.nav-toggle__bar:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle__bar:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  margin-top: -1px;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar {
    transition: none;
  }
}

.nav {
  display: none;
  flex-basis: 100%;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem 1.25rem;
  padding: 1rem 0 0;
  flex-wrap: nowrap;
}

.nav.is-open {
  display: flex;
}

.nav .btn {
  text-align: center;
  order: -1;
  margin-bottom: 0.35rem;
}

.nav a {
  color: var(--blue-dark);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn--primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

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

.btn--light:hover {
  background: var(--gray-100);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(62vh, 460px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #243d5c 45%, var(--blue) 100%);
  color: var(--white);
  padding: 2.25rem 0;
}

/* Opcional: añada clase .hero--photo y archivo assets/hero-bg.jpg para foto de fondo */
.hero--photo {
  background: url("../imagenes/furgo_hero.webp") center 62% / cover no-repeat;
}

@media (min-width: 768px) {
  .hero {
    min-height: min(70vh, 560px);
    padding: 3rem 0;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.hero p {
  max-width: 38rem;
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__micro {
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .nav.is-open {
    gap: 0;
    padding: 0;
    margin-top: 0.85rem;
    overflow: clip;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(218, 224, 234, 0.95);
    box-shadow:
      0 24px 52px rgba(15, 23, 42, 0.12),
      0 8px 20px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: nav-drawer-open 0.22s ease-out both;
  }

  @keyframes nav-drawer-open {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .nav.is-open {
      animation: none;
    }
  }

  .nav.is-open > a:not(.btn) {
    padding: 0.92rem 1.2rem;
    margin: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    color: var(--blue-dark);
  }

  .nav.is-open > a:not(.btn)[aria-current="page"] {
    background: rgba(37, 99, 186, 0.08);
    color: var(--blue);
    box-shadow: inset 4px 0 0 var(--blue);
  }

  .nav.is-open > a:not(.btn):hover {
    background: rgba(37, 99, 186, 0.06);
    color: var(--blue);
  }

  .nav.is-open > a:not(.btn):hover[aria-current="page"] {
    background: rgba(37, 99, 186, 0.1);
    color: var(--blue-dark);
  }

  .nav.is-open > a:not(.btn):active {
    background: rgba(37, 99, 186, 0.08);
  }

  .nav.is-open > .btn.btn--primary {
    align-self: stretch;
    justify-content: center;
    margin: 0.65rem 1rem 1.05rem;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    border-top: 8px solid var(--gray-100);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(25, 112, 194, 0.28);
  }
}

/* Grid cards */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Logos strip */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1rem 0;
}

.logos span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--steel);
  letter-spacing: 0.06em;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

th {
  background: var(--gray-100);
  font-family: var(--font-head);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Forms */
.form {
  max-width: 36rem;
  margin-inline: auto;
}

.form-row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid #1f76c2;
  outline-offset: 1px;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 600;
  min-height: 1.3em;
}

.form-status.success {
  color: #1b7f3a;
}

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

.btn.is-loading {
  opacity: 0.9;
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-layout__info .card {
  margin-bottom: 1rem;
}

.contact-layout__meta p {
  margin-bottom: 0.75rem;
}

.contact-map {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  display: block;
}

.contact-form-wrap .form {
  max-width: none;
}

.form-grid-2 {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.clientes-contexto {
  margin-top: 1.1rem;
  color: var(--steel);
}

.stats-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 1.1rem;
}

.stats-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.85rem 0.9rem;
}

.stats-card__value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
}

.stats-card__label {
  margin-top: 0.35rem;
  color: var(--steel);
  font-size: 0.9rem;
}

.sectors-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.sector-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sector-card:hover {
  background: #f2f7ff;
  transform: translateY(-2px);
}

.sector-card__icon {
  width: 28px;
  height: 28px;
  color: #1f5f9f;
}

.sector-card h3 {
  margin: 0.6rem 0 0.2rem;
  font-size: 1rem;
}

.coverage-map-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
}

.coverage-svg {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  display: block;
}

.zones-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.zone-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  background: #f8fbff;
}

.zone-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.form .checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--steel);
}

/* FAQ */
.faq details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--white);
}

.faq summary {
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

/* Blog list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}

.post-list a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.35rem;
}

.keyword-chips {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.keyword-chips li {
  background: #e8f1ff;
  color: #11365a;
  border: 1px solid #c8daef;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.post-grid {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.post-card {
  position: relative;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(13, 38, 76, 0.08);
}

.post-card::before {
  content: "";
  display: block;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #0d3f73 0%, #1f76c2 60%, #53a7ea 100%);
}

.post-card h3 {
  margin: 0.25rem 0 0.35rem;
  line-height: 1.3;
  font-size: 1.08rem;
}

.post-card p {
  margin: 0.65rem 0 0;
}

.post-card__tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #0f4a82;
  background: #eef5ff;
  border: 1px solid #d5e4f7;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

.post-card__cta {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
}

/* Article */
.article {
  max-width: 42rem;
}

.article h2 {
  margin-top: 2rem;
}

.article ul {
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: #a8c8e8;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-extra {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
}

.whatsapp-float {
  position: fixed;
}

.whatsapp-tooltip {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #182f4d;
  color: #fff;
  font-size: 0.76rem;
  padding: 0.32rem 0.55rem;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
}

.whatsapp-float {
  animation: pulse-wa 2.8s ease-in-out infinite;
}

@keyframes pulse-wa {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* Page title band */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), #243d5c);
  color: var(--white);
  padding: clamp(1.65rem, 5vw, 2.5rem) 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
  max-width: 40rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Resaltados: cuerpo en azul marca; titulares sobre fondo claro en azul oscuro */
.text-accent {
  color: var(--blue);
  font-weight: 600;
}

h1 .text-accent,
h2 .text-accent,
h3 .text-accent {
  color: var(--blue-dark);
  font-weight: 700;
}

/* Hero foto: titular completo en blanco con sombra para legibilidad sobre la imagen */
.hero .text-accent {
  color: var(--white);
  font-weight: 700;
  text-shadow:
    0 1px 2px rgba(15, 28, 46, 0.45),
    0 0 12px rgba(0, 0, 0, 0.25);
}

/* Cabeceras de página anchas oscuras: acento medio-oscuro con buen contraste */
.page-hero .text-accent {
  color: #6da6df;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(8, 16, 28, 0.6);
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    flex-basis: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .btn {
    text-align: inherit;
    order: 0;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 40% 60%;
  }
}

@media (min-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
