/*

Template 2098 Health

http://www.tooplate.com/view/2098-health

*/

  @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600');

  body {
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
  }


  /*---------------------------------------
     TYPOGRAPHY              
  -----------------------------------------*/

  h1,h2,h3,h4,h5,h6 {
    font-weight: 600;
    line-height: inherit;
  }

  h1,h2,h3,h4 {
    letter-spacing: -1px;
  }

  h5 {
    font-weight: 500;
  }

  h1 {
    color: #252525;
    font-size: 5em;
  }

  h2 {
    color: #272727;
    font-size: 3em;
    padding-bottom: 10px;
  }

  h3 {
    font-size: 1.8em;
    line-height: 1.2em;
    margin-bottom: 0;
  }

  h4 {
    color: #454545;
    font-size: 1.8em;
    padding-bottom: 2px;
  }

  h6 {
    letter-spacing: 0;
    font-weight: normal;
  }

  p {
    color: #757575;
    font-size: 14px;
    font-weight: normal;
    line-height: 24px;
  }


  /*---------------------------------------
     GENERAL               
  -----------------------------------------*/

  html{
    -webkit-font-smoothing: antialiased;
  }

  a {
    color: #252525;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    text-decoration: none !important;
  }

  a:hover, a:active, a:focus {
    color: #B21F2D;
    outline: none;
  }

  ::-webkit-scrollbar{
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    cursor: pointer;
    background: #000000;
  }

  .section-title {
    padding-bottom: 20px;
  }

  .section-title h2 {
    margin-top: 0;
  }

  .section-btn {
    background: #B21F2D;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    font-size: inherit;
    font-weight: 500;
    padding: 14px 20px;
    transition: transform 0.1s ease-in;
    transform: translateX(0);
  }

  .section-btn:hover {
    transform: translateY(-5px);
  }

  .text-align-right {
    text-align: right;
  }

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

  .border-top {
    border-top: 1px solid #f2f2f2;
    margin-top: 4em;
    padding-top: 2.5em;
  }

  .btn-gray {
    background: #393939;
  }

  .btn-blue {
    background: #4267b2;
  }

  .team-thumb {
    background: #ffffff;
    border-radius: 10px;
  }
  .team-thumb img {
    border-radius: 10px 10px 0 0;
  }

  .team-info {
    padding: 30px;
    text-align: left;
  }
  .team-info span {
    display: block;
    letter-spacing: 0.5px;
  }
  .team-info h3 {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .author {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5em;
    margin-top: 2em;
  }
  .author img,
  .author .author-info {
    display: inline-block;
    vertical-align: top;
  }
  .author-info h5 {
    margin-bottom: 0;
  }
  .author img {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
.col-md-3.col-sm-6 {
    display: flex; /* Permite que las tarjetas ocupen todo el alto de la fila */
    margin-bottom: 30px; 
}


  #about, #team, #team,
  #team-detail {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  #team, #service {
    text-align: center;
  }

  #google-map {
    line-height: 0;
    margin: 0;
    padding: 0;
  }


  /*---------------------------------------
       PRE LOADER              
  -----------------------------------------*/

  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #ffffff;
  }

  .spinner {
    border: 1px solid transparent;
    border-radius: 3px;
    position: relative;
  }

  .spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 1px solid #575757;
    border-top-color: #ffffff;
    animation: spinner .9s linear infinite;
  }

  @-webkit-@keyframes spinner {
    to {transform: rotate(360deg);}
  }

  @keyframes spinner {
    to {transform: rotate(360deg);}
  }



  /*---------------------------------------
      MENU              
  -----------------------------------------*/

  header {
    background: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    height: 45px;
  }

  header .col-md-8 {
    padding-right: 0;
  }

  header p,
  header span {
    font-size: 12px;
    line-height: 24px;
    padding-top: 12px;
  }

  header a,
  header span {
    color: #747474;
  }

  header span {
    font-weight: 500;
    display: inline-block;
    padding: 11px 15px;
  }

  header span.date-icon {
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
    padding-right: 19px;
    padding-left: 19px;
  }

  header span i {
    color: #B21F2D;
    margin-right: 5px;
  }



  /*---------------------------------------
      MENU              
  -----------------------------------------*/

  .navbar-default {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,.075);
    border: none;
    margin-bottom: 0;
    padding: 10px;
  }

  .navbar-default .navbar-brand {
    color: #393939;
    font-weight: 500;
  }

  .navbar-default .navbar-brand .fa {
    color: #B21F2D;
  }

  .navbar-default .navbar-nav li.appointment-btn {
    margin: 3px 0 0 20px;
  }

  .navbar-default .navbar-nav li.appointment-btn a {
    background: #B21F2D;
    border-radius: 3px;
    color: #ffffff;
    font-weight: 600;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar-default .navbar-nav li.appointment-btn a:hover {
    background: #4267b2;
    color: #ffffff !important;
  }

  .navbar-default .navbar-nav li a {
    color: #555555;
    font-size: 12px;
    font-weight: 500;
    padding-right: 20px;
    padding-left: 20px;
    -webkit-transition: all ease-in-out 0.4s;
    transition: all ease-in-out 0.4s;
  }

  .navbar-default .navbar-nav > li a:hover {
    color: #393939 !important;
  }

  .navbar-default .navbar-nav > li > a:hover,
  .navbar-default .navbar-nav > li > a:focus {
    color: #555555;
    background-color: transparent;
  }

  .navbar-default .navbar-nav > .active > a,
  .navbar-default .navbar-nav > .active > a:hover,
  .navbar-default .navbar-nav > .active > a:focus {
    color: #393939;
    background-color: transparent;
  }

  .navbar-default .navbar-toggle {
    border: none;
    padding-top: 10px;
  }

  .navbar-default .navbar-toggle .icon-bar {
    background: #393939;
    border-color: transparent;
  }

  .navbar-default .navbar-toggle:hover,
  .navbar-default .navbar-toggle:focus { 
    background-color: transparent;
  }



  /*---------------------------------------
      HOME              
  -----------------------------------------*/

  #home h1 {
    color: #ffffff;
    padding-bottom: 10px;
    margin-top: 0;
  }

  #home h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: normal;
    line-height: inherit;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
  }

  .slider .container {
    width: 100%;
  }

  .slider .owl-dots {
      position: absolute;
      top: 575px;
      width: 100%;
      justify-content: center;
  }

  .owl-theme .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 5px 7px;
    border: 2px solid #d9d9d9;
    background: transparent;
    display: block;
    -webkit-backface-visibility: visible;
    transition: opacity 200ms ease;
    border-radius: 30px;
  }

  .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
    background-color: #ffffff;
    border-color: transparent;
  }

  .slider .caption {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-color: rgba(20,20,20,0.2);
    height: 100%;
    color: #fff;
    cursor: e-resize;
  }

  .slider .item {
    background-position: inherit;
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    height: 650px;
  }

  .slider .item-first {
    background-image: url(../images/slider1.jpg);
  }

  .slider .item-second {
    background-image: url(../images/slider2.jpg);
  }

  .slider .item-third {
    background-image: url(../images/slider3.jpg);
  }


  /*---------------------------------------
      ABOUT              
  -----------------------------------------*/

  #about {
    background: url('../images/about-bg.jpg') no-repeat top center;
    background-size: cover;
    padding-top: 150px;
    padding-bottom: 150px;
  }

  .profile img,
  .profile figcaption {
    display: inline-block;
    vertical-align: top;
    margin-top: 1em;
  }
  .profile img {
    border-radius: 100%;
    width: 65px;
    height: 65px;
    margin-right: 1em;
  }
  .profile figcaption h3 {
    margin-top: 0;
  }

  #about h6 {
    color: #858585;
    margin: 0;
  }



  /*---------------------------------------
      CUANDO ACUDIR              
  -----------------------------------------*/

  #cuando-acudir {
    background: #ffffff;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .cuando-acudir-content {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 40px 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .cuando-acudir-content p {
    color: #757575;
    font-size: 15px;
    line-height: 28px;
    margin-bottom: 20px;
    text-align: justify;
  }

  .cuando-acudir-content blockquote {
    background: #B21F2D;
    border-left: 5px solid #393939;
    border-radius: 5px;
    padding: 25px 30px;
    margin: 30px 0 0 0;
    text-align: center;
  }

  .cuando-acudir-content blockquote p {
    color: #ffffff;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.8;
    margin: 0;
  }


  /*---------------------------------------
      NUESTRA FILOSOFÍA              
  -----------------------------------------*/

  #nuestra-filosofia {
    background: #f9f9f9;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  #nuestra-filosofia .section-title h2 {
    color: #B21F2D;
    font-style: italic;
  }

  .filosofia-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 50px 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .filosofia-parrafo {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f2f2f2;
  }

  .filosofia-parrafo:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .filosofia-parrafo p {
    color: #757575;
    font-size: 15px;
    line-height: 28px;
    margin-bottom: 20px;
    text-align: justify;
  }

  .filosofia-parrafo p:last-child {
    margin-bottom: 0;
  }

  @media only screen and (max-width: 767px) {
    .filosofia-content {
      padding: 30px 25px;
    }
    
    .filosofia-parrafo {
      margin-bottom: 30px;
      padding-bottom: 30px;
    }
  }


  /*---------------------------------------
      TEAM MEMBERS              
  -----------------------------------------*/

