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


/* SLIDER */
.slider {
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 85vh;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
	
}

.slide.active {
    opacity: 1;
    position: relative;
	z-index:60;
}

/* FONDO FIJO */
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

/* CONTENIDO */
.content {
    position: relative;
    z-index: 2;
    width: 96%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* TEXTO */
.text {
    width: 50%;
    color: #175759;
	font-size:6vh;
    opacity: 0;
    transform: translateX(-150px);
    transition: all 0.8s ease;
}
.text .texto2{font-size:4vh;color:#248487;}

.slide.active .text {
    opacity: 1;
    transform: translateX(0);
}

/* IMAGEN */
.image {
    width: 50%;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}
.image .fotobanner1{height:65vh;}

.slide.active .image {
    opacity: 1;
    transform: translateX(0);
}

.image img {
    max-width: 100%;
    height: auto;
}

/* SLIDE 2 INVERTIDO */
.reverse .text {
    order: 2;
    text-align: right;
    transform: translateX(50px);
}

.reverse .image {
    order: 1;
    transform: translateX(-50px);
}

.slide.active.reverse .text,
.slide.active.reverse .image {
    transform: translateX(0);
}

/* BOTONES */
.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.controls button {
    padding: 8px 12px;
    margin: 0 5px;
    border: none;
    cursor: pointer;
	background:transparent;
}

/* RESPONSIVE */
@media (max-width: 768px) {

.slide{height: 55vh;}
.slide::before {background-image: url('../images/fondo2.png');}
    .content {
        flex-direction: column;
        text-align: center;
    }

    .text, .image {
        width: 100%;
    }

    .image {order: 1; margin-bottom: 10px;  }
	.image img {position:relative;top:30px;}
	.image .fotobanner1{height:50%;}

    .text {
        position: absolute;
        top: 65%;
        transform: translateY(-50%);
        padding: 10px;
		z-index:5;
		font-size:4vh;
		background: rgba(4,88,95,0.6); /* semitransparente */
		color: #fff;
		padding: 10px 15px;
		display: inline-block;
		border-radius: 5px;		
    }
	.text .texto2 {color:white;font-size:2vh;}

    .reverse .text {
        text-align: center;
    }
	
}