.hero {
  position: relative;
  min-height: calc(100vh - var(--of-nav-h));
  overflow: hidden;
  background: var(--of-grafito);
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--of-ease), visibility 0s linear 1.4s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s var(--of-ease), visibility 0s linear 0s;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1.15);
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(14, 79, 110, 0.85) 0%, rgba(9, 56, 80, 0.7) 50%, rgba(26, 43, 51, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--of-nav-h));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: var(--of-space-24) 0 var(--of-space-16);
}

@media (max-width: 768px) {
  .hero { min-height: calc(100svh - var(--of-nav-h)); }
  .hero-content {
    min-height: calc(100svh - var(--of-nav-h));
    align-items: start;
    padding: var(--of-space-12) 0 var(--of-space-20);
  }
  .hero-actions { margin-bottom: var(--of-space-8); }
  .hero-stats { padding-top: var(--of-space-6); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--of-space-16);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--of-space-12); }
}

.hero-text { color: var(--of-blanco); max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--of-space-3);
  padding: 8px 16px 8px 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--of-radius-pill);
  font-size: var(--of-fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--of-cyan-light);
  margin-bottom: var(--of-space-6);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--of-cyan);
  box-shadow: 0 0 12px var(--of-cyan);
  animation: of-pulse 2s ease-in-out infinite;
}

@keyframes of-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--of-blanco);
  margin: 0 0 var(--of-space-6);
}

.hero-title .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--of-cyan-light);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-desc {
  font-size: var(--of-fs-lg);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--of-space-8);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: var(--of-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--of-space-12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--of-space-6);
  padding-top: var(--of-space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > :nth-child(3) { grid-column: 1 / -1; }
}

.hero-stat-num {
  font-family: var(--of-font-display);
  font-size: var(--of-fs-3xl);
  font-weight: 500;
  line-height: 1;
  color: var(--of-blanco);
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.hero-stat-num small {
  font-size: 0.55em;
  color: var(--of-cyan-light);
  margin-left: 2px;
}

.hero-stat-label {
  font-size: var(--of-fs-xs);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Visual / card del hero */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 480px;
  justify-self: end;
}

@media (max-width: 1024px) { .hero-visual { display: none; } }

.hero-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--of-radius-xl);
  overflow: hidden;
  box-shadow: var(--of-shadow-xl);
  background: var(--of-grafito);
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--of-radius-lg);
  padding: var(--of-space-4) var(--of-space-6);
  display: flex;
  align-items: center;
  gap: var(--of-space-4);
  box-shadow: var(--of-shadow-lg);
  font-size: var(--of-fs-sm);
}

.hero-floating-card.fc-1 { top: 30px; left: -60px; }
.hero-floating-card.fc-2 { bottom: 60px; right: -40px; }

.hero-floating-card .fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--of-grad-cyan);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  flex-shrink: 0;
}

.hero-floating-card .fc-coral .fc-icon { background: var(--of-grad-coral); }

.hero-floating-card strong {
  display: block;
  color: var(--of-grafito);
  font-weight: 600;
}

.hero-floating-card span {
  color: var(--of-grafito-soft);
  font-size: var(--of-fs-xs);
}

/* Slider controls */
.hero-controls {
  position: absolute;
  bottom: var(--of-space-8);
  right: var(--of-space-8);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--of-space-4);
  color: var(--of-blanco);
}

@media (max-width: 768px) {
  .hero-controls { right: var(--of-space-6); bottom: var(--of-space-6); }
  .hero-controls .hero-counter { display: none; }
}

.hero-dots {
  display: flex;
  gap: var(--of-space-2);
}

.hero-dot {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background var(--of-trans);
}
.hero-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--of-cyan);
  transform: translateX(-100%);
  transition: transform 6s linear;
}
.hero-dot.is-active::after { transform: translateX(0); }

.hero-counter {
  font-family: var(--of-font-display);
  font-size: var(--of-fs-sm);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.hero-counter .current { color: var(--of-cyan-light); font-weight: 600; }
.hero-counter .total { opacity: 0.5; }
