/*!
Theme Name: Escuela Begoña Ferrero
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: JMFM
Author URI: https://juanfiorillo.es/
Description: Tema hijo de Kadence para el sitio web de la Escuela Begoña Ferrero.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* La personalización del tema hijo comienza aquí ------------------------------
-------------------------------------------------------------- */

.fade-in{-webkit-animation:fade-in 1.3s ease-in-out .3s both;animation:fade-in 1.3s ease-in-out .3s both}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.elemento-muy-centrado {
    max-width: 60%;
    margin: 0 auto;
}

figure.imagen-destacada img {
    border-radius: 8px;
}

body.tax-categoria-cursos-masaje h2 {
    font-size: 1.875rem;
}
ul.entradas-cursos-home article {
    min-height: 100%;
}

.categorias-cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: var( --global-content-width, 1320px );
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--global-content-edge-padding);
    padding-right: var(--global-content-edge-padding);
    padding-top: var(--global-kb-spacing-xxl, 5rem);
    padding-bottom: var(--global-kb-spacing-xxl, 5rem);
}

.categoria-curso {
    text-align: left;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.categoria-curso h3 {
    color: #333;
}
.categoria-curso:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.categoria-imagen {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 ratio → 3/4 = 0.75 = 75% */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

.categoria-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.categoria-curso:hover .categoria-imagen img {
    transform: scale(1.05);
}
.categoria-titulo {
    color: #333;
    padding: 20px 10px 20px 20px;
}
h3.categoria-titulo {
    margin: 0 !important;
}
.categoria-descripcion,
.categoria-ver-link {
    padding: 0 20px 20px;
}

.categoria-ver-link span.ver-texto {
    font-size: 80%;
    background-image: linear-gradient(var(--global-palette-highlight-alt2), var(--global-palette-highlight));
    background-repeat: no-repeat;
    background-position: 4px bottom;
    background-size: 100% 10px;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}
.tab-link {
    padding: 0.5rem 1rem;
    background: #eee;
    cursor: pointer;
    border-radius: 4px;
}
.tab-link.active {
    background: #333;
    color: #fff;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.boton-contacto {
      display: none;
    }
.joinchat__button {
        bottom: 50px !important;
    }

.mi-boton-fijo {
    position: fixed;
    top: 110px;
    right: 20px;
    z-index: 9999 !important;
}



 /* Estilos para pantallas pequeñas ---------------------------------------
 --------------------------------------------------------*/

@media (max-width: 768px) {
    .elemento-muy-centrado {
       max-width: 95%;
       margin: 0 auto;
}
    body.tax-categoria-cursos-masaje h2 {
        font-size: 1.375rem;
        }
    .tabs-nav {
        position: sticky;
        top: 80px;
        z-index: 10;
        background: #fff;
        padding: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        list-style: none;
        margin: 0;
        border-bottom: 1px solid #ddd;
        }

    .tab-link {
        width: 100%;
        }
     .boton-contacto {
      display: block;
      position: fixed;
      bottom: 0;
      min-width: 100%;
      z-index: 999;
    }
    .joinchat__button {
        bottom: 50px !important;
    }
}