    body, html {
        height: 100%;
        margin: 0;
    }

    @font-face {
        font-family: 'Fenomen Sans Black';
        src: url('/fonts/fenomen/FenomenSans-Black.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: 'Fenomen Sans Regular';
        src: url('/fonts/fenomen/FenomenSans-CNRegular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }

    .titulo, h3, .black {
        font-family: 'Fenomen Sans Black', sans-serif;
        color: #24729d;
    }


    h6, h5, h4, .small  {
        font-family: 'Fenomen Sans Regular', sans-serif;
        color: #24729d;
    }

    a {
        color:  #24729d;
    }

    a:hover {
        color: #e9bc23;
    }


    .card-services {
        box-sizing: border-box;               /* importante para el borde */
        border: 3px solid transparent;        /* mismo grosor siempre -> evita reflow */
        transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
        background-color: transparent !important;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;                     /* evita que elementos escalados creen huecos */
        position: relative;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
        cursor: pointer;
    }

    /* asegura que el cuerpo de la card ocupe el espacio entero */
    .card-services .card-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    /* icono (contenedor superior) */
    .card-services .icon {
        overflow: hidden;
        opacity: 1;
        transition: max-height .45s ease, opacity .25s ease;
    }

    .card-services .service-title {
        overflow: hidden;
        opacity: 1;
        transition: max-height .45s ease, opacity .25s ease;
    }

    /* descripción: inicialmente oculta */
    .card-services .descripcion {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height .45s ease, opacity .25s ease;
    }

    /* asegurar que filas internas no generen márgenes negativos fuera de la tarjeta */
    .card-services .row {
      margin-left: 0;
      margin-right: 0;
    }

    /* imágenes como bloque (evita gaps por baseline) */
    .card-services img {
      display: block;
      width: 100%;
      height: auto;
    }

    /* --------------------------
       Hover en escritorio
       -------------------------- */
    @media (hover: hover) {
        .card-services:hover {
            border-color: #254a5a;              /* sólo cambia color, no ancho */
            transform: scale(1.03);             /* escala más moderada */
            box-shadow: 0 8px 20px rgba(0,0,0,0.16);
            z-index: 2;                          /* evita que otra tarjeta se solape por encima */
        }
        .card-services:hover .icon {
            max-height: 0;
            opacity: 0;
        }
        .card-services:hover .descripcion {
            max-height: 700px;  /* ajústalo si necesitas más/menos */
            opacity: 1;
        }
        .card-services:hover .service-title {
            max-height: 0;
            opacity: 0;
        }
    }   

    /* --------------------------
       Touch devices: activación por .active
       -------------------------- */
    @media (hover: none) {  
        .card-services.active {
            border-color: #254a5a;
            /* en móviles evitar escala si causa problemas: usa transform: none; si prefieres */
            transform: scale(1.02);
            box-shadow: 0 6px 18px rgba(0,0,0,0.14);
        }
        .card-services.active .icon {
            max-height: 0;
            opacity: 0;
        }
        .card-services.active .descripcion {
            max-height: 700px;
            opacity: 1;
        }

        .card-services.active .service-title {
            max-height: 0;
            opacity: 0;
            margin-top: 0px !important;
        }
    }



    .footer {
        background-color: white;
        position: relative;
    }

    .footer::after {
        content: "";
        position: absolute;
        top: 0; /* parte superior */
        left: 50%; /* punto de referencia en el centro */
        transform: translateX(-50%); /* la mueve a la izquierda la mitad de su ancho */
        width: 90%; /* ancho de la línea */
        height: 3px; /* grosor */
        background: #e9bc23;
        border-radius: 2px;
    }

    .hero-section {
        background-image: linear-gradient(180deg, rgba(37, 114, 163, 0.2) 0%, rgba(37, 114, 163, 0.7) 100%), url('/hero.webp') !important;
        background-size: cover;
        height: 100vh;
        position: relative;
        background-position: center;
    }
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .hero-text {
        position: relative;
        text-align: center;
        top: 50%;
        transform: translateY(-50%);
        color: white;
    }
    .hero-text h1 {
        font-size: 4rem;
        font-weight: bold;
    }
    .hero-text p {
        font-size: 1.25rem;
        margin: 1rem 0;
    }

    .navbar {
        background-color: white;
    }

    .et_pb_section_0 {
        border-radius: 0 0 47vw 0;
        overflow: hidden;
        border-right: 2vw solid #24729d;
        z-index: 10;
        box-shadow: 60px 0px 0px 0px rgba(223, 188, 35, 0.7);

        opacity: 0; /* Inicialmente invisible */
        transition: opacity 4s ease-in-out; /* Transición de 4 segundos */
    }


    .row {
        margin-left: 0px;
        margin-right: 0px;
    }

    .card-custom {
      overflow: hidden;
      min-height: 350px;
      box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
    }

    .card-custom-img {
      height: 70px;
      min-height: 70px;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      border-color: inherit;
    }

    /* First border-left-width setting is a fallback */
    .card-custom-img::after {
        position: absolute;
        content: '';
        top: 47px;
        left: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-top-width: 40px;
        border-right-width: 0;
        border-bottom-width: 0;
        border-left-width: 545px;
        border-left-width: calc(575px - 5vw);
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: inherit;
    }

    .card-custom-avatar img {
      border-radius: 50%;
      box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
      position: absolute;
      top: 20px;
      left: 1.25rem;
      width: 70px;
      height: 70px;
    }


    

    .row.justify-content-around {
        display: flex;
        align-items: stretch;
    }

    .wrapper:after {
        content: "";
        background: #e9bc23;
        width: 30%;
        height: 90%;
        display: inline-block;
        position: absolute;
        left: -45px;
        top: -65px;
        z-index: -1;
        border-radius: 1rem;
    }

    .wrapper:before {
        content: "";
        background: #24729d;
        width: 70%;
        height: 90%;
        display: inline-block;
        position: absolute;
        right: -45px;
        bottom: -65px;
        z-index: -1;
        border-radius: 1rem;
    }

    .wrapper-left2:after {
        content: "";
        background: #e9bc23;
        width: 30%;
        height: 90%;
        display: inline-block;
        position: absolute;
        right: -45px;
        bottom: -65px;
        z-index: -1;
        border-radius: 1rem;
    }



    .wrapper-left:before {
        content: "";
        background: #24729d;
        width: 70%;
        height: 90%;
        display: inline-block;
        position: absolute;
        left: -45px;
        top: -65px;
        z-index: -1;
        border-radius: 1rem;
    }

    .img-rounded {
        border-radius: 1rem;
    }

   

    .section-title {
        /*font-size: 2rem;
        font-weight: bold;*/
        text-align: center;
        position: relative;
        display: inline-block;
        padding-bottom: 0.5rem;
    }
    .section-title::after {
        content: "";
        position: absolute;
        width: 60%;
        height: 4px;
        background: linear-gradient(to right, #e9bc23, #e9bc23);
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    ul { list-style-type: "🔔 "; }

    .online { list-style-type: "💻" }
    .presential { list-style-type: "🏢" }


    /* Fondo del banner en el row */
    .banner-bg {
        min-height: 350px;              /* alto del banner */
        background: url('banner.webp') no-repeat left center;
        background-size: cover;
        position: relative;
        background-position: bottom;
    }

    /* Opcional: oscurecer suavemente la mitad derecha para legibilidad */
    .banner-bg::after{
        content:"";
        position:absolute; inset:0 0 0 50%;
        /*background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.6) 100%);*/
        pointer-events:none;
    }

    :root{
        --wa-size: 56px;
        --wa-bg: #25D366;
        --wa-shadow: 0 10px 24px rgba(0,0,0,.25);
    }
    .wa-float{
        position: fixed;
        right: 18px;
        bottom: 18px;
        width: var(--wa-size);
        height: var(--wa-size);
        border-radius: 999px;
        background: var(--wa-bg);
        display: grid;
        place-items: center;
        color: #fff;
        box-shadow: var(--wa-shadow);
        z-index: 9999;
        text-decoration: none;
        transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
        outline: none;
    }
    .wa-float:hover{ transform: translateY(-2px); filter: brightness(1.05); }
    .wa-float:active{ transform: translateY(0); }
    /* Pulso suave opcional */
    .wa-float::after{
        content:"";
        position:absolute; inset:0;
        border-radius: inherit;
        box-shadow: 0 0 0 0 rgba(37,211,102,.45);
        animation: wa-pulse 1.8s ease-out infinite;
    }
    @keyframes wa-pulse{
        0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
        70%{ box-shadow: 0 0 0 18px rgba(37,211,102,0); }
        100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
    }
      /* Ajustes en móviles grandes */
    @media (max-width: 480px){
        :root{ --wa-size: 52px; }
        .wa-float{ right: 14px; bottom: 14px; }
    }


    #map {
        width: 100%;
        height: 400px;
    }
    .branch-list {
        cursor: pointer;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }
    .branch-list:hover {
        background-color: #f8f9fa;
    }

    @media (max-width: 1200px) { /* Tablets */

        .wrapper:before {
            right: -8px !important;
        }
    }

    @media (max-width: 768px) { /* Tablets */
        .hero-title {
            font-size: 3rem;
        }

        .titulo {
            font-size: 3rem;
        }
    }

    @media (max-width: 576px) { /* Móviles */
        .hero-title {
            font-size: 2rem;
        }

        .titulo {
            font-size: 2rem;
        }

        .wrapper-left2:after {
            right: -14px;
        }

        .wrapper2:before {
            right: -14px;
        }
    }


    #agendar-cita {
        color: white;
        border: 2px solid white;
    }

    #agendar-cita:hover {
        background-color: #2f6ca5;
        border: 2px solid #2f6ca5;
    }

    .primary-btn {
        color: #2f6ca5;
        border: 2px solid #2f6ca5;
    }

    .primary-btn:hover {
        color: white;
        background-color: #2f6ca5;
        border: 2px solid #2f6ca5;
    }

    .custom-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #fff;
        border: 2px solid #ccc;
        border-radius: 6px;
        padding: 10px 40px -1px 15px;
        font-size: 1rem;
        color: #333;
        width: 100%;
        transition: all 0.3s ease;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3e%3cpath fill='%23999' d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        cursor: pointer;
    }

    .custom-select:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
    }

    .custom-select:hover {
        border-color: #888;
    }

    .custom-select option {
        padding: 10px;
    }
