/* TRANSCOVALL 86 — Extensiones v3
   Añade: nav con dropdowns, hero por tipo de página, grids de servicios/provincias,
   FAQ accordion, bloques CTA full-width, página de blog, footer de 4 columnas.
   No reemplaza nada de styles.css ni web2-extras.css: solo añade. */

/* ---------- Header navy para páginas internas (todas menos la home) ---------- */
body:not(.home-hero) .site-header {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body:not(.home-hero) .site-header.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

@media (min-width: 901px) {
  body:not(.home-hero) .site-header .nav__link:not(.nav__link--btn) {
    color: rgba(255, 255, 255, 0.92);
  }

  body:not(.home-hero) .site-header .nav__link:not(.nav__link--btn):hover,
  body:not(.home-hero) .site-header .nav__link:not(.nav__link--btn)[aria-current="page"],
  body:not(.home-hero) .site-header .nav__link:not(.nav__link--btn)[aria-current="true"] {
    color: var(--white);
  }

  body:not(.home-hero) .site-header .nav__link .nav__chevron {
    color: inherit;
  }

  body:not(.home-hero) .site-header .nav__link:not(.nav__link--btn):focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
  }
}

/* Toggle del menú móvil: blanco translúcido sobre el header navy */
@media (max-width: 900px) {
  body:not(.home-hero) .nav-toggle {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  body:not(.home-hero) .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
  }

  body:not(.home-hero) .nav-toggle[aria-expanded="true"] {
    background: var(--white);
    color: var(--blue-dark);
    border-color: var(--white);
  }
}

/* ---------- Nav sobre el hero de la home (coherente con .nav a:not(.btn)) ---------- */
@media (min-width: 901px) {
  body.home-hero:not(.header-scrolled) .site-header .nav__link:not(.nav__link--btn) {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }

  body.home-hero:not(.header-scrolled) .site-header .nav__link:not(.nav__link--btn):hover,
  body.home-hero:not(.header-scrolled) .site-header .nav__link:not(.nav__link--btn)[aria-current="page"],
  body.home-hero:not(.header-scrolled) .site-header .nav__link:not(.nav__link--btn)[aria-current="true"] {
    color: var(--white);
    text-decoration: none;
  }

  body.home-hero.header-scrolled .site-header .nav__link:not(.nav__link--btn) {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
  }

  body.home-hero.header-scrolled .site-header .nav__link:not(.nav__link--btn):hover,
  body.home-hero.header-scrolled .site-header .nav__link:not(.nav__link--btn)[aria-current="page"],
  body.home-hero.header-scrolled .site-header .nav__link:not(.nav__link--btn)[aria-current="true"] {
    color: var(--white);
    text-decoration: none;
  }

  body.home-hero .site-header .nav__link:not(.nav__link--btn):focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
  }

  /* Chevron sigue el color del enlace */
  body.home-hero .site-header .nav__link .nav__chevron {
    color: inherit;
  }

  /* Los enlaces DENTRO del dropdown se mantienen oscuros (panel blanco) */
  body.home-hero .site-header .nav .nav__sub a,
  body.home-hero.header-scrolled .site-header .nav .nav__sub a {
    color: var(--blue-dark);
    text-shadow: none;
  }

  body.home-hero .site-header .nav .nav__sub a:hover,
  body.home-hero .site-header .nav .nav__sub a[aria-current="page"] {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.06);
  }
}

/* En móvil el panel sigue siendo claro (hereda estilos base) */

/* ---------- Navegación con dropdowns ---------- */
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav__item {
  position: relative;
  border-top: 1px solid rgba(218, 224, 234, 0.6);
}

.nav__item:first-child {
  border-top: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.2rem;
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.01em;
}

.nav__link:hover,
.nav__link[aria-current="page"],
.nav__link[aria-current="true"] {
  color: var(--blue);
}

