/* Custom Scroll Sections - Con Parallax */

body.single-taller main#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden;
}

.scroll-section {
    min-height: calc(100vh - 137px);
    position: fixed;
    top: 137px;
    left: 0;
    right: 0;
    background-image: url('https://firebrick-walrus-490307.hostingersite.com/wp-content/uploads/2025/12/fondo_mancha_blancos_opt.webp');
    background-size: auto;
    background-repeat: repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    display: flex;
    flex-direction: column;
}

.scroll-section.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.scroll-section.passed {
    opacity: 1;
    pointer-events: none;
}

.scroll-section.future {
    transform: translateY(100vh);
    opacity: 1;
}

.scroll-section:nth-child(1) {
    background: none;
}

.scroll-section::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: "";
    background: #ffffff9c;
    z-index: -1;
}

/* Z-index stacking - AMPLIADO para más slides */
.scroll-section:nth-child(1) { z-index: 1; }
.scroll-section:nth-child(2) { z-index: 2; }
.scroll-section:nth-child(3) { z-index: 3; }
.scroll-section:nth-child(4) { z-index: 4; }
.scroll-section:nth-child(5) { z-index: 5; }
.scroll-section:nth-child(6) { z-index: 6; }
.scroll-section:nth-child(7) { z-index: 7; }
.scroll-section:nth-child(8) { z-index: 8; }
.scroll-section:nth-child(9) { z-index: 9; }
.scroll-section:nth-child(10) { z-index: 10; }
.scroll-section:nth-child(11) { z-index: 11; }
.scroll-section:nth-child(12) { z-index: 12; }
.scroll-section:nth-child(13) { z-index: 13; }
.scroll-section:nth-child(14) { z-index: 14; }
.scroll-section:nth-child(15) { z-index: 15; }
.scroll-section:nth-child(16) { z-index: 16; }
.scroll-section:nth-child(17) { z-index: 17; }
.scroll-section:nth-child(18) { z-index: 18; }
.scroll-section:nth-child(19) { z-index: 19; }


/* Contenedor de la sección */
.fp-content-wrapper {
    width: 100%;
    height: calc(100vh - 137px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Contenedor de la sección CON FOOTER - scrolleable */
.fp-content-wrapper.has-footer {
    height: auto;
    max-height: calc(100vh - 137px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Section heading FIJO arriba */
.section-heading {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Scroll section content SCROLLEABLE */
.scroll-section-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 10px auto;
    min-height: 0;
}

/* Cuando el wrapper tiene footer, el content NO scrollea */
.scroll-section.has-footer .scroll-section-content {
    overflow: visible;
    flex: 0 0 auto;
    height: auto;
    min-height: min-content !important;
}

/* Scrollbar en scroll-section-content - MÁS VISIBLE */
.scroll-section-content::-webkit-scrollbar {
    width: 12px;
}

.scroll-section-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.scroll-section-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

.scroll-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Scrollbar en fp-content-wrapper.has-footer */
.fp-content-wrapper.has-footer::-webkit-scrollbar {
    width: 12px;
}

.fp-content-wrapper.has-footer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.fp-content-wrapper.has-footer::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
}

.fp-content-wrapper.has-footer::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.6);
}

.taller-section {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 10px 0;
}

/* Colores headings */
body.single-taller .scroll-section:nth-child(3n+2) .section-heading {
    background-color: #ac8a3a;
    color: #fff;
}

body.single-taller .scroll-section:nth-child(3n+3) .section-heading {
    background-color: #4e3354;
    color: #d6badb;
}

body.single-taller .scroll-section:nth-child(3n+4) .section-heading {
    background-color: #d6badb;
    color: #4e3354;
}

/* Footer como slide - DEPRECADO pero mantenido por compatibilidad */
.taller-footer-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.taller-footer-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    padding: 20px 0;
}

/* Botón flotante de inscripción */
.btn-inscripcion-flotante {
    position: fixed;
    bottom: 30px;
    right: 15px;
    z-index: 10000;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-inscripcion-flotante:hover {
    text-decoration: none!important;
}

.btn-inscripcion-flotante:hover h4 {
    background-color: #4e3554;
}

.btn-inscripcion-flotante img {
    width: 100%;
    height: auto;
    display: block;
    width: 105px;
    /* mix-blend-mode: difference;
    filter: invert(1); */
}

.btn-inscripcion-flotante h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-align: center;
    mix-blend-mode: difference;
    color: #fff;
    background: #4e3554cc;
    display: inline-block;
    padding: 9px 10px;
    backdrop-filter: contrast(0.7);
    border-radius: 50%;
}

