/* ── HERO ───────────────────────────────────────────────── */
#inicio {
  position: relative;
}

.slider-frame {
  --slider-fade-ms: 2000ms;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 860px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(26,26,26,0.75) 0%,
    rgba(26,26,26,0.4) 60%,
    rgba(26,26,26,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
  padding-top: 80px;
}

.hero-content .section-subtitle {
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}

.hero-content h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 24px;
}

.gold-text {
  color: var(--gold);
}

.hero-content p {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider layers */
.slider-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slider-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity var(--slider-fade-ms) ease-in-out;
}

.slider-layer.is-visible { opacity: 1; z-index: 1; }
.slider-layer.is-fading-in { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .slider-layer { transition-duration: 0.01ms; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-indicator span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBob 1.8s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 20px; padding-top: 60px; }
  .slider-frame { height: 90vh; }
  .hero-content h1 { font-size: clamp(3.5rem, 14vw, 5rem); }
}

/* ── STATS ──────────────────────────────────────────────── */
.stats-section {
  background: var(--carbon);
  border-bottom: 1px solid rgba(237,199,54,0.12);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(237,199,54,0.2);
}

@media (max-width: 640px) {
  .stats-inner { padding: 36px 20px; gap: 30px; }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 45%; }
}

/* ── ABOUT PREVIEW ──────────────────────────────────────── */
.about-preview {
  background: var(--off-white);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border: 40px solid rgba(237,199,54,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.about-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-preview-visual {
  display: flex;
  justify-content: center;
}

.about-visual-card {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.about-svg {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.about-visual-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: 14px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.about-visual-badge img {
  width: 110px;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .about-preview-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-preview { padding: var(--section-pad-sm); }
  .about-visual-card { max-width: 340px; }
}

/* ── SERVICES PREVIEW ───────────────────────────────────── */
.services-preview {
  background: var(--carbon-80);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}
.services-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top right, rgba(237,199,54,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(237,199,54,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.services-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.services-preview-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(237,199,54,0.12);
  border-radius: 4px;
  padding: 36px 28px;
  transition: all var(--trans);
  cursor: default;
}
.service-card:hover {
  background: rgba(237,199,54,0.07);
  border-color: rgba(237,199,54,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}
.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.services-preview-cta {
  text-align: center;
}

.services-preview-grid {
  display: grid;
  /* El navegador calcula automáticamente cuántas columnas caben con un mínimo de 280px */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px;
  margin-bottom: 48px;
  width: 100%;
}

@media (max-width: 900px) {
  .services-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .services-preview { padding: var(--section-pad-sm); }
}
@media (max-width: 560px) {
  .services-preview-grid { grid-template-columns: 1fr; }
}

/* ── CLIENTS ────────────────────────────────────────────── */
.clients-section {
  background: var(--smoke);
  padding: var(--section-pad);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.clients-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.clients-header {
  text-align: center;
  margin-bottom: 50px;
}

.clients-logo-wrap {
  display: flex;
  justify-content: center;
}
.clients-logo-wrap img {
  max-width: 900px;
  width: 100%;
  height: auto;
  filter: grayscale(15%);
}

@media (max-width: 768px) {
  .clients-section { padding: var(--section-pad-sm); }
}

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--gold);
  padding: 70px 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(26,26,26,0.04) 20px,
    rgba(26,26,26,0.04) 21px
  );
}
.cta-banner-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .cta-banner { padding: 50px 20px; }
}

