﻿/* Carrusel Instituto Mora */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html,
body{
    width:100%;
    margin:0;
    padding:0;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#fff;
}

/* CARRUSEL */
.carousel{
    position:relative;
    width:100%;
    height:830px;
    overflow:hidden;
    background:#111;
}

.slides-container{
    position:relative;
    width:100%;
    height:100%;
}

/* SLIDE / IMAGEN */
.slide{
    display:none;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    animation:fadeSlide .7s ease;
}

@keyframes fadeSlide{
    from{opacity:.4;}
    to{opacity:1;}
}

/* CAPA OSCURA */
.overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    background:linear-gradient(
        90deg,
        rgba(13,4,3,.88) 0%,
        rgba(20,5,4,.79) 22%,
        rgba(29,7,5,.60) 40%,
        rgba(20,5,4,.25) 60%,
        rgba(0,0,0,.05) 78%,
        rgba(0,0,0,0) 100%
    );
}

/* CONTENIDO */
.overlay2{
    position:relative;
    width:520px;
    margin-left:11.5%;
    margin-top:105px;
    color:#fff;
    z-index:3;
}

/* TÃTULO */
.overlay2 h2{
    max-width:500px;
    margin:0 0 22px 0;
    font-family:Georgia, "Times New Roman", serif;
    font-size:45px;
    font-weight:400;
    line-height:1.22;
    letter-spacing:.3px;
    color: #c6a843;
    text-shadow:0 1px 2px rgba(0,0,0,.4);
}

.overlay2 h2 span{
    color:#d7bd68;
}

/* DESCRIPCIÃ“N */
.overlay2 p{
    max-width:500px;
    margin:0 0 52px 0;
    font-family:Arial, Helvetica, sans-serif;
    font-size:18px;
    font-weight:400;
    line-height:1.65;
    color:rgba(255,255,255,.95);
    text-shadow:0 1px 2px rgba(0,0,0,.55);
}

/* BOTÃ“N */
.overlay2 a{
    display:inline-flex;
    min-width:270px;
    height:70px;
    align-items:center;
    justify-content:center;
    padding:0 35px;
    color:#c6a843;
    font-family:Arial, Helvetica, sans-serif;
    font-size:18px;

    text-decoration:none;
    text-transform:uppercase;
    border:1px solid #c6a843;
    background:rgba(0,0,0,.15);
    transition:background .25s ease, color .25s ease, border-color .25s ease;
}

.overlay2 a:hover{
    background:#b69635;
    border-color:#b69635;
    color:#fff;
}

/* FLECHAS */
.carousel-prev,
.carousel-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:90px;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:20;
    color:#fff;
    font-family:Arial,sans-serif;
    font-size:52px;
    font-weight:200;
    cursor:pointer;
    background:transparent;
    border:0;
    opacity:.9;
    transition:opacity .2s ease;
}

.carousel-prev:hover,
.carousel-next:hover{
    opacity:1;
}

.carousel-prev{left:28px;}
.carousel-next{right:28px;}

/* PUNTOS */
.dots{
    position:absolute;
    left:0;
    bottom:15px;
    width:100%;
    text-align:center;
    z-index:30;
}

.dot{
    display:inline-block;
    width:13px;
    height:13px;
    margin:0 5px;
    border-radius:50%;
    background:#eee;
    cursor:pointer;
    opacity:.9;
    transition:background .2s ease, transform .2s ease;
}

.dot.active{
    background:#c99f39;
    transform:scale(1.08);
}

/* PANTALLAS GRANDES */
@media(min-width:1500px){
    .carousel{height:830px;}
    .overlay2{
        width:560px;
        margin-left:11.5%;
        margin-top:100px;
    }
    .overlay2 h2{font-size:45px;}
    .overlay2 p{font-size:18px;}
}

/* LAPTOP */
@media(max-width:1200px){
    .carousel{height:650px;}
    .overlay2{
        width:500px;
        margin-left:10%;
        margin-top:70px;
    }
    .overlay2 h2{font-size:40px;}
    .overlay2 p{
        font-size:17px;
        line-height:1.55;
        margin-bottom:35px;
    }
    .overlay2 a{
        min-width:230px;
        height:58px;
        font-size:17px;
    }
}

/* TABLET */
@media(max-width:900px){
    .carousel{height:600px;}
    .slide{background-position:center;}
    .overlay{
        align-items:flex-end;
        background:linear-gradient(
            0deg,
            rgba(13,4,3,.95) 0%,
            rgba(13,4,3,.80) 35%,
            rgba(13,4,3,.35) 68%,
            rgba(0,0,0,.05) 100%
        );
    }
    .overlay2{
        width:85%;
        margin:0 auto 85px auto;
    }
    .overlay2 h2{
        max-width:650px;
        font-size:37px;
    }
    .overlay2 p{
        max-width:650px;
        margin-bottom:30px;
    }
    .carousel-prev{left:15px;}
    .carousel-next{right:15px;}
}

/* CELULAR */
@media(max-width:600px){
    .carousel{height:560px;}
    .slide{background-position:center center;}
    .overlay{
        background:linear-gradient(
            0deg,
            rgba(10,3,3,.96) 0%,
            rgba(10,3,3,.88) 42%,
            rgba(10,3,3,.30) 72%,
            rgba(0,0,0,.05) 100%
        );
    }
    .overlay2{
        width:84%;
        margin:0 auto 70px auto;
    }
    .overlay2 h2{
        font-size:30px;
        line-height:1.15;
        margin-bottom:15px;
    }
    .overlay2 p{
        font-size:15px;
        line-height:1.5;
        margin-bottom:24px;
    }
    .overlay2 a{
        min-width:190px;
        height:48px;
        padding:0 22px;
        font-size:15px;
    }
    .dots{bottom:16px;}
    .dot{
        width:10px;
        height:10px;
        margin:0 4px;
    }
    .carousel-prev,
    .carousel-next{
        width:35px;
        font-size:36px;
    }
    .carousel-prev{left:5px;}
    .carousel-next{right:5px;}
}
