/* ================================================= */
/* Archivo: components.css (SOLO Componentes Reutilizables) */
/* ================================================= */

/* Cards contenedor */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Galería grid (Si usas un grid de galería simple) */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* Párrafo Justificado (Clase de utilidad) */
.justificado {
    text-align: justify;
}

/* ================================================= */
/* INICIO VISTAS Y MODALES (Componentes mayores) */
/* ================================================= */

/* Estilos para la sección de Vistas (Columnas) */
.views-section {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 40px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.views-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.view-item {
    flex-grow: 1;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    /* Debería heredar la fuente global aquí */
}

.views-container .view-item:first-child {
    border-right: 1px solid #ddd;
}

.view-item:hover {
    background-color: #f0f0f0;
}

.view-item .icon {
    display: block;
    font-size: 2.5em;
    margin-bottom: 5px;
}

/* Responsive para Vistas */
@media (max-width: 600px) {
    .views-container {
        flex-direction: column;
    }

    .views-container .view-item:first-child {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}


/* Estilos para la Ventana Modal y Iframes */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-content iframe {
    width: 100%;
    height: 450px;
}