.nav__link--btn {
  justify-content: center;
  margin: 0.75rem 1rem 1rem;
  padding: 0.72rem 1.4rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.nav .nav__link.nav__link--btn,
.nav .nav__link.nav__link--btn:hover,
.nav .nav__link.nav__link--btn:focus,
.nav .nav__link.nav__link--btn[aria-current="page"],
.nav .nav__link.nav__link--btn[aria-current="true"] {
  color: var(--white);
}

.nav .nav__link.nav__link--btn:hover,
.nav .nav__link.nav__link--btn:focus {
  background: var(--blue-hover);
}

.nav__chevron {
  width: 0.72rem;
  height: 0.72rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.6rem;
}

.nav__link[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

.nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--gray-100);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.nav__item.is-open .nav__sub,
.nav__link[aria-expanded="true"] + .nav__sub {
  max-height: 70vh;
  overflow-y: auto;
}

.nav__sub a {
  display: block;
  padding: 0.65rem 1.6rem;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-top: 1px solid rgba(222, 227, 236, 0.6);
}

.nav__sub a:first-child {
  border-top: 0;
}

.nav__sub a:hover,
.nav__sub a[aria-current="page"] {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
}

.nav__sub-section {
  padding: 0.9rem 1.6rem 0.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
}

@media (min-width: 901px) {
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
    width: auto;
  }

  .nav__item {
    border-top: 0;
  }

  .nav__link {
    padding: 0.6rem 0.95rem;
    width: auto;
    font-size: 0.95rem;
  }

  .nav__link--btn {
    margin: 0 0 0 0.5rem;
    padding: 0.6rem 1.3rem;
  }

  /* Panel único bajo la barra: solo uno abierto a la vez (lo controla nav-dropdowns.js) */
  .nav {
    position: relative;
  }

  .nav__item {
    position: static;
  }

  .nav__sub {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: auto;
    width: max(100%, 600px);
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem 0.5rem;
    padding: 0.9rem;
    background-color: #ffffff !important;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(11, 24, 41, 0.18);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  }

  /* Puente invisible entre el botón y el panel para no perder el hover */
  .nav__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.7rem;
  }

  .nav__item.is-open > .nav__sub,
  .nav__link[aria-expanded="true"] + .nav__sub {
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
  }

  .nav__sub a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-top: 0;
    border-radius: 8px;
    font-size: 0.92rem;
    background-color: transparent;
    color: var(--blue-dark) !important;
    text-shadow: none !important;
  }

  .nav__sub a:hover,
  .nav__sub a[aria-current="page"] {
    color: var(--blue) !important;
    background-color: rgba(37, 99, 235, 0.08);
  }

  .nav__sub-section {
    grid-column: 1 / -1;
    padding: 0.75rem 0.8rem 0.25rem;
    color: var(--steel) !important;
    text-shadow: none !important;
  }

  /* Zonas: tres columnas, enlace al mapa destacado arriba */
  .nav__sub--mega {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: max(100%, 640px);
  }

  .nav__sub--mega > li:first-child {
    grid-column: 1 / -1;
  }

  .nav__sub--mega > li:first-child a {
    font-weight: 600;
    color: var(--blue) !important;
    background-color: rgba(37, 99, 235, 0.06);
  }

  @media (prefers-reduced-motion: reduce) {
    .nav__sub,
    .nav__item.is-open > .nav__sub {
      transform: none;
      transition: none;
    }
  }
}

/* ---------- Page hero (secundaria) ---------- */
.page-hero {
  background:
    linear-gradient(135deg, rgba(11, 24, 41, 0.92) 0%, rgba(30, 55, 89, 0.82) 55%, rgba(37, 99, 235, 0.72) 100%),
    url("/imagenes/white-truck-crossing-bridge-sunset-urban-logistics-motion.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 2.8rem 0 2.2rem;
  position: relative;
  overflow: hidden;
}

/* Soft overlay for depth, no hard circles */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 24, 41, 0.35) 100%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.6rem);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 0 1rem;
}

.page-hero__lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  max-width: 48rem;
  margin: 0 0 1.5rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-accent {
  color: var(--blue-vivid);
}

/* ---------- Trust strip (franja de confianza) ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(11, 24, 41, 0.03);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.5rem;
  padding: 1.1rem 0;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-dark);
  text-align: center;
  list-style: none;
}

.trust-strip__inner li {
  list-style: none;
  position: relative;
  padding-left: 1.6rem;
}

.trust-strip__inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5l3 3 6-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 70% 70%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Page figure (foto grande por página) ---------- */
.page-figure {
  margin: 2rem 0 0;
}

.page-figure__wrap {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 42px rgba(11, 24, 41, 0.12);
  aspect-ratio: 16 / 7;
  background: var(--gray-100);
}

