:root {

    --azulosc: #253562;
    --narajito: #b48a30;
    --verdulon: #256256;
    --color-hover: #ad2727;


}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background-color: #c3e0f1b9;
    padding-top: 60px;
}


header {

    background: linear-gradient(#c3e0f1a1, #09399280), url('mi-fondo1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #c3e0f1;
    min-height: 70vh;
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: #ffffff;
}


/* Navegación */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ad2727;
}



/* Tarjetas */
.fondoBoton {
    background: #8c93976c;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 6px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    width: 90%;
    max-width: 1000px;
    min-height: 400px;
    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}




.button {
    background-color: #706b6b;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    max-width: 400px;
    height: 60px;
    font-size: 1.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 6px 8px rgba(0, 0, 0, 0.527);
    border: 1px solid #111;
}

.button:hover {
    background-color: #ad2727;
    box-shadow: 2px 6px 12px rgba(255, 255, 255, 0.527);
}

.verdulon {
    /* border-left: 6px solid var(--verdulon); */
    border-color: var(--verdulon);
    color: var(--verdulon)
}

.azulosc {
    border-color: var(--azulosc);
    color: var(--azulosc)
}

.naranjito {
    border-color: var(--narajito);
    color: var(--narajito);
}

.midlane {
    background: #111;
    color: white;
    text-align: center;
    padding: 30px 0;
}

a:focus,
.button:focus {
    outline: 3px solid var(--color-hover);
    outline-offset: 3px;
}


/* Slider ----------  */
.slider-hero {
    position: relative;
    width: 100%;
    min-height: 95vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: sliderAnimation 18s infinite;

}


.content {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

.contentHeader {


    color: white;

    max-width: 900px;
    padding: 0 20px;
    text-align: center;
}


/* Imágenes de fondo ---------------------------------*/
.slide1 {
    background-image: url('img/diw1.jpg');
    animation-delay: 0s;
}

.slide2 {
    background-image: url('img/diw2.jpg');
    animation-delay: 6s;
}

.slide3 {
    background-image: url('img/diw3.jpg');
    animation-delay: 12s;
}

.slide4 {
    background-image: url('img/dwes1.jpg');
    animation-delay: 0s;
}

.slide5 {
    background-image: url('img/dwes2.jpg');
    animation-delay: 6s;
}

.slide6 {
    background-image: url('img/dwes3.jpg');
    animation-delay: 12s;
}

.slide7 {
    background-image: url('img/dwec1.jpg');
    animation-delay: 0s;
}

.slide8 {
    background-image: url('img/dwec2.jpg');
    animation-delay: 6s;
}

.slide9 {
    background-image: url('img/dwec3.jpg');
    animation-delay: 12s;
}

/* Animación de cambio de imagen */
@keyframes sliderAnimation {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}



footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 30px 0;

}

footer a {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

footer a:hover {
    font-weight: bold;
    color: #ad2727;
    text-decoration: underline;
}


@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    nav a {
        margin: 0 8px;
        font-size: 0.85rem;
    }

    header {

        min-height: 85vh;
        padding: 140px 20px 100px;
        background-size: cover;
        transition: all 0.3s ease;
    }


    .contentHeader h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .contentHeader p {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .slider-hero {
        height: 70vh;
    }

    .fondoBoton {
        width: 95%;
        min-height: 300px;
        padding: 25px;
    }

    .button {
        max-width: 100%;
        height: 55px;
        font-size: 1.4rem;
    }
}