* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #e6f3ff, #ffffff);
    /* min-height: 100vh; */
    /* padding: 2rem;  */
}

.container {
    max-width: 1200px;
    margin: 15vh auto;
}

.header-secundario {
    text-align: center;
    margin-bottom: 3rem;
}

.titulo-prinsipal {
    color: #1e40af;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: #4b5563;
    font-size: 1.25rem;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.component-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f4f6;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: #1e40af;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 900px;
    border-radius: 15px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #4b5563;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #e5e7eb;
}

/* Carousel Styles */
.carousel {
    position: relative;
    margin-bottom: 2rem;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 400px;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1e40af;
    transition: background 0.3s ease;
}

.carousel-button:hover {
    background: white;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.modal-details {
    background: #f0f7ff;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.modal-details h3 {
    color: #1e40af;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.detail-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detail-section h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }

    .carousel {
        height: 300px;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-slide {
        height: 300px;
    }
}