/* ==============================================
   CLÍNICA CALMA — Hero Section Styles
   ============================================== */

/* --- Hero container --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Three.js canvas (fondo) --- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Overlay degradado sobre el canvas --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 28, 45, 0.72) 0%,
    rgba(27, 58, 92, 0.55) 50%,
    rgba(11, 28, 45, 0.68) 100%
  );
  pointer-events: none;
}

/* --- Contenido del hero (encima del canvas) --- */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

/* Badge superior */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(201, 169, 110, 0.2);
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--verde-salvia-light);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* Título principal */
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title .highlight {
  color: var(--dorado);
  font-style: italic;
}

/* Subtítulo */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Botones CTA */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll svg { color: rgba(255,255,255,0.45); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Stats bar debajo del hero */
.hero-stats {
  position: relative;
  z-index: 10;
  background: rgba(27, 58, 92, 0.92);
  backdrop-filter: blur(12px);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.1);
}
.hero-stat {
  padding: 1.75rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .number {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--dorado);
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* --- Responsive hero --- */
@media (max-width: 768px) {
  .hero { height: 100svh; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats-inner { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 1.5rem; }
  .hero-stat:last-child { border-bottom: none; }
}
