/* Reset y estilos generales */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background-color: #232323;
    background-image: url('vista bartolome 2.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
}

/* Header */
header {
    background-color: #ffffff;
    height: 100px;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #232323;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.4s ease;
    padding: 5px 0;
}

.main-nav a:hover {
    border-bottom: 2px solid #232323;
}

/* Asegurando la fuente en nav, nav a, y button */
nav, nav a, button {
    font-family: 'Times New Roman', Times, serif !important;
}

/* Contenido principal */
.main-content {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* Carrusel */
.carrusel {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.imagenes {
    position: relative;
    width: 100%;
    height: 100%;
}

.carrusel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.controles {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 15px;
}

.control-btn {
    display: block;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Efectos del carrusel */
#imagen1:checked ~ .imagenes .carrusel-img:nth-child(1),
#imagen2:checked ~ .imagenes .carrusel-img:nth-child(2),
#imagen3:checked ~ .imagenes .carrusel-img:nth-child(3) {
    opacity: 1;
}

/* Ocultar inputs radio */
input[type="radio"] {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 15px 0;
        height: auto;
    }
    
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carrusel {
        height: 300px;
    }
}