/* Fusion web2 + diseño «web»: logo en cabecera, hero con foto real, camión SVG, WhatsApp flotante, reseñas y mapa */

/* Franja de logos de clientes */
.logos.logos--img {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.logos.logos--img li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.logos.logos--img img {
  max-height: 3.25rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  filter: grayscale(0.08);
  opacity: 0.94;
}

.logos.logos--img img.logo-brand--otis,
.logos.logos--img img.logo-brand--last {
  max-height: 2.1rem;
  max-width: 7.8rem;
}

.logos.logos--img img.logo-brand--urban {
  max-height: 5rem;
  max-width: 14rem;
}

/* Foto del hero + velo diagonal azul a la izquierda (tipo diapositiva) */
.hero.hero--photo {
  background-color: var(--blue-dark);
  background-image:
    linear-gradient(
      118deg,
      rgba(26, 47, 74, 0.98) 0%,
      rgba(26, 47, 74, 0.95) 17%,
      rgba(26, 47, 74, 0.9) 28%,
      rgba(26, 47, 74, 0.78) 40%,
      rgba(26, 47, 74, 0.5) 51%,
      rgba(26, 47, 74, 0.22) 59%,
      rgba(26, 47, 74, 0.06) 66%,
      transparent 72%
    ),
    url("../imagenes/furgo_hero.webp");
  background-position: center, center 62%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

/* Legibilidad del texto sin velo de color encima de la foto */
.hero.hero--photo h1,
.hero.hero--photo p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 0, 0, 0.35);
}

.hero.hero--photo .hero__micro {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .hero.hero--photo {
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: min(39vh, 300px);
    padding-bottom: 1.15rem;
    background-image:
      linear-gradient(
        114deg,
        rgba(26, 47, 74, 0.9) 0%,
        rgba(26, 47, 74, 0.76) 20%,
        rgba(26, 47, 74, 0.38) 44%,
        rgba(26, 47, 74, 0.1) 58%,
        transparent 71%
      ),
      url("../imagenes/furgo_hero.webp");
    background-position: center, center 32%;
    background-size: cover, cover;
  }

  .hero.hero--photo .hero__lead {
    display: none;
  }

  .hero.hero--photo .hero__micro {
    display: none;
  }

  .hero.hero--photo h1 {
    font-size: clamp(1.32rem, 5vw, 1.82rem);
    max-width: none;
    margin-top: 0;
    margin-bottom: 0.55rem;
    line-height: 1.22;
  }

  .hero.hero--photo .hero__actions {
    margin-bottom: 0;
    gap: 0.5rem;
  }

  .hero.hero--photo .hero__actions .btn {
    padding-inline: 1rem;
    padding-block: 0.52rem;
    font-size: 0.91rem;
  }
}

.logo.logo--with-img {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
}

.logo.logo--with-img img {
  height: clamp(62px, 19vw, 102px);
  width: auto;
  max-width: min(430px, 86vw);
  object-fit: contain;
  display: block;
}

/* Inicio (body.home-hero por JS si existe main > .hero.hero--photo): header transparente, luego azul al scroll */
:root {
  --header-offset: 5.75rem;
}

body.home-hero .hero.hero--photo {
  margin-top: calc(-1 * var(--header-offset));
  padding-top: calc(var(--header-offset) + 0.75rem);
}

@media (max-width: 900px) {
  body.home-hero .hero.hero--photo {
    padding-top: calc(var(--header-offset) + 0.35rem);
  }
}

body.home-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.home-hero .site-header {
    transition: none;
  }
}

body.home-hero.header-scrolled .site-header {
  background: var(--blue-dark);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

/* Barra transparente sobre el hero: enlaces claros (solo escritorio; móvil = panel claro en styles.css) */
@media (min-width: 901px) {
  body.home-hero:not(.header-scrolled) .site-header .nav a:not(.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 a:not(.btn):hover,
  body.home-hero:not(.header-scrolled) .site-header .nav a:not(.btn)[aria-current="page"] {
    color: var(--white);
    text-decoration: none;
  }

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

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

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

@media (max-width: 900px) {
  body.home-hero .site-header .nav.is-open a:not(.btn):focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }
}

body.home-hero:not(.header-scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.12);
}

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

body.home-hero.header-scrolled .nav-toggle {
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid rgba(218, 224, 234, 0.85);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}

body.home-hero.header-scrolled .nav-toggle:hover {
  background: var(--gray-100);
  color: var(--blue-dark);
}

body.home-hero:not(.header-scrolled) .nav-toggle:focus-visible {
  outline-color: rgba(255, 255, 255, 0.92);
}

.card.card--fleet {
  padding: 0;
  overflow: hidden;
}

.card.card--fleet img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .card.card--fleet img {
    height: 320px;
  }
}

.card.card--fleet h3,
.card.card--fleet p {
  padding: 0 1.5rem;
}

.card.card--fleet h3 {
  margin-top: 1rem;
}

.card.card--fleet p:last-child {
  padding-bottom: 1.5rem;
}

/* Fotos en secciones (servicios, empresa, flota, contacto) */
.card.card--photo {
  padding: 0;
  overflow: hidden;
  margin: 0;
}

.card.card--photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(240px, 55vw);
  object-fit: cover;
}

