@import url('_fonts.css');
/* ==========================================================================
   GLOBAL
   ========================================================================== */
:root{
    --color1:#3cb4e5;
    --rgbcolor1:60,180,229;

    --color2:#041226;
    --rgbcolor2:4,18,38;

    --font-family: 'Euclid Circular A';
}
html {
    scroll-behavior: smooth;
}

body{
    font-family: var(--font-family), serif;
    overflow-x: hidden !important;
}
.wrap{
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 20px;
}
h1.title-section{
    font-size: 1.9rem;
    line-height: 1.2;
    font-weight: 200;
    margin-bottom: 20px;
    text-align: center;
    &.big{
        font-size: 3rem;
        margin-bottom: 3.5rem;
    }
}
h3.title-section{
    font-size: 24px;
    line-height: 1.5;
    font-weight: 800;
}


.icon-bar {
    position: fixed;
    top: 50%;
    right: 0;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: #00a5c2;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 10px;
    z-index: 100;
}

.icon-bar a {
    display: block;
    text-align: center;
    padding: 5px;
    transition: all 0.3s ease;
    color: #00a5c2;
    font-size: 16px;
    background: #ffffff;
    border-radius: 50%;
    line-height: 0;
    margin-bottom: 10px;
}

.icon-bar span.share {
    color: #ffffff;
    background: none;
    border-bottom: 1px solid;
    border-radius: 0;
    padding-bottom: 5px;
    font-size: 26px;
    cursor: pointer;
}

.icon-bar span.share:hover{
    color: #00426f;
}

.icon-bar a:hover{
    background: #00426f;
    color: #ffffff;
}

.rrss-share{
    transition: max-height ease-in-out .4s;
}

.open-floatbar{
    display: block;
    animation: fade-in 1s;
}

.close-floatbar{
    display: none;
    animation: fade-out 1s;
}
   
/* ==========================================================================
   header
   ========================================================================== */

.navbar{
    background-color: #ffffff;
    padding: 0;
    border-bottom: 1px solid #cedcdf;
    &.fixed-top{
        position: sticky !important;
    }
    @media screen and (width > 768px) {
        padding: 8px;
    }
}

.navbar-brand{
    padding-left: 2rem;
}

.navbar-brand img{
    width: 230px;
}

a.nav-link{
    padding-right: 20px !important;
    padding-left: 20px !important;
    color: #000000 !important;
    border-bottom: 2px solid transparent;
    transition: all .5s ease-in;
}

a.nav-link:hover{
    border-bottom: 2px solid #000000;
    transition: all .2s ease-out;
}

.counter{
    background-color: #cedcdf;
    padding: 10px 20px;
    margin-left: 10px;
}

.counter-number{
    font-size: 22px;
    font-weight: 700;
}

.counter-text{
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {

    .navbar{
        padding: 8px;
    }

    .navbar-brand img{
        width: 170px;
    }

    .navbar-brand {
        padding-left: .5rem;
    }

}
   
/* ==========================================================================
   slider
   ========================================================================== */

section#slider{
    video{
        width: 100%;
        height: auto;
        object-fit: cover;
        position: relative;
        z-index: 1;
        display: block;
    }
    &>img{
        width: 100%;
        height: auto;
    }
}

.tag{
   font-weight: 700;
   font-size: 16px;
   background-color: #b3c9c3;
   padding: 10px 20px;
   display: inline-block;
   margin-bottom: 25px;
}

.counter-mobile{
    display: none;
    font-weight: 700;
    font-size: 12px;
    background-color: #cedcdf;
    padding: 4px 14px;
    margin-bottom: 25px;
    float: right;
}

h1.title-slider{
   font-size: 50px;
   margin-bottom: 25px;
}

h4.text-slider{
   font-size: 24px;
   line-height: 1.5;
}

.txt-white{
    color: #ffffff;
}

@media (max-width: 768px) {

    .tag{
        padding: 4px 14px;
    }

    .img-book-1{
        width: 66%;
    }

    h1.title-slider {
        font-size: 30px;
        text-align: center;
    }

    h4.text-slider {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
    }

    .counter{
        display: none;
    }
    
    .counter-mobile{
        display: inline-block;
    }

    .counter-number-mobile{
        font-weight: 900;
    }
}
   
/* ==========================================================================
   form
   ========================================================================== */

