/**
 * Sección: Inicio (página principal)
 */

main {
  padding-bottom: 3rem;
}

/* Hero slider */
@keyframes hero-text-in {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

.hero--slider {
  position: relative;
  color: var(--blanco);
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: min(82vh, 720px);
  min-height: 420px;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.swiper-slide-active .hero-slide-bg img {
  animation: hero-kenburns 9s ease-out forwards;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(var(--gris-rgb), 0.78) 0%,
    rgba(var(--gris-rgb), 0.48) 42%,
    rgba(var(--gris-rgb), 0.18) 100%
  );
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: min(82vh, 720px);
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
  max-width: 34rem;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja-claro);
}

.hero-title {
  margin: 0 0 1.35rem;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(var(--gris-rgb), 0.4);
}

.hero-cta {
  background: var(--gradiente-naranja);
  border: none;
  color: var(--blanco);
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radio);
  box-shadow: 0 6px 24px rgba(242, 140, 69, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(242, 140, 69, 0.55);
  color: var(--blanco);
}

.hero-slide-content .hero-eyebrow,
.hero-slide-content .hero-title,
.hero-slide-content .hero-cta {
  opacity: 0;
}

.swiper-slide-active .hero-slide-content .hero-eyebrow {
  animation: hero-text-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.swiper-slide-active .hero-slide-content .hero-title {
  animation: hero-text-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.swiper-slide-active .hero-slide-content .hero-cta {
  animation: hero-text-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

/* Controles del slider */
.hero-swiper .hero-nav.swiper-button-prev,
.hero-swiper .hero-nav.swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(var(--gris-rgb), 0.5);
  color: var(--blanco);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.hero-swiper .hero-nav::after {
  font-size: 0.95rem;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .hero-swiper .hero-nav:hover {
    background: var(--naranja);
    color: var(--blanco);
    transform: translateY(-50%) scale(1.06);
  }
}

.hero-nav--prev {
  left: 1.25rem;
}

.hero-nav--next {
  right: 1.25rem;
}

.hero-pagination.swiper-pagination {
  bottom: 1.5rem !important;
  z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--naranja);
  transform: scale(1.2);
}

/* Barra de confianza bajo el hero */
.hero-trust-bar {
  background: var(--gris-fondo);
  border-top: 3px solid var(--naranja);
  padding: 0.9rem 0;
}

.hero-trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--blanco);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--naranja-claro);
}

.hero-trust-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .swiper-slide-active .hero-slide-bg img {
    animation: none;
  }

  .hero-slide-content .hero-eyebrow,
  .hero-slide-content .hero-title,
  .hero-slide-content .hero-cta,
  .swiper-slide-active .hero-slide-content .hero-eyebrow,
  .swiper-slide-active .hero-slide-content .hero-title,
  .swiper-slide-active .hero-slide-content .hero-cta {
    opacity: 1;
    animation: none;
    filter: none;
    transform: none;
  }

  .hero-slide-content {
    transition: none;
    will-change: auto;
  }
}

/* Vitrina flota (debajo del hero) */
.inicio-vitrina-flota {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.inicio-vitrina-head {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

.inicio-vitrina-titulo {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--negro);
  line-height: 1.3;
}

/* Secciones en inicio */
.seccion {
  padding: 3.5rem 0;
}

.seccion-alterna {
  background: #fafafa;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--negro);
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gris-medio);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradiente-naranja);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transicion);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-fuerte);
  border-color: transparent;
  color: var(--negro);
}

.service-card:hover h3 {
  color: var(--naranja);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--negro);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gris-medio);
  margin: 0 0 0.6rem;
}

.service-card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--gris-medio);
}

.service-card li+li {
  margin-top: 0.15rem;
}

.link-inline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--naranja);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link-inline:hover {
  color: var(--naranja-hover);
  text-decoration: underline;
}

.cta-strip {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--naranja-fondo);
  border: 1px solid var(--naranja-claro);
  border-radius: var(--radio-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--negro);
}

.cta-strip strong {
  color: var(--negro);
}

.cta-strip .btn-secundario {
  border-color: var(--naranja);
  color: var(--naranja);
}

.cta-strip .btn-secundario:hover {
  background: var(--naranja);
  color: var(--blanco);
}

/* Bloque contacto en inicio (solo CTA) */
.bloque-contacto {
  text-align: center;
  padding: 2rem 0;
}

.bloque-contacto .section-header p {
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .hero-trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .hero-swiper {
    height: min(72vh, 560px);
    min-height: 380px;
  }

  .hero-slide-content {
    min-height: min(72vh, 560px);
    padding-bottom: 3.5rem;
    max-width: 100%;
  }

  .hero-nav--prev {
    left: 0.65rem;
  }

  .hero-nav--next {
    right: 0.65rem;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
  }

  .hero-trust-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero-trust-label {
    font-size: 0.78rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}