.page-figure__wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 600px) {
  .page-figure {
    margin-top: 1.5rem;
  }
  .page-figure__wrap {
    border-radius: 12px;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Prose (contenido rico de las páginas) ---------- */
.prose {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.prose--wide {
  max-width: 54rem;
}

.prose > h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
  color: var(--blue-dark);
  margin: 3rem 0 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-bottom: 0.6rem;
  position: relative;
}

.prose > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--blue-dark);
  margin: 1.75rem 0 0.6rem;
  letter-spacing: -0.005em;
}

.prose p {
  margin: 0 0 1.1rem;
  color: #1f2a3c;
  font-size: 1.03rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.prose ul li,
.prose ol li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.prose ul li::marker {
  color: var(--blue);
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

.prose a:hover {
  color: var(--blue-hover);
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--blue-dark);
  font-weight: 700;
}

/* First paragraph of prose gets a slight emphasis */
.prose > h2:first-child + p,
.prose > p:first-child {
  font-size: 1.1rem;
  color: #0f1a2d;
}

/* ---------- Inline CTA within prose ---------- */
.inline-cta {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-start;
}

.inline-cta .hero__actions,
.inline-cta .page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}

.inline-cta__text {
  flex: 1 1 220px;
  color: var(--blue-dark);
  font-weight: 500;
}

/* ---------- FAQ (details/summary accordion) ---------- */
.faq {
  margin-top: 1.5rem;
  max-width: 52rem;
}

/* Anula estilos antiguos de .faq details (styles.css / web2-extras.css):
   borde izquierdo transparente que "cortaba" la tarjeta y padding doble */
.faq details.faq__item {
  padding: 0;
  border: 1px solid var(--gray-200);
}

.faq details.faq__item:hover {
  border-color: #c7d2e4;
}

.faq details.faq__item[open] {
  border-color: var(--blue);
}

.faq details.faq__item[open] summary {
  margin-bottom: 0;
}

.faq__item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.faq__item:hover {
  border-color: #c7d2e4;
}

.faq__item[open] {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 1.03rem;
  line-height: 1.4;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 1.4rem;
  height: 1.4rem;
  transform: translateY(-50%);
  background: var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 8h8M8 4v8' stroke='white' stroke-width='2' stroke-linecap='round'/></svg>");
  background-size: 60% 60%;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background-color: var(--blue-dark);
}

.faq__item summary:hover {
  color: var(--blue);
}

.faq__answer {
  padding: 0 1.3rem 1.1rem;
  color: #1f2a3c;
  line-height: 1.65;
}

.faq__answer p {
  margin: 0 0 0.75rem;
}

.faq__answer a {
  color: var(--blue);
  text-decoration: underline;
}

/* ---------- Service / province grid cards ---------- */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.pill-card {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--blue-dark);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pill-card:hover {
  border-color: var(--blue);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 24, 41, 0.08);
  transform: translateY(-2px);
}

.pill-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.pill-card__meta {
  color: var(--steel);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Zonas: mapa + comunidades ---------- */
.zonas-hero__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-right: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.zonas-hero__stat strong {
  font-size: 1.6rem;
  font-family: var(--font-head);
  color: var(--white);
}

.community-section {
  margin-top: 2.5rem;
}

.community-section h3 {
  font-family: var(--font-head);
  color: var(--blue-dark);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.community-section h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
}

/* ---------- Service grid (home) ---------- */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  margin: 1.5rem 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-card:hover {
  border-color: var(--blue);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(11, 24, 41, 0.1);
  transform: translateY(-3px);
}

.service-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.08rem;
  margin: 0 0 0.5rem;
}

.service-card__text {
  margin: 0 0 1rem;
  color: var(--steel);
  flex: 1;
}