section#form{
    background-color: var(--color1);
    padding: 50px 0;
    &.form-success{
        background-image: url('../img/form-bg.jpg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
}

.bajada{
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.form-control{
    color: #999999;
    height: 50px;
    font-family: var(--font-family);
}

.form-control::placeholder{
    color: #999999;
    opacity: 1;
}

p.text-form{
    text-align: center;
    font-family: var(--font-family);
}

select{
    padding-right: 10px;
}

.form-check-label{
    font-family: var(--font-family);
}

.btn-form{
    background-color: #000;
    color: #ffffff;
    padding: 10px 50px;
    font-weight: bold;
    border: 2px solid #00a5c2;
    letter-spacing: 3px;
    font-size: 20px;
    text-transform: uppercase;
}

.btn-form:hover{
    background-color: #ffffff;
    color: #00a5c2;
}

.share-icons-form a {
    text-align: center;
    padding: 5px;
    transition: all 0.3s ease;
    color: #bc919a;
    font-size: 30px;
    background: #ffffff;
    border-radius: 50%;
    line-height: 0;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
}

.share-icons-form a:hover{
    background: #00a5c2;
    color: #ffffff;
}

.share-icons-form a i{
    width: 40px;
    height: 40px;
}

#form-success{
    display: none;
    h3{
        color:#fff;
        font-weight: 100;
        &:first-child{
            font-size: 2rem;
            text-transform: uppercase;
        }
        &:nth-child(2){
            font-size: 1.2rem;
            color:var(--color1);
            margin-bottom: 40px;
        }
    }
    img{
        max-width: 200px;
    }
}

@media (max-width: 768px) {

    .form-control{
        height: 40px;
        font-size: 14px;
        border-radius: 0;
    }

    p.text-form, .form-check-label{
        font-size: 14px;
    }

    form{
        padding: 0 20px;
    }

    .btn-form{
        font-size: 13px;
    }

}

/* ==========================================================================
   gif
   ========================================================================== */

section#gif{
    background-color: #f9f9fa;
    background-image: url('../img/bg-circle.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    padding:70px 0px 0px;
    .wrap{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
        align-items: center;
        &>div:nth-child(2){
            grid-column: 1 / span 2;
            grid-row: 1;
        }

        .box-animador{
            display: flex;
            align-items: flex-end;
            height: 100%;
            img{    
                width: 100%;
                height: auto;            
            }
        }
        p{
            font-size: 1.4rem;
            line-height: 1.5;
            span.destacado{
                font-weight: 900;
            }
        }
    }
    @media(width > 768px) {
        padding:0px;
        .wrap{
            grid-template-columns: repeat(3, 1fr);
            &>div:nth-child(2){
                grid-column: 2;
                grid-row: 1;
            }
        }

    }
}


/* ==========================================================================
   videos
   ========================================================================== */

section#videos{
    padding: 80px 0 50px;
    background-color: rgba(96, 178, 225, 0.1);
    .wrap{
        max-width: 1000px;
        .video-responsive{
            width: 100%;
            height: auto;
            aspect-ratio: 16/9;
            max-width: 800px;
            margin-bottom: 100px;
            margin-inline: auto;
            iframe{
                width: 100%;
                height: 100%;
            }
        }
        .video-list{
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
            .capsules-thumbnails{
                flex: 1 1 300px; /* grow | shrink | basis */
                min-width: 280px; /* mínimo para mantener legibilidad */
                max-width: 400px;
                .capsule-thumbnails{
                    position: relative;
                    img{
                        width: 100%;
                        height: auto;
                    }
                    /* &::after{
                        position: absolute;
                        top:0px;
                        left: 0px;
                        z-index: 10;
                        content: '';
                        display: block;
                        width: 100%;
                        height: 100%;
                        background-color: rgba(var(--rgbcolor2), 0.5);
                    } */
                }
                .capsule-info{
                    width: 100%;
                    h5{
                        font-weight: 200;
                        font-size: 1.5rem;
                        display: flex;
                        gap: 1rem;
                        align-items: center;
                        justify-content: center;
                        margin-bottom: 25px;
                        b{
                            font-weight: 700;
                        }
                        img{
                            width: 48px;
                            flex-grow: 0;
                            flex-shrink: 0;
                        }
                    }
                    p{
                        max-width: 100%;
                        word-wrap: break-word;
                        flex-shrink: 1;
                        width: 100%;
                        text-align: center;
                        font-size: 1.2rem;
                        font-weight: 100;
                        b{
                            font-weight: 700;
                        }
                    }
                }
            }
        }
    }
    @media screen and (width > 768px) {
        padding: 80px 0 150px;
    }
}



