/*
Theme Name: mi-tema
Author: Samuel Robles
*/

body {
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url("fondo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(5px);
    transform: scale(1.1);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    padding-left: 10%; 
    box-sizing: border-box;
    gap: 60px; 
}

.logo {
    width: 110px;
}

.opciones {
    margin-left: -150px;
    display: flex;       
    gap: 40px;          
}

.opciones a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    transition: 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.opciones a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.contenido {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100vh; 
    width: 100%;
    padding: 0 10%; 
    box-sizing: border-box;
}

.texto-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 50%;
}

.contenido h1 {
    font-size: 5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: white;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.7);
}

.contenido p {
    font-size: 1.8rem;
    font-family: Arial, sans-serif;
    color: white;
    margin-top: 10px;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.8);
}

.botones {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.botones a {
    display: inline-block;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #003366;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-family: Arial, sans-serif;
    transition: transform 0.4s ease-in-out, background-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.botones a:hover {
    transform: scale(1.1);
    background-color: white;
    color: #003366;
}

.slider-container {
    position: relative;
    width: 46%;
    height: 450px;
    display: flex;
    align-items: center;
}

.slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    display: block;
    animation: fade 0.8s ease-in-out;
}

.flecha {
    position: absolute;
    z-index: 10;
    background: rgba(0, 128, 255, 0.6);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 30%;
    font-size: 1.5rem;
    transition: 0.3s;
}

.flecha:hover { background: #003366; }
.prev { left: -25px; }
.next { right: -25px; }

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .contenido h1 {
        font-size: 3.5rem;
    }
    .slider-container {
        width: 48%;
        height: 350px;
    }
    .header {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 100px;
        padding-left: 5%;
        justify-content: center;
        padding-right: 5%;
        gap: 0;
    }
    .opciones {
        margin-left: 0;
        gap: 20px;
    }
    .opciones a {
        font-size: 0.9rem;
    }
    .logo {
        width: 80px;
    }
    .contenido {
        flex-direction: column;
        justify-content: center;
        padding: 120px 5% 40px 5%;
        height: auto;
        text-align: center;
        align-items: center;
    }
    .texto-hero {
        width: 100%;
        align-items: center;
        text-align: center;
        margin-bottom: 50px;
    }
    .contenido h1 {
        font-size: 3rem;
    }
    .contenido p {
        font-size: 1.4rem;
    }
    .botones {
        justify-content: center;
    }
    .slider-container {
        width: 90%;
        height: 300px;
    }
    .prev { left: -10px; }
    .next { right: -10px; }
}

@media (max-width: 480px) {
    .contenido h1 {
        font-size: 2.5rem;
    }
    .opciones {
        gap: 10px;
    }
    .opciones a {
        font-size: 0.8rem;
    }
    .botones a {
        padding: 15px 30px;
        font-size: 1rem;
    }
    .slider-container {
        height: 250px;
    }
}