.service-card__cta {
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.service-card__cta::after {
  content: " →";
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(11, 24, 41, 0.94) 0%, rgba(37, 99, 235, 0.86) 100%),
    url("/imagenes/dos_camiones.webp") center/cover no-repeat;
  color: var(--white);
  padding: 3.2rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-vivid), var(--blue));
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-band__inner {
    grid-template-columns: 1.4fr auto;
    gap: 2.5rem;
  }
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 0.95rem + 1.4vw, 1.95rem);
  line-height: 1.2;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.5rem;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.cta-band ul {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.cta-band ul li {
  margin-bottom: 0.3rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-band__actions .btn {
  min-width: 180px;
}

/* ---------- Blog ---------- */
.posts-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(11, 24, 41, 0.1);
}

.post-card__body {
  padding: 1.3rem 1.4rem 1.2rem;
}

.post-card__kicker {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.post-card__title {
  font-family: var(--font-head);
  color: var(--blue-dark);
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.post-card__excerpt {
  margin: 0;
  color: var(--steel);
  font-size: 0.95rem;
}

/* Prose for blog post */
.post-body {
  max-width: 42rem;
  margin: 0 auto;
}

.post-body h2 {
  margin-top: 2.25rem;
}

/* ---------- WordPress-style blog post ---------- */
.wp-post-hero {
  position: relative;
  min-height: clamp(320px, 42vw, 480px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
  margin: 0;
  overflow: hidden;
}

.wp-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 24, 41, 0.4) 0%, rgba(11, 24, 41, 0.88) 100%);
}

.wp-post-hero__inner {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.4rem;
  width: 100%;
}

.wp-post-hero__category {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-decoration: none;
}

.wp-post-hero__category:hover {
  background: var(--blue-hover);
  color: var(--white);
  text-decoration: none;
}

.wp-post-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 1rem + 2.6vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  max-width: 32ch;
}

.wp-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-post-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wp-post-meta svg {
  width: 1rem;
  height: 1rem;
  color: var(--blue-vivid);
}

/* Breadcrumbs inside WP hero */
.wp-post-hero .breadcrumbs {
  margin-bottom: 0.9rem;
}

/* Article wrapper (layout 2 col on wide screens: article + sidebar) */
.wp-article-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0 1rem;
}

@media (min-width: 992px) {
  .wp-article-wrap {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
  }
}

.wp-article {
  min-width: 0;
  max-width: 46rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .wp-article {
    margin: 0;
  }
}

/* Article intro paragraph (lead) */
.wp-article > .prose > p:first-of-type,
.wp-article .prose > p:first-child {
  font-size: 1.15rem;
  color: var(--blue-dark);
  line-height: 1.6;
  font-weight: 500;
}

/* Drop cap on first paragraph (WP touch) */
.wp-article .prose > p:first-child::first-letter {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  margin: 0.4rem 0.5rem 0 0;
  color: var(--blue);
}

/* Inline image inside article */
.wp-figure {
  margin: 2rem -0.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(11, 24, 41, 0.1);
  background: var(--gray-100);
}

.wp-figure img {
  width: 100%;
  display: block;
  height: auto;
}

.wp-figure figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--steel);
  background: #f8fafc;
  font-style: italic;
  text-align: center;
}

/* Blockquote (pull-quote WP style) */
.wp-article blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--blue);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--blue-dark);
}

.wp-article blockquote p {
  margin: 0;
}

/* Share buttons */
.wp-share {
  margin: 2.5rem 0 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.wp-share__label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0 0.5rem 0 0;
  font-size: 0.9rem;
}

.wp-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--blue-dark);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wp-share a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.wp-share svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Author card */
.wp-author {
  margin: 2rem 0;
  padding: 1.3rem 1.4rem;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.wp-author__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.wp-author__name {
  font-family: var(--font-head);
  color: var(--blue-dark);
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 1rem;
}

.wp-author__bio {
  margin: 0;
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Related posts */
.wp-related {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.wp-related h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 0 0 1.3rem;
  color: var(--blue-dark);
}

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

@media (min-width: 600px) {
  .wp-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wp-related__card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wp-related__card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11, 24, 41, 0.1);
  border-color: var(--blue);
}

.wp-related__img {
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  background-size: cover;
  background-position: center;
}

.wp-related__body {
  padding: 0.9rem 1rem 1rem;
}

.wp-related__kicker {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.wp-related__title {
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--blue-dark);
  margin: 0;
  line-height: 1.35;
}

/* Table of contents (sidebar) */
.wp-toc {
  position: sticky;
  top: 90px;
  padding: 1.3rem 1.4rem;
  background: var(--gray-100);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.wp-toc h3 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin: 0 0 0.8rem;
}

.wp-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc-counter;
}