/* Mobile */
@media (max-width: 767px) {
    .btn-inscripcion-flotante {
        width: 80px;
        bottom: 20px;
        right: 20px;
    }
    
    .btn-inscripcion-flotante h4 {
        font-size: 12px;
    }
}

/* Bio con imagen */
.bio-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.bio-texto {
    flex: 1;
}

.bio-imagen {
    flex-shrink: 0;
    width: 200px;
}

.bio-imagen img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 20px;
}

/* Mobile */
@media (max-width: 767px) {
    .bio-content {
        flex-direction: column;
    }
    
    .bio-imagen {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Navegación por dots */
.scroll-dots {
    position: fixed;
    left: 20px;
    top: calc(137px + 31px);
    height: calc(100vh - 137px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d6badb;
    border: 2px solid #d6badb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot:hover {
    transform: scale(1.2);
}

.scroll-dot.active {
    background-color: #4e3354;
    border-color: #4e3354;
}

/* Mobile */
@media (max-width: 767px) {
    body.single-taller main#content {
        margin-top: 150px !important;
        padding-top: 30px !important;
        padding-bottom: 60px !important;
        overflow: visible !important;
        background-color: #ffffff61 !important;
    }
    
    .scroll-section {
        position: relative !important;
        top: auto !important;
        min-height: auto !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        margin-bottom: 0 !important;
        z-index: auto !important;
    }
    
    .fp-content-wrapper {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .scroll-section-content {
        overflow: visible !important;
        margin: 0 !important;
    }
    
    /* Asegurar que el header sea visible */
    .vyp-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        z-index: 9999 !important;
    }
    
    /* Dots y botón flotante en mobile */
    .scroll-dots {
        display: none !important;
    }
    
    .btn-inscripcion-flotante {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    /* Section heading en mobile */
    .section-heading {
        position: relative !important;
    }
    
    /* Taller section en mobile */
    .taller-section {
        max-height: none !important;
        overflow-y: visible !important;
    }
}

/* Animación de color botón */
.btn-inscripcion-flotante .icon {
    display: block;
    width: 105px;
    height: 80px;
    background-color: #000000;
  
    -webkit-mask-image: url("https://firebrick-walrus-490307.hostingersite.com/wp-content/uploads/2026/01/1000118856.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  
    mask-image: url("https://firebrick-walrus-490307.hostingersite.com/wp-content/uploads/2026/01/1000118856.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* body.postid-256 .btn-inscripcion-flotante .icon {
    background-color: #ac8a3a;
    animation: suturaColorCycle 9s linear infinite;
} */

@keyframes suturaColorCycle {
    0%   { background-color: #ac8a3a; }
    33%  { background-color: #4e3354; }
    66%  { background-color: #d6badb; }
    100% { background-color: #ac8a3a; }
}

section.has-footer .fp-content-wrapper {
    overflow-y: auto;
}


.taller-footer-section iframe {
    border-radius: 15px;
    border: none!important;
}

.scroll-section-content a {
    color: #ed3928 !important;
    /* text-decoration: none; */
}

.scroll-section-content a:hover {
    font-size: inherit!important;
    text-decoration: none;
}

.scroll-section-content h2 {
    font-family: 'Canopee';
    font-size: 36px;
    font-weight: 300;
}

/* Cartelito de inscripción inhabilitada */
.cartel-inhabilitado {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    z-index: 100;
}

.cartel-inhabilitado p {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    font-weight: 400 !important;
}

.cartel-inhabilitado a {
    color: #ed3928 !important;
    text-decoration: underline;
    font-weight: 500;
    font-size: 16px !important;
}

.cartel-inhabilitado a:hover {
    color: #4e3354 !important;
    text-decoration: none;
    font-size: 16px !important;
}

/* Mobile */
@media (max-width: 767px) {
    .cartel-inhabilitado {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 12px 15px;
    }
    
    .cartel-inhabilitado p {
        font-size: 14px !important;
    }
    
    .cartel-inhabilitado a {
        font-size: 14px !important;
    }
    
    .cartel-inhabilitado a:hover {
        font-size: 14px !important;
    }
}