/* OVERRIDES PARA HERO ESTILO INSURELY */

.hero--fullscreen {
  position: relative;
  min-height: calc(100vh - 85px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: hidden;
  background: #111 !important;
  border-bottom: 1px solid rgba(217,103,37,.16);
}

/* Remover adornos viejos de .hero::after */
.hero--fullscreen::after {
  display: none !important;
}

/* The background layer containing the image */
.hero-bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease-in-out, transform 14s ease-out;
  will-change: transform, opacity;
  z-index: 1;
}

.bg-slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 42, 42, 0.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1.8rem;
  padding: 14px 20px;
  cursor: pointer;
  z-index: 10;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(242, 155, 48, 0.4);
}
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

@media (max-width: 768px) {
  .slider-btn {
    padding: 10px 14px;
    font-size: 1.2rem;
  }
  .prev-btn { left: 15px; }
  .next-btn { right: 15px; }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* Darken edges slightly like a vignette and add a dark base so text is legible */
  background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 40px 0; 
}

.hero-copy--centered {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* Update text colors to be visible on dark background */
.hero-copy--centered .kicker {
  color: var(--primary);
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.25em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-copy--centered h1 {
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 18ch;
}

.hero-copy--centered .hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  font-weight: 500;
  max-width: 58ch;
  line-height: 1.6;
}

.hero-copy--centered .coord-tag {
  color: rgba(255,255,255,0.4);
}

.hero-copy--centered .hero-actions {
  justify-content: center;
  margin-top: 30px;
  gap: 16px;
}

.btn-primary {
  box-shadow: 0 8px 24px rgba(242, 155, 48, 0.35) !important;
}

.btn-ghost-light {
  border: 1px solid rgba(255,255,255,0.4) !important;
  color: #fff !important;
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #fff !important;
}

/* Animations */
@keyframes heroInUp {
  0% { opacity: 0; transform: translateY(40px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

.hero-in-up {
  opacity: 0;
  animation: heroInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--hi, 0) * 0.12s + 0.1s);
}

@media (prefers-reduced-motion: reduce) {
  .bg-slide.active {
    animation: none;
    opacity: 1;
  }
  .hero-in-up {
    animation: none;
    opacity: 1;
    filter: none;
  }
}

/* NUEVAS FUENTES Y FLECHA */
body, .brand, .brand-name, h1, h2, h3, p, a, button, input, textarea {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif !important;
}

.brand-name {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  background: linear-gradient(130deg, #F29B30, #D95525);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #F29B30;
  font-weight: 900 !important;
}

/* Botón Volver Arriba */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #F29B30;
  color: #fff;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(242, 155, 48, 0.4);
  z-index: 99;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 22px rgba(242, 155, 48, 0.6);
  background: #D95525;
}

/* Service Cards Image Enhancements */
.service-card {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
}

.sc-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid var(--primary);
  filter: brightness(0.95);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card:hover .sc-image {
  transform: scale(1.03);
  filter: brightness(1);
}

.sc-body {
  padding: 24px;
  position: relative;
  flex: 1;
}

.service-card .icon {
  position: relative !important;
  z-index: 2;
  margin-top: -46px !important;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Fix para forzar visibilidad de TODAS las tarjetas animadas */
.reveal.is-visible .stagger-item,
.reveal.is-visible .service-card.stagger-item {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.reveal.is-visible .service-card.stagger-item:nth-child(4) { transition-delay: .28s; }
.reveal.is-visible .service-card.stagger-item:nth-child(5) { transition-delay: .35s; }
.reveal.is-visible .service-card.stagger-item:nth-child(6) { transition-delay: .42s; }

/* Partners Marquee Section */
.partners-section {
  padding: 65px 0;
  background: radial-gradient(ellipse at top, #ffffff, #f7f7f7);
  border-bottom: 1px solid rgba(217, 103, 37, 0.15);
  overflow: hidden;
}
.container--wide {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
}
.partners-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}
.partners-block {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.partners-divider {
  width: 3px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(242, 155, 48, 0.4), transparent);
  flex-shrink: 0;
}
.partners-title {
  text-align: center;
  font-size: 1.4rem;
  color: var(--contrast1);
  margin: 0 0 30px 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.pm-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.pm-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: pmScroll 80s linear infinite;
  align-items: center;
}
.pm-track--reverse {
  animation: pmScrollRev 75s linear infinite;
}
.pm-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #333;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
  cursor: default;
}
.pm-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

@keyframes pmScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

@keyframes pmScrollRev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 900px) {
  .partners-grid {
    flex-direction: column;
    gap: 45px;
  }
  .partners-divider {
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(242, 155, 48, 0.4), transparent);
  }
}
