:root {
  --primary-color: #dceff3;
  --secondary-color: #0097a8;
  --terciary-color: #a5dafd;
  --fourth-color: rgba(0, 94, 131, 0.8);
  --bg-color: #f6fdff;
}

/* Aplicar fondo a toda la página */
html, body {
  background: var(--bg-color) !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Aplicar fondo al contenedor principal */
#app {
  background: var(--bg-color) !important;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Asegurar que los elementos de Bootstrap no tengan fondo blanco */
* {
  box-sizing: border-box;
  max-width: 100vw;
}

.container, .container-fluid, .row, .col, [class*="col-"] {
  background: transparent !important;
  max-width: 100vw;
}

.titulo {
  background-color: var(--primary-color);
  font-size: 1.5rem;
  padding: 20px 10px !important;
  width: 90vw;
  max-width: 300px;
  margin: 0 auto;
  color: var(--secondary-color);
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  text-align: center;
  display: block;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.centrado {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.bot {
  margin-bottom: 1rem !important;
}

.extrabot {
  margin-bottom: 2rem !important;
}

.top {
  margin-top: 1rem !important;
}

.extratop {
  margin-top: 2rem !important;
}

/*Animaciones slide*/
  .slide-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .slide-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 70px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: 4px solid var(--secondary-color);
  }

  .slide-from-left.visible,
  .slide-from-right.visible {
    opacity: 1;
    transform: translateX(0);
  }

/*Animaciones*/
  .anim-up {
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(.4,2,.6,1);
  }

  .anim-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(.4,2,.6,1);
  }
      
  .anim-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(.4,2,.6,1);
    }

  .anim-down {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(.4,2,.6,1);
  }
    
  .anim-visible {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
  }

@media (max-width: 900px) {
  .servicio-container,
  .servicio-container.reverse {
    flex-direction: column !important;
    gap: 1rem;
    padding: 1rem 0.3rem;
    max-width: 98vw;
    width: 100vw;
    min-width: 0;
  }
  .servicio-imagen {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
  }
  .servicio-imagen img {
    max-width: 100vw;
    width: 100%;
    height: auto;
  }
  .servicio-texto {
    padding-left: 0;
    text-align: center;
    max-width: 98vw;
    word-break: break-word;
  }
}