* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo img {
    height: 50px;
    animation: moveLogo 2s ease-in-out infinite;  
}

@keyframes moveLogo {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

/* Hero */
.hero {
    background-color: #000474;
    color: white;
    padding: 50px 20px;
    font-size: 1.8rem;
    font-weight: bold;
    animation: backgroundAnimation 6s infinite alternate ease-in-out;
}

@keyframes backgroundAnimation {
    0% { background-color: #000474; }
    50% { background-color: #0022b2; }
    100% { background-color: #000474; }
}

/* Media Section */
.media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.carousel-container {
    width: 100%;
    max-width: 500px;
    height: 280px; /* Mantener la altura constante */
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    height: 100%; /* Mantiene la altura del contenedor */
    object-fit: contain;
    display: none;
    border-radius: 10px;
    background-color: #f8f8f8;
}

.carousel-slide:first-child {
    display: block;
}

.video-container video {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Jobs Section */
.jobs-section {
    padding: 40px 20px;
    background: #fff;
}

.jobs-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #000000;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
}

.job-card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.3s ease-in-out;
}

.job-card:hover {
    transform: translateY(-5px);
}

.job-card-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

.job-card-content h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.job-card-content .short-description {
    font-size: 0.9rem;
    color: #666;
}

.btn-ver-mas {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-ver-mas.clicked {
    background: #007474;
}

/* Footer */
.footer {
    padding: 15px;
    background-color: #000474;
    color: white;
    margin-top: 20px;
}

/* Carousel Buttons */
.carousel-button {
    background-color: #007bff32;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.carousel-button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 10px 20px;
    }
    
    .navbar ul {
        gap: 10px;
    }
    
    .hero {
        font-size: 1.5rem;
        padding: 40px 15px;
    }
    
    .carousel-container, .video-container {
        max-width: 90%;
    }
    
    .job-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        display: none; /* Se puede cambiar con JS para un menú hamburguesa */
    }

    .hero {
        font-size: 1.3rem;
        padding: 30px 10px;
    }

    .media-container {
        flex-direction: column;
        align-items: center;
    }

    .carousel-container, .video-container {
        max-width: 100%;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        font-size: 1.1rem;
        padding: 20px 10px;
    }

    .carousel-container, .video-container {
        max-width: 100%;
    }

    .job-card {
        padding: 15px;
    }

    .btn-ver-mas {
        padding: 6px 12px;
    }
}
