
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.header {
    background-color: #000;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #333;
}

.logo-container {
    display: flex;
    align-items: center;
}
.logo-link{
    
    height: 40px;
}
.logo-img {
    height: 100%;
    width: auto;
    transition: opacity 0.3s ease;
}
.logo-img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;           /* espacio entre items */
    align-items: center;
    margin-left: auto;  /* empuja el menu a la derecha si hace falta */
    position: static;   /* importante: no fixed en desktop */
    background: none;
    width: auto;
    height: auto;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #333;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 0;
    top: 100%;
    border-top: 3px solid #ff2a00;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #ff2a00;
    padding-left: 20px;
}

.dropdown-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.close-dropdown {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff2a00;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

/*Sección Main*/

/*Seccion Carousel*/

.carousel {
    position: relative;
    width: 100%;
    height: auto;
    margin: 70px 0 0;/*auto*/
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.carousel-images img {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    object-fit: cover;
    /* Dinámico según el ancho */
}

.carousel-images picture {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.carousel-images picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.carousel-indicators div {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators .active {
    background-color: white;
}

/* ===== Mobile Menu ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile layout */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-top {
        gap: 15px;
    }

    .logo-link {
        display: flex;
        align-items: center;
        height: 40px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background-color: #000;
        flex-direction: column;
        padding-top: 20px;
        transition: right 0.3s ease-in-out;
        z-index: 2000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .nav-link {
        padding: 15px;
    }

    .dropdown-content {
    position: static;
    background: #111;
    border: none;
    padding-left: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.dropdown-content.active {
    max-height: 300px;
}

    .dropdown-content a {
        border: none;
        padding: 10px 10px;
    }

    .close-dropdown {
        display: none;
    }
}



/* Responsive Carousel*/
@media (max-width: 768px) {
    .carousel {
        height: 600px;
    }

    .carousel-btn {
        font-size: 18px;
        padding: 8px;
    }

    .carousel-indicators div {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 400px;
    }
}