:root {
    --azul-oscuro: #0D2AD1;
    --celeste: #70A9D5;
    --gris-claro: #F5F5F5;
    --blanco: #FFFFFF;
    --gris-texto: #4a4a4a;
    --azul-oscuro-oscuro: #1e1e2d;
    --azul-acento: #007bff;
    --azul-acento-hover: #0056b3;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
  }

  body {
    background-color: var(--gris-claro);
    color: var(--gris-texto);
    scroll-behavior: smooth;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajusta este valor según la altura de tu navbar */
  }

  section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  section.hero-inba {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Clase única para el CTA de polisomnografía */
.cta-whats-pol {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--azul-oscuro);
  color: var(--blanco);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 1rem; /* separación del contenido interno */
}

.cta-whats-pol:hover {
  background: #007bff;
  transform: translateY(-2px);
}

.cta-whats-pol:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 45px;
  height: 45px;
  background: rgba(13, 42, 209, 0.75);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(13, 42, 209, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.scroll-to-top:hover {
  background: rgba(13, 42, 209, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 42, 209, 0.2);
}

.scroll-to-top i {
  font-size: 1.1rem;
}

/* Hero Badge Styles */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--blanco);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  width: auto;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge i {
  margin-right: 0.6rem;
  font-size: 1rem;
}