.team-thumb {
    display: flex;
    flex-direction: column; /* Alinea imagen, info y contacto verticalmente */
    width: 100%; /* Ocupa todo el ancho de la columna */
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
}

 .team-info {
    padding: 20px 30px 20px 30px; /* Añadimos padding inferior */
    display: flex;
    flex-direction: column;
    flex: 1; /* Esto hace que el contenedor crezca uniformemente */
}

.team-info p {
    margin-bottom: 15px; /* Espaciado uniforme entre párrafos */
}

.team-contact-info {
    margin-top: auto; /* Empuja este div al fondo de .team-info */
    border-top: 1px solid #e9e9e9;
    padding-top: 15px;
}

.team-thumb img {
    width: 100%;
    height: 250px; /* Ajusta esta altura a tu gusto */
    object-fit: cover; /* Recorta la imagen para que encaje perfectamente sin estirarse */
}
  .team-contact-info .fa {
    margin-right: 5px;
    display: inline-block;
  }

  .team-contact-info p {
    margin-bottom: 2px;
  }

  .team-contact-info a {
    color: #757575;
  }

  .team-thumb .social-icon li {
    font-weight: 500;
  }

  .team-thumb .social-icon li a {
    background: #ffffff;
    border-radius: 100%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 2px 0 2px;
  }

  .team-thumb .social-icon {
    opacity: 0;
    transform: translateY(100%);
    transition: 0.5s 0.2s;
    text-align: center;
    position: relative;
    top: 0;
  }

  .team-thumb:hover .social-icon {
    opacity: 1;
    transition-delay: 0.3s;
    transform: translateY(0px);
    top: -22em;
  }



  /*---------------------------------------
     SERVICE              
  -----------------------------------------*/

  #service {
    background: #B21F2D;
  }

  #service h2,
  #service h4 {
    color: #ffffff;
  }

  #service p {
    color: #d9d9d9;
  }

  #service .service-thumb {
    padding: 0 22px;
  }

  #service .fa {
    font-size: 50px;
    margin-bottom: 10px;
    background: #ffffff;
    color: #B21F2D;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 100%;
  }


  /*---------------------------------------
      team             
  -----------------------------------------*/

  #team, #team-detail {
    background: #f9f9f9;
  }

  #team-detail blockquote {
    margin: 30px 0;
  }

  .team-detail-thumb .team-image img {
    border-radius: 10px;
  }

  .team-detail-thumb h3 {
    margin-bottom: 8px;
  }

  .team-image {
    margin-bottom: 30px;
    position: relative;
  }

  .team-image img {
    width: 100%;
  }

  .team-detail-thumb ul {
    margin: 32px 12px 22px 0px;
  }

  .team-detail-thumb ul li {
    list-style: circle;
    font-weight: normal;
    padding: 6px 12px 6px 0px;
  }

  .team-sidebar {
    margin-top: 16px;
  }

  .team-social-share {
    text-align: center;
    padding-top: 22px;
  }

  .team-social-share .btn {
    border-radius: 100px;
    border: none;
    font-size: 10px;
    font-weight: 600;
    margin: 2px 6px;
    padding: 8px 14px;
  }

  .team-social-share .btn-primary {
    background: #3b5998;
  }

  .team-social-share .btn-success {
    background: #1da1f2;
  }

  .team-social-share .btn-danger {
    background: #dd4b39;
  }

  .team-social-share a .fa {
    padding-right: 4px;
  }

  .recent-post {
    padding-top: 2px;
    padding-bottom: 18px;
  }

  .recent-post .media img {
    border-radius: 100%;
    width: 80px;
    height: 80px;
    margin-right: 5px;
  }

  .recent-post .media-heading {
    font-size: 16px;
    font-weight: 500;
    line-height: inherit;
    margin-top: 5px;
  }

  .team-categories {
    margin-top: 8px;
  }

  .team-categories li a {
    color: #2b2b2b;
  }

  .team-ads {
    background: #ffffff;
    border-right: 4px solid #2b2b2b;
    padding: 42px;
    text-align: center;
    margin: 26px 0 26px 0;
  }

  .team-ads.sidebar-ads {
    border-left: 4px solid #2b2b2b;
    border-right: 0px;
  }

  .team-ads h4 {
    font-size: 18px;
  }

  .team-tags h4 {
    padding-bottom: 6px;
  }

  .team-categories li,
  .team-tags li {
    list-style: none;
    display: inline-block;
    margin: 4px;
  }

  .team-tags li a {
    background: #393939;
    border-radius: 50px;
    color: #ffffff;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    float: left;
    min-width: 30px;
    padding: 6px 12px;
    -webkit-transition: all ease-in-out 0.4s;
    transition: all ease-in-out 0.4s;
  }

  .team-tags li a:hover {
    background: #B21F2D;
  }



  /*---------------------------------------
      APPOINTMENT             
  -----------------------------------------*/

  #appointment {
    padding-top: 100px;
  }

  #appointment label {
    color: #393939;
    font-weight: 500;
  }

  /* IMAGEN DE CONTACTO 300PX */
  #contacto .col-md-6 img {
    max-height: 300px;
    width: auto;
    object-fit: cover;
  }

  #appointment .form-control {
    background: #f9f9f9;
    border: none;
    border-radius: 3px;
    box-shadow: none;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 15px;
    transition: all ease-in-out 0.4s;
  }

  #appointment input,
  #appointment select {
    height: 45px;
  }

  #appointment button#cf-submit {
    background: #B21F2D;
    color: #ffffff;
    font-weight: 600;
    height: 55px;
  }

  #appointment button#cf-submit:hover {
    background: #393939;
    color: #ffffff;
  }


  /*---------------------------------------
     FOOTER              
  -----------------------------------------*/

  footer {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  footer h4 {
    padding-bottom: 5px;
  }

  footer a {
    color: #757575;
  }

  footer a:hover {
    color: #4267b2;
  }

  .contact-info {
    padding-top: 10px;
  }

  .contact-info .fa {
    background: #393939;
    border-radius: 100%;
    color: #ffffff;
    font-size: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    margin-right: 5px;
    margin-bottom: 2px;
  }

  .latest-stories {
    margin-bottom: 20px;
  }

  .stories-image,
  .stories-info {
    display: inline-block;
    vertical-align: top;
  }

  .stories-image img {
    border-radius: 100%;
    width: 65px;
    height: 65px;
  }

  .stories-info {
    margin-left: 15px;
  }

  .stories-info h5 {
    margin-bottom: 2px;
  }

  .stories-info span {
    color: #858585;
    font-size: 12px;
  }

  .opening-hours p {
    line-height: 18px;
  }

  .opening-hours span {
    font-weight: 500;
    display: inline-block;
    padding-left: 10px;
  }

  .copyright-text p,
  .footer-link a {
    color: #858585;
    font-size: 12px;
    font-weight: 500;
  }

  .footer-link a {
    font-size: 12px;
    display: inline-block;
    padding: 0 10px;
    margin-top: 4px;
  }

  .angle-up-btn {
    position: relative;
    bottom: 4em;
    display: block;
  }

  .angle-up-btn a {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    font-size: 20px;
    color: #393939;
    display: inline-block;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 38px;
    transition: transform 0.1s ease-in;
    transform: translateX(0);
  }

  .angle-up-btn a:hover {
    background: #4267b2;
    color: #ffffff;
    transform: translateY(-5px);
  }


  /*---------------------------------------
     SOCIAL ICON              
  -----------------------------------------*/

  .social-icon {
    position: relative;
    padding: 0;
    margin: 0;
  }

  .social-icon li {
    display: inline-block;
    list-style: none;
  }

  .social-icon li a {
    border-radius: 100px;
    color: #464646;
    font-size: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease-in-out;
    position: relative;
  }

  .social-icon li a:hover {
    background: #4267b2;
    color: #ffffff;
  }


  /*---------------------------------------
     RESPONSIVE STYLES              
  -----------------------------------------*/

  @media only screen and (max-width: 1200px) {
    h1 {
      font-size: 4em;
    }
    h2 {
      font-size: 2.5em;
    }
    h3 {
      font-size: 1.5em;
    }

    header {
      height: inherit;
    }
    header span.date-icon {
      border: 0;
      padding-right: 0;
      padding-left: 0;
    }
    header span.email-icon {
      padding-top: 0;
    }

    .navbar-default .navbar-nav li a {
      padding-right: 15px;
      padding-left: 15px;
    }
  }

  @media only screen and (max-width: 992px) {
    .slider .item {
      background-position: center;
    }

    header {
      padding-bottom: 10px;
    }
    header .text-align-right {
      text-align: left;
    }
    header span {
      padding-top: 0;
      padding-left: 0;
      padding-bottom: 0;
    }
  }

  @media only screen and (max-width: 767px) {
    .navbar-default .navbar-collapse, .navbar-default .navbar-form {
      border-color: transparent;
    }
    .navbar-default .navbar-nav li.appointment-btn {
      margin-left: 15px;
    }
    .navbar-default .navbar-nav li a {
      display: inline-block;
      padding-top: 8px;
      padding-bottom: 8px;
    }

    /* Reorganizar logo y botón en móviles - Solución mejorada */
    .navbar {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      position: relative !important;
    }
    
    .navbar .navbar-brand {
      float: none !important;
      display: block !important;
      text-align: center !important;
      margin: 10px auto !important;
      position: static !important;
      order: 1 !important;
    }
    
    .navbar .row {
      width: 100% !important;
      margin: 0 !important;
      order: 2 !important;
    }
    
    .navbar .nav.navbar-nav.navbar-right {
      float: none !important;
      text-align: center !important;
      margin: 0 !important;
      width: 100% !important;
      clear: both !important;
      display: block !important;
    }
    
    .navbar .nav.navbar-nav.navbar-right li.appointment-btn {
      display: block !important;
      width: 100% !important;
      margin: 30px 0 20px 0 !important;
      float: none !important;
    }
    
    .navbar .nav.navbar-nav.navbar-right li.appointment-btn a {
      display: block !important;
      width: 90% !important;
      max-width: 300px !important;
      margin: 0 auto !important;
      text-align: center !important;
    }
    
    /* Asegurar que el botón hamburguesa esté en la posición correcta */
    .navbar-header {
      position: absolute !important;
      top: 10px !important;
      right: 15px !important;
      z-index: 1000 !important;
    }

    /* Ajustar imagen de fondo en sección about para móviles */
    #about {
      background-position: center center !important;
      background-size: cover !important;
      padding-top: 80px;
      padding-bottom: 80px;
    }

    .team-sidebar {
      margin-top: 2em;
    }

    #appointment-form {
      padding-top: 4em;
      padding-bottom: 4em;
    }

    footer {
      padding-top: 60px;
      padding-bottom: 0;
    }
    .footer-thumb {
      padding-bottom: 10px;
    }

    .border-top {
      text-align: center;
    }

    .copyright-text {
      margin-top: 10px;
    }

    .angle-up-btn {
      bottom: 10em;
    }
  }

  @media only screen and (max-width: 639px) {
    h1 {
      font-size: 3em;
      line-height: 1.2em;
    }
    h2 {
      font-size: 2.1em;
    }
    h4 {
      font-size: 1.4em;
    }

    #home h3 {
      font-size: 11px;
      letter-spacing: 1px;
    }

  }


  /*---------------------------------------
      THERAPY CARDS              
  -----------------------------------------*/

  .therapy-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
  }

  .therapy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(178, 31, 45, 0.2);
    border-color: #B21F2D;
  }

  .therapy-card.active {
    border-color: #B21F2D;
    transform: translateY(-5px);
  }

  .therapy-card .therapy-icon {
    margin-bottom: 20px;
  }

  .therapy-card .therapy-icon i {
    font-size: 50px;
    color: #B21F2D;
    transition: all 0.3s ease;
  }

  .therapy-card:hover .therapy-icon i {
    transform: scale(1.1);
    color: #393939;
  }

  .therapy-card h3 {
    color: #393939;
    font-size: 1.4em;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
  }

  .therapy-card h3 .fa-chevron-down {
    font-size: 0.6em;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  .therapy-card.active h3 .fa-chevron-down {
    transform: rotate(180deg);
  }

  .therapy-card:hover h3 {
    color: #B21F2D;
  }

  /* Contenido del acordeón */
  .therapy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    text-align: left;
    margin-top: 0;
  }

  .therapy-card.active .therapy-content {
    max-height: 2000px;
    margin-top: 20px;
  }

  .therapy-content p {
    color: #757575;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 15px;
    text-align: justify;
  }

  .therapy-content h4 {
    color: #B21F2D;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: left;
  }

  .therapy-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
  }

  .therapy-content ul li {
    color: #757575;
    font-size: 14px;
    line-height: 24px;
    padding: 5px 0 5px 25px;
    position: relative;
  }

  .therapy-content ul li:before {
    content: "✓";
    color: #B21F2D;
    font-weight: bold;
    position: absolute;
    left: 0;
  }

  .therapy-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid #B21F2D;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #393939;
    text-align: center;
  }

  #terapias {
    background: #f9f9f9;
  }


  /*---------------------------------------
      ESPACIOS STYLES              
  -----------------------------------------*/

  .espacios-thumb {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }

  .espacios-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .espacios-thumb img {
    border-radius: 10px;
    width: 100%;
    height: auto;
  }


  /*---------------------------------------
      PERFIL CONTENT JUSTIFIED              
  -----------------------------------------*/

  .perfil-content .text-justified {
    text-align: justify;
    text-justify: inter-word;
  }