.video-responsive{
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    padding-top: 30px;
    position: relative;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.video-responsive iframe, .video-responsive object, .video-responsive embed {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.capsules-thumbnails{
    cursor: pointer;
}

.capsules-thumbnails img{
    border: 2px solid transparent;
}

capsules-thumbnails img:hover{
    border: 2px solid #00a5c2;
}

.capsule-data{
    background-color: #00a5c2;
    border-radius: 10px;
    padding: 15px 20px;
}

.name-user{
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
}

.line-white{
    border-left: 2px solid #ffffff;
    height: 40px;
    margin-left: 25px;
}

.name-capsule{
    color: #ffffff;
    margin-left: 25px;
}

h5.name-user-thumbnails{
    font-weight: 900;
    text-transform: uppercase;
    font-size: 18px;
}

@media (max-width: 768px) {

    .lamp{
        display: none;
    }

    h3.title-capsules{
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .video-responsive{
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

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

    .name-user{
        font-size: 14px;
    }

    .line-white{
        margin-left: 10px;
    }

    .name-capsule{
        font-size: 12px;
        margin-left: 10px;
    }

    h5.name-user-thumbnails{
        font-size: 14px;
    }

    p.name-capsule-thumbnails{
        font-size: 12px;
    }

}

/* ==========================================================================
   Info
    ========================================================================== */
section#info{
    position: relative;
    .wrap{
        display: block;
        width: 100%;
        max-width: 600px;
        background-color: var(--color2);
        color: #fff;
        padding: 20px 20px;
        text-align: center;
        text-transform: uppercase;
        cursor: pointer;
        p{
            font-size: clamp(1.2rem, 2vw, 1.7rem);
            font-weight: 100;
            line-height: 1.1;
            b{
                font-weight: 700;
                display: block;
            }
        }
        img.ico-handclick{
            position: absolute;
            bottom: -21px;
            right: 5px;
            z-index: 10;
            width: 60px;
        }
    }
    @media screen and (width > 768px) {
        height: 0px;
        .wrap{
            transform: translateY(-50%);
            img.ico-handclick{
                right: -21px;
            }
        }
        
    }
}


/* ==========================================================================
   capsulas
   ========================================================================== */

section#capsulas{
    padding: 65px 0px 100px;
    .wrap{
        max-width: 1200px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 20px 40px;
        .boxCapsula{
            display: flex;
            gap: 1rem;
            align-items: center;
            a{
                display: block;
                border:1px solid #000;
                position: relative;
                &:hover{
                    border-color:#00a5c2;
                }
                &::before{
                    content: '\f144';
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 10;
                    width: 100%;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: rgba(0,0,0,.4);
                    color:#fff;
                    font-family: "FontAwesome";
                    font-size: 1.7rem;
                }  
                img{
                    position: relative;
                    z-index: 1;
                }              
            }
            img{
                z-index: 1;
                display: block;
                width:100px;
                height: auto;
                flex-shrink: 0;          /* Evita que se encoja */
                flex-grow: 0;
            }
            .boxTxt{
                h3{
                    font-size: clamp(1rem, 2vw, 1.5rem);
                    margin-bottom: 0px;
                    font-weight: 100;
                }
                p{
                    font-size: 1.1rem;
                    font-weight: 100;
                    line-height: 1.2;
                }
            }
        }
    }
    @media screen and (width > 768px) {
        padding: 150px 0px 100px;
        .wrap{
            grid-template-columns: repeat(2, 1fr);
            .boxCapsula{
                img{
                    width:170px;
                }
            }
        }
    }
}


/* ==========================================================================
   footer
   ========================================================================== */

footer#footer{
    padding:75px 0px;

    &.footer-color{
        background-color: var(--color2);
        position: relative;
        color:#fff;
    }
    .wrap{
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        gap:50px;
        img{
            max-width: 285px;
            max-height: 66px;
        }
        .canal13{
            text-align: center;
            p{
                margin-bottom: 5px;
            }
        }
    }
    @media(width > 768px) {
        .wrap{
            flex-direction: row;
            .canal13{
                text-align: left;
            }
        }
    }
    
}



.illustration-1, .illustration-2{
    position: absolute;
}

.illustration-1{
    top: -159px;
    width: 300px;
    left: 0;
    right: 0;
    margin: auto
}

.illustration-2{
    width: 300px;
    top: -270px;
    left: 0;
    right: 0;
    margin: auto
}





@media (max-width: 768px) {

    .illustration-1, .illustration-2{
        width: 140px;
    }

    .illustration-1{
        top: -65px;
    }

    .illustration-2{
        top: -125px;
    }

}
