:root {
  --c1: #eb6b65;
  --c2: #ee8361;
  --c3: #ec9b5c;
  --c4: #eab65b;
  --c5: #edd660;
  --c6: #ece8d2;
}

body {
  font-family: "Source Sans 3", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

p {
  line-height: 1.2;
}

a, a:hover, a:focus, a:active, .form-control:focus, .form-control:active, .form-control:hover, [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled), .btn-success.focus, .btn-success:focus, .form-select,
button:hover, button:active, button:focus, .btn-success, .btn, [type=button], [type=reset], [type=submit], button,
.btn:hover, .btn:active, .btn:focus {
    outline: 0!important;
    box-shadow: none!important;
    text-decoration:none!important;
}

.main-header {
  background: #ffffff;
  padding: 0px;
  z-index: 999;
  transition: all 0.3s ease;
}

.logo {
  height: 100px;
  transition: all 0.3s ease;
}

/* Estado shrink */

.main-header.shrink {
  padding: 8px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.main-header.shrink .logo {
  height: 60px;
}

.navbar-nav .nav-link {
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  position: relative;
  padding: 0;
  transition: all 0.3s ease;
  line-height: 2;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--c1);
  transition: width 0.3s ease;
  opacity: 0;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  opacity: 1;
}

.navbar-nav .nav-link:hover {
  color: #000000;
}

.btn-contacto {
  background: var(--c1);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s ease;
}

.btn-contacto:hover {
  background: #000000;
  color: #ffffff;
}

.hamburger {
  display: inline-block;
  width: 28px;
  height: 20px;
  position: relative;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #000;
  left: 0;
  transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { bottom: 0; }


@media (max-width: 991.98px) {

  .main-header {
    padding: 10px 0;
  }

  .logo {
    height: 55px;
  }

  .navbar-collapse {
    padding-top: 20px;
  }

  .navbar-nav .nav-link {
    font-size: 22px;
    margin: 12px 0;
    line-height: 1.6;
  }

  .navbar-nav .nav-link::after {
    bottom: -6px;
  }

  .div-boton {
    margin-top: 25px;
    margin-bottom: 35px;
  }

}

/* animación hamburguesa */

.navbar-toggler {
  padding: 0;
}

.hamburger {
  display: inline-block;
  width: 30px;
  height: 22px;
  position: relative;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #000;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Estado abierto */

.navbar-toggler.open .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.navbar-toggler.open .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.open .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}


/**********************
Ws botón redondo con tooltip ws-tooltip
***********************/
#chat-ws-redondo.ws.tooltip {
  position: fixed;
  bottom: 13px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%!important;
  cursor: pointer;
  display: block;
  -webkit-box-shadow: 0px 0px 20px 0px rgba(91, 91, 91, 0.5);
          box-shadow: 0px 0px 20px 0px rgba(91, 91, 91, 0.5);
  z-index: 999;
  background: #1ca550;
  padding: 8px 4px;
  opacity: 1;
}

#chat-ws-redondo.ws.tooltip img {
  padding-left: 0px;
  padding-top: 0px;
  width: 100%;
}

#chat-ws-redondo.ws.tooltip i {
  font-size: 44px;
  color: white;
}

.ws.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #1ca550;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.ws.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1ca550 transparent transparent transparent;
}

.ws.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* =============================== */
/* SLIDER HOME                    */
/* =============================== */