.wp-toc li {
  counter-increment: toc-counter;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.wp-toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.wp-toc a {
  color: var(--blue-dark);
  text-decoration: none;
}

.wp-toc a:hover {
  color: var(--blue);
}

/* Hide sidebar on narrow screens where it stacks awkwardly */
@media (max-width: 991px) {
  .wp-sidebar {
    display: none;
  }
}

/* ---------- Blog hub (listing) estilo WP magazine ---------- */
.blog-hub {
  padding: 3rem 0 4rem;
}

.blog-hub__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  line-height: 1;
}

.blog-hub__subtitle {
  color: var(--steel);
  font-size: 1.08rem;
  margin: 0 0 2rem;
  max-width: 48rem;
}

/* Pills de filtro */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--white);
  color: var(--blue-dark);
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.blog-filter:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.blog-filter[aria-pressed="true"],
.blog-filter.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Grid de posts */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Card de post */
.post-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.post-tile:hover {
  text-decoration: none;
  transform: translateY(-4px);
}

.post-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gray-100) center/cover no-repeat;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(11, 24, 41, 0.1);
}

.post-tile:hover .post-tile__media {
  box-shadow: 0 18px 36px rgba(11, 24, 41, 0.16);
}

.post-tile__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue);
  color: var(--white);
  padding: 0.4rem 0.95rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.post-tile__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 1rem 0 0.4rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.post-tile:hover .post-tile__title {
  color: var(--blue);
}

.post-tile__excerpt {
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.post-tile__meta {
  display: flex;
  gap: 0.9rem;
  margin: 0.6rem 0 0;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Empty state */
.blog-grid[data-empty="true"]::after {
  content: "No hay publicaciones en esta categoría.";
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--steel);
  font-style: italic;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer__col h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__col ul.site-footer__col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.9rem;
}

.site-footer__logo {
  display: inline-block;
  margin: 0 0 1.1rem;
  line-height: 0;
  background: transparent;
  padding: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-footer__logo:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.site-footer__logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
}

.site-footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 0.6rem;
  display: block;
}

.site-footer__about {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Breadcrumb refinement ---------- */
.breadcrumbs--inhero {
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.breadcrumbs--inhero ol,
.breadcrumbs--inhero a,
.breadcrumbs--inhero li {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs--inhero a:hover {
  color: var(--white);
}

.breadcrumbs--inhero [aria-current="page"] {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs--inhero li + li::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Hero stats row ---------- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats__item {
  color: rgba(255, 255, 255, 0.88);
}

.hero-stats__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.hero-stats__label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Table in prose (fleet specs, pricing) ---------- */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose table th,
.prose table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.prose table th {
  background: var(--gray-100);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-dark);
}

/* ---------- Note box (callout) ---------- */
.note-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #fff7ed;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: #713f12;
  font-size: 0.95rem;
}

/* ---------- Testimonial inline ---------- */
.testimonial-inline {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--gray-100);
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}

.testimonial-inline blockquote {
  margin: 0;
  font-style: italic;
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-inline cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--steel);
  font-family: var(--font-head);
  font-weight: 600;
}

/* ---------- Top bar (encima del header, con correo) ---------- */
.top-bar {
  background: #ffffff;
  color: #0a1424;
  font-size: 0.88rem;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 101;
}

.top-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  flex-wrap: wrap;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0a1424;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-head, inherit);
}

.top-bar__item:hover,
.top-bar__item:focus {
  color: var(--blue, #2563eb);
}

.top-bar__item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}


@media (max-width: 600px) {
  .top-bar {
    font-size: 0.8rem;
  }
  .top-bar__inner {
    justify-content: center;
    gap: 0.8rem;
  }
}

/* ---------- Mobile sticky CTA (solo móvil, aparece al hacer scroll) ---------- */
.mobile-cta {
  display: none;
}

@media (max-width: 720px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0.6rem;
    right: 4.75rem; /* hueco para el WhatsApp flotante */
    bottom: calc(0.6rem + env(safe-area-inset-bottom));
    gap: 0.4rem;
    z-index: 998;
    padding: 0.4rem;
    background: rgba(10, 20, 36, 0.95);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(140%);
    transition: opacity 0.25s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .mobile-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-cta__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1;
    text-decoration: none;
    font-family: var(--font-head);
    min-height: 40px;
    white-space: nowrap;
  }

  .mobile-cta__btn--phone {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
  }

  .mobile-cta__btn--primary {
    background: var(--blue, #2563eb);
    color: #fff;
  }

  .mobile-cta__btn svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
  }
}