@media (min-width: 640px) {
  .card.card--photo img {
    max-height: 280px;
  }
}

/* Galería uniforme en flota.html — todas las imágenes a la misma altura */
.flota-gallery .card.card--photo img {
  width: 100%;
  height: 240px;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}

@media (min-width: 640px) {
  .flota-gallery .card.card--photo img {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .flota-gallery .card.card--photo img {
    height: 240px;
  }
}

.flota-gallery .card.card--photo {
  display: flex;
  flex-direction: column;
}

.flota-gallery .card.card--photo figcaption {
  flex: 1;
}

/* Empresa: bloque «Flota lista para nacional» — altura visual x2 sobre el card–photo estándar */
.card.card--photo.card--photo--empresa-flota img {
  max-height: min(480px, 92vw);
  object-fit: cover;
}

@media (min-width: 640px) {
  .card.card--photo.card--photo--empresa-flota img {
    max-height: 560px;
  }
}

.card.card--photo figcaption {
  padding: 0.75rem 1rem 1.1rem;
  font-size: 0.92rem;
  color: var(--steel);
  line-height: 1.45;
}

.service-videos {
  align-items: start;
  gap: 1.4rem;
}

.card.card--video {
  padding: 0;
  overflow: hidden;
}

.card.card--video video {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  max-height: 80vh;
  background: #0b1726;
  object-fit: cover;
}

.card.card--video figcaption {
  padding: 0.75rem 1rem 1.1rem;
  font-size: 0.92rem;
  color: var(--steel);
  line-height: 1.45;
}

/* Franja camión + scroll */
.truck-strip {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.truck-strip .truck-strip__inner {
  position: relative;
  min-height: clamp(9.25rem, 28vw, 12rem);
  overflow: hidden;
  padding: 1rem 0 2.25rem;
}

.truck-strip .hero-truck {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(360px, 88vw);
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  transform: translateX(-58vw);
}

.truck-strip .hero-truck-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(13, 43, 69, 0.14));
}

.truck-strip .truck-strip__road {
  position: absolute;
  bottom: 0.65rem;
  left: 0;
  right: 0;
  height: auto;
  z-index: 1;
}

/* WhatsApp flotante (icono, esquina inferior izquierda) */
.whatsapp-float {
  position: fixed;
  left: calc(10px + env(safe-area-inset-left));
  right: auto;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.whatsapp-float:hover {
  color: #fff;
  opacity: 0.94;
  transform: scale(1.04);
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 761px) {
  .whatsapp-float {
    left: calc(18px + env(safe-area-inset-left));
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 3.65rem;
    height: 3.65rem;
  }

  .whatsapp-float__icon {
    width: 1.82rem;
    height: 1.82rem;
  }

  .truck-strip .truck-strip__inner {
    min-height: clamp(10.5rem, 22vw, 13rem);
    padding: 1.25rem 0 2.65rem;
  }

  .truck-strip .hero-truck {
    width: min(440px, 78vw);
  }
}

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

  .whatsapp-float:hover {
    transform: none;
  }
}

/* Reseñas Google (inicio) + mapa debajo */
.section-testimonials .section__intro {
  max-width: 44rem;
}

.testimonials-heading {
  margin-bottom: 1.5rem;
}

.testimonials-heading__title {
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  line-height: 1.18;
  color: var(--blue-dark);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.testimonials-heading__subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: var(--steel);
}

.testimonial-card__badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.9;
}

.testimonial-card__meta cite {
  font-style: normal;
}

.testimonial-card__source-line {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--steel);
  margin-top: 0.25rem;
}

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}

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

@media (min-width: 1060px) {
  .testimonials-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.testimonial-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
  border-left: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.testimonial-card__stars {
  color: #f4b400;
  letter-spacing: 2px;
  font-size: 0.92rem;
  margin: 0 0 0.65rem;
  line-height: 1;
}

.testimonial-card__quote {
  margin: 0 0 1rem;
  flex: 1;
}

.testimonial-card__quote p {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.52;
  color: var(--blue-dark);
  font-style: italic;
}

.testimonial-card__meta {
  font-size: 0.82rem;
  color: var(--steel);
  font-weight: 600;
  line-height: 1.35;
}

.testimonials-disclaimer {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.map-below-testimonials {
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-200);
}

.map-below-testimonials__title {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--blue-dark);
  margin: 0 0 0.5rem;
}

.map-below-testimonials__address {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.map-below-testimonials__address a {
  color: var(--blue);
}

.map-below-testimonials__link {
  margin: 1.1rem 0 0;
  text-align: center;
}

.map-embed-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 240px;
}

.map-embed-wrap--solo {
  max-width: none;
}

.map-embed-wrap iframe {
  width: 100%;
  height: min(380px, 52vh);
  min-height: 260px;
  border: 0;
  display: block;
}

@media (min-width: 901px) {
  .map-embed-wrap iframe {
    height: min(420px, 45vh);
    min-height: 320px;
  }
}

/* Servicios — bloques imagen + texto */
.service-split {
  align-items: center;
}

.service-split .service-split__cta-2nd {
  margin-top: 0.65rem;
}

@media (min-width: 640px) {
  .service-split .service-split__cta-2nd {
    margin-top: 0;
    margin-inline-start: 0.5rem;
  }
}

.card--photo--ai img {
  object-position: center 40%;
}