.slider {
  height: 90vh;
  position: relative;
  overflow: hidden;
  margin-top: 120px;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1.6s ease,
    transform 2.4s ease;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 1.4s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide.active::after {
  opacity: 1;
}

.slide.out {
  opacity: 0;
  transform: scale(1.02);
  z-index: 1;
}

/* CONTENIDO */

.slide-content {
  position: absolute;
  bottom: 28%;
  left: 8%;
  color: white;
  max-width: 650px;
  opacity: 0;
  transform: translateY(25px);
  transition: all 1s ease 0.3s;
  z-index: 3;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-content h1 {
  font-size: 64px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.1;  
}

.slide-content p {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 25px;
  line-height: 1.4;
}

/* BOTÓN */

.slider-btn {
  background: var(--c1);
  color: white;
  padding: 12px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  display: inline-block;
}

.slider-btn:hover {
  background: #000;
  color: white;
}

/* FLECHAS */

.slider-arrows {
  position: absolute;
  bottom: 60px;
  left: 8%;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.slider-arrows button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.58);
  color: #000;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-arrows button:hover {
  background: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {

  .slider {
    margin-top: 90px;
  }

  .slide-content {
    left: 6%;
    bottom: 40%;
    max-width: 300px;
  }

  .slide-content h1 {
    font-size: 32px;
  }

  .slide-content p {
    font-size: 18px;
  }
}

/* =============================== */
/* UTILIDAD SECCIONES              */
/* =============================== */

.section-padding {
  padding: 40px 0;
}

/* =============================== */
/* INSTITUCIONAL                   */
/* =============================== */

.titulo-seccion {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 20px;
}

.texto-institucional {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 25px;
}

.btn-institucional {
  background: var(--c1);
  color: white;
  padding: 10px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-institucional:hover {
  background: #000;
  color: white;
}

/* =============================== */
/* BOX SERVICIOS                   */
/* =============================== */

.box-servicios {
  background: var(--c6);
  padding: 10px 20px;
  border-radius: 0px 150px 150px 50px;
}

.titulo-servicios {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 25px;
}

/* LISTA PERSONALIZADA */

.lista-servicios {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-servicios li {
  position: relative;
  padding-left: 13px;
  margin-bottom: 15px;
  font-size: 20px;
  z-index: 1;
  font-weight: 500;
letter-spacing: 0.5px;
}

/* CÍRCULOS */

.lista-servicios li::before  {
    content: "";
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    left: -4px;
    top: -4px;
    z-index: -1;
}

/* Colores individuales */

.lista-servicios li.c3::before  {
  background: var(--c3);
}

.lista-servicios li.c4::before  {
  background: var(--c4);
}

.lista-servicios li.c5::before  {
  background: var(--c5);
}

/* RESPONSIVE */

@media (max-width: 991.98px) {

  .titulo-seccion {
    font-size: 28px;
  }

  .texto-institucional {
    font-size: 18px;
  }

  .box-servicios {
    padding: 25px;
  }

}

.imagen-institucional img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

/* Ajuste fino para que visualmente acompañe el box */

@media (min-width: 992px) {
  .imagen-institucional {
    padding-left: 40px;
  }
}

/* =============================== */
/* PARALLAX BOX                    */
/* =============================== */

.parallax-box {
  position: relative;
  background-image: url("../imagenes/parallax.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 0px 150px 150px 50px;
  padding: 50px 40px;
  overflow: hidden;
}

/* Overlay para mejorar contraste */

.parallax-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(131, 141, 140, 0.35);
  z-index: 1;
}

/* Contenido centrado */

.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Título */

.titulo-parallax {
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 25px;
}

/* Texto */

.texto-parallax {
  font-size: 20px;
  color: #fff;
  margin-bottom: 35px;
  line-height: 1.2;
}

/* Botón */

.btn-parallax {
  background: var(--c5);
  color: #000;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-parallax:hover {
  transform: translateY(-3px);
}

/* =============================== */
/* RESPONSIVE                      */
/* =============================== */

@media (max-width: 991.98px) {

  .parallax-box {
    padding: 70px 25px;
    background-attachment: scroll; /* importante para mobile */
  }

  .titulo-parallax {
    font-size: 26px;
  }

  .texto-parallax {
    font-size: 18px;
  }

}

/* Contenedor de cada bloque */
.item-contenido {
  margin-bottom: 35px;
}

/* Título con círculo */
.titulo-item {
  position: relative;
  padding-left: 15px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  z-index: 1;
}

/* Círculo */
.titulo-item::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  left: -4px;
  top: -4px;
  z-index: -1;
}

/* Colores heredados del contenedor */

.item-contenido.c3 .titulo-item::before {
  background: var(--c3);
}

.item-contenido.c4 .titulo-item::before {
  background: var(--c4);
}

.item-contenido.c5 .titulo-item::before {
  background: var(--c5);
}

/* Párrafos */
.item-contenido p {
  margin: 0;
  line-height: 1.2;
}

/* =============================== */
/* REHABILITACIÓN INFANTIL        */
/* =============================== */

.titulo-rehab {
  font-size: 52px;
  line-height: 1.2;
}

.texto-rehab {
  font-size: 20px;
  line-height: 1.2;
}

/* Cards */

.card-rehab {
  background: var(--c6);
  border-radius: 40px;
  padding: 40px 25px;
  text-align: center;
  height: 100%;
}

/* Icono */

.icono {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
}

/* Colores */

.icono.c1 {
  background: var(--c1);
}

.icono.c2 {
  background: var(--c2);
}

.icono.c3 {
  background: var(--c3);
}
.icono.c4 {
  background: var(--c4);
}

/* Texto card */

.card-rehab p {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

/* Responsive */

@media (max-width: 991.98px) {

  .titulo-rehab {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .texto-rehab {
    font-size: 18px;
  }

  .card-rehab {
    padding: 30px 20px;
  }

}

.box-estimulacion p {
    position: relative;
    z-index: 1;
    padding-left: 15px;
    font-weight: 600;
    font-size: 18px;
}

/* =============================== */
/* FOOTER                         */
/* =============================== */

.main-footer {
  background: var(--c3);
  color: white;
  margin-top: -2px; /* elimina posible gap */
  position: relative;
}

/* CURVA */

.footer-curve {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: white; /* fondo anterior */
}

.footer-curve svg {
   width: 100%;
  height: 200px; /* control visual */
  display: block;
}

.footer-curve path {
  fill: var(--c3);
}

/* CONTENIDO */

.footer-content {
  padding: 70px 80px 50px 80px;
}

/* LOGO */

.footer-logo {
  max-width: 280px;
  height: auto;
}

/* ITEMS */

.footer-item i {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}

.footer-item p {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.wave-path {
  fill: var(--c3);
}

/* COPYRIGHT */

.copyright {
  background: #fff;
  padding: 12px 0;
}

.copyright a {
  color: #000;
  font-size: 12px;
  text-decoration: none;
}

.copyright a:hover {
  text-decoration: underline;
}

.botonera {
  display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    align-content: center;
}
.botonera a {
  margin: 10px;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {

  .footer-content {
    text-align: center;
  }

  .footer-item i {
    margin-bottom: 8px;
  }

}

.desktop-wave {
  display: block;
}

.mobile-wave {
  display: none;
}

@media (max-width: 768px) {

  .desktop-wave {
    display: none;
  }

  .mobile-wave {
    display: block;
  }

  .footer-curve svg {
    height: 110px;
  }
  .footer-curve svg {
    height: 90px;
  }
  .botonera {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    align-content: center;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}
  .parallax-content {
    min-height: 700px;
  }

}


