canvas {
  display: block;
  /* vertical-align removed due to display:block conflict */
}

/* Header & Navigation Overrides */
#header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.menu>li>a {
  color: #fff !important;
  font-weight: 600;
}

.menu>li>a:hover,
.menu>li.active>a {
  color: #0fadd4 !important;
}

/* Sticky Header */
#header-sticky {
  background-color: rgba(30, 30, 43, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#header-sticky .menu>li>a {
  color: #fff !important;
}

/* Mobile Menu Button */
.mobile-menu-button {
  color: #fff !important;
}

/* Base Body & Background */
body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  /* Modern font preference */
  background-color: #1e1e2b;
  color: #fff;
  margin: 0;
  overflow-x: hidden;
  /* Circular Gradient Background */
  background-image:
    radial-gradient(circle at 15% 50%, rgba(102, 45, 145, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(15, 173, 212, 0.46) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(30, 30, 43, 1) 0%, transparent 100%);
  background-attachment: fixed;
}

#main-container {
  background: transparent !important;
  /* Allow body gradient to show */
  position: relative;
  overflow: hidden;
}

/* ---- stats.js ---- */
.count-particles {
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.js-count-particles {
  font-size: 1.1em;
}

#stats,
.count-particles {
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats {
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles {
  border-radius: 0 0 3px 3px;
}

/* ---- particles.js container ---- */
#particles-js {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* Typography & Helpers */
.title {
  color: #facb0e;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.title-w {
  color: #fff;
  font-weight: 700;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

.h2 {
  color: #facb0e;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.h3 {
  color: #662d91;
  font-size: 2rem;
  font-weight: 600;
}

.h2b {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

.p {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  color: rgba(255, 255, 255, 0.85);
}

.p-white {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: justify;
}

/* Sections */
.s-nosotros,
.s-contacto,
.productos,
.full-section {
  background: transparent !important;
  /* Override images to show gradients */
  position: relative;
  z-index: 1;
}

.s-nosotros {
  padding-top: 5rem;
  padding-bottom: 5rem;
  /* Glassmorphism card effect for container if needed */
}

.s-contacto {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.h6 {
  color: #662d91;
  font-size: 1.5rem;
}

.h6-white {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.agenda {
  /* Keep image if essential, otherwise blend it */
  background-image: url(../images/agenda_consulta.png);
  background-blend-mode: overlay;
  background-color: rgba(30, 30, 43, 0.8);
}

/* Service Boxes Enhancements */
.service-box {
  background: rgba(255, 255, 255, 0.05);
  /* Glassy background */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0 220 247 / 20%);
  border-color: rgba(15, 173, 212, 0.3);
}

.service-box i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Buttons */
.btn-black {
  transition: all 0.3s ease !important;
}

.btn-black:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(114, 54, 157, 0.4);
}

/* Media Queries */
@media (min-width: 1200px) {
  .d-header {
    height: 57rem;
  }

  .cont-impulsamos {
    padding-top: 16rem;
    background-image: url(../assets/images/Background-Red.webp);
    background-size: cover;
    background-position: center;
  }

  .impulsamos {
    padding-top: 44%;
    width: 100%;
  }

  .impulsamos .impulsamos-content {
    padding-top: 30%;
  }

  .precision {
    padding-top: 25%;
  }
}

@media (max-width: 1200px) {
  .cont-impulsamos {
    padding-top: 16rem;
  }

  .impulsamos {
    padding-top: 44%;
    width: 100%;
  }

  .impulsamos .impulsamos-content {
    padding-top: 30%;
  }

  .cont-precision {
    padding-top: 5%;
  }

  .precision {
    padding-top: 37px;
    margin-left: 85px;
  }
}

@media (max-width: 997px) {
  .cont-impulsamos {
    padding-top: 20%;
  }

  .impulsamos-content h1 {
    font-size: 26px;
    color: #fff;
  }

  .img-impulsamos {
    width: 50%;
  }

  .precision {
    padding-top: 37px;
    margin-left: 85px;
  }
}

@media (max-width: 767px) {
  .impulsamos {
    padding-top: 44%;
    width: 100%;
  }

  .img-impulsamos {
    width: 70%;
  }

  .impulsamos .impulsamos-content {
    padding-top: 39%;
  }

  .precision {
    padding-top: 37px;
  }

  /* Remove section 3 overrides that conflict with transparent bg */
}

@media (max-width: 540px) {
  .cont-impulsamos {
    padding-top: 30%;
  }

  .impulsamos {
    padding-top: 44%;
    width: 70%;
  }

  .img-impulsamos {
    width: 70%;
  }

  .impulsamos-content {
    padding-top: -10px;
    text-align: center;
  }

  .impulsamos-content h1 {
    font-size: 26px;
    color: #fff;
  }

  .precision {
    padding-top: 15%;
    margin-left: 0px;
    text-align: center;
  }

  .title-content {
    padding-top: 10%;
  }
}