/* ============================================================
   VIMEDENT — Hero (sección principal)
   ============================================================ */

#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 72px 0 0;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

/* Forma de fondo diagonal */
.hero-bg-shape {
  position: absolute;
  right: -80px; top: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(145deg, var(--light) 0%, #e8f5fb 60%, var(--gray) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

/* Puntos decorativos */
.hero-bg-dots {
  position: absolute;
  right: 0; top: 80px;
  width: 320px; height: 320px;
  background-image: radial-gradient(var(--aqua) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: .22;
  z-index: 0;
}

/* Contenido izquierdo */
.hero-content {
  padding: 4rem 5vw 4rem 8vw;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  color: var(--blue);
  border: 1px solid var(--aqua);
  padding: .35rem .9rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp .7s .2s forwards;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  background: var(--aqua);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp .7s .35s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--blue);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp .7s .5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .7s .65s forwards;
}

/* Imagen derecha */
.hero-img-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 6vw 5rem 2vw;
}

.hero-img-card {
  position: relative;
  width: min(420px, 90%);
}
.hero-img-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15,42,82,.22);
  opacity: 0;
  animation: fadeIn .9s .4s forwards;
}

/* Tarjeta flotante inferior */
.hero-float-card {
  position: absolute;
  bottom: 30px; left: -40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(15,42,82,.1);
  opacity: 0;
  animation: fadeUp .7s .9s forwards;
  min-width: 200px;
}
.float-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.float-text strong {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--navy);
}
.float-text span {
  font-size: .72rem;
  color: var(--muted);
}

/* Tarjeta flotante superior */
.hero-float-card2 {
  position: absolute;
  top: 20px; right: -20px;
  background: var(--navy);
  border-radius: 16px;
  padding: .9rem 1.2rem;
  color: var(--white);
  box-shadow: 0 12px 32px rgba(15,42,82,.25);
  opacity: 0;
  animation: fadeUp .7s 1.1s forwards;
}
.float-card2-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}
.float-card2-label {
  font-size: .7rem;
  color: var(--aqua);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-bg-shape { display: none; }
  .hero-bg-dots { display: none; }
  .hero-content { padding: 3rem 6vw 1rem; }
  .hero-img-wrap { padding: 2rem 6vw 4rem; }
  .hero-float-card { left: 0; bottom: 10px; }
  .hero-float-card2 { right: 0; top: 10px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