/* Contacto - mover desde el <style> inline */
/* Escritorio */
.contacto-iconos {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Espacio entre icono y texto */
.contacto-iconos i {
    margin-right: 5px;
}

/* Estilo enlaces */
.contacto-iconos a,
.contacto-iconos span {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.contacto-iconos a:hover {
    opacity: 0.7;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .contacto-iconos {
        justify-content: center; /* centrado en móvil */
        text-align: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .contacto-iconos span,
    .contacto-iconos a {
        width: 100%; /* cada elemento ocupa una lÃ­nea */
    }
}

/* Logo */
.navbar-brand img.logo { height: 80px; margin-right: 10px; display: inline-block; }

/* Botón de cita (opcional) */
.appointment-btn a { display: inline-block; padding: 8px 12px; border-radius: 4px; background: #2a6; color: #fff; text-decoration: none; }

.titulo-cuando-acudir { font-family: 'Playfair Display', serif; font-weight: 600; text-align: center; }
.filosofia-parrafo p { margin-bottom: 1rem; line-height: 1.6; }

/* Terapias: control básico de visibilidad y estilos de toggle */
.therapy-card { border: 1px solid #eee; padding: 18px; margin-bottom: 20px; position: relative; background: #fff; border-radius: 8px; }
.therapy-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.therapy-toggle { background:transparent; border:none; cursor:pointer; font-size:1.05rem; }
.therapy-content { margin-top:12px; }
.therapy-content[hidden] { display:none; }

/* Visually hidden (accesibilidad) */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.espacios-thumb figure { margin: 0; overflow: hidden; border-radius: 8px; }
.espacios-thumb img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.espacios-thumb:hover img { transform: scale(1.03); }

.appointment-image {
  max-height: 500px;
  width: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Ajustes pequeños de formulario */
.form-group { margin-bottom: 1rem; }
#cf-submit { width: auto; padding: .6rem 1.2rem; }

<style>
.therapy-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.25s ease;
  display: block; /* importante para párrafos/ul */
  visibility: visible;
}

.therapy-card.open .therapy-content {
  /* Si usás JS para setear maxHeight no hace falta poner aquí max-height grande,
     pero dejamos opacity manejada por JS también */
  opacity: 1;
}

/* Rotación de la flecha */
.therapy-card .fa-chevron-down {
  transition: transform 0.25s ease;
}
.therapy-card.open .fa-chevron-down {
  transform: rotate(180deg);
}
</style>

