*{
    font-family: 'Montserrat', sans-serif;
}
.campus-section { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 50px 20px; text-align: center; background-color: white; }
.title { font-weight: 700; font-size: 2rem; color: #1e3a8a; margin-bottom: 10px; }
.subtitle { color: black; margin-bottom: 40px; }

.campus-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.campus-card { 
    width: 450px; height: 300px; border-radius: 15px; background-size: cover; background-position: center;
    position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.campus-card:hover { transform: translateY(-5px); }

/* Reemplaza estas URLs con fotos reales de los campus del IST 17 de Julio */
.card-ibarra { background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../recursos/cecap.jpeg'); }
.card-yachay { background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../recursos/yachay.jpeg'); }

.card-content { position: absolute; bottom: 0; width: 100%; padding: 20px; display: flex; justify-content: space-between; align-items: flex-end; color: white; text-align: right; }
.card-content h3 { margin: 0; font-size: 22px; text-shadow: 1px 1px 4px rgba(0,0,0,0.6); }
.card-content span { font-size: 14px; font-weight: normal; }

.btn-open { 
    background-color: #f6303a; color: white; border: none; width: 45px; height: 45px; 
    border-radius: 50%; font-size: 24px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Modal Estilos */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { 
    background-color: white; margin: 5% auto; padding: 30px; border-radius: 15px; 
    width: 60%; max-width: 800px; position: relative; animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close { position: absolute; right: 20px; top: 15px; font-size: 30px; cursor: pointer; color: #999; }
.info-lists { display: flex; justify-content: space-between; text-align: left; margin: 20px 0; }
.info-lists ul { list-style: none; padding: 0; width: 45%; }
.info-lists li::before { content: "• "; color: #f6303a; font-weight: bold; }
.info-lists li { margin-bottom: 8px; font-size: 14px; color: #444; }
.map-container { border-radius: 10px; overflow: hidden; margin-top: 20px; }
.address { margin-top: 10px; font-size: 13px; color: #666; }

/* ==========================================
   AGREGADO DE RESPONSIVIDAD 
   (No altera los estilos base de arriba)
   ========================================== */

/* Tablets */
@media (max-width: 992px) {
    .modal-content {
        width: 85%;
        margin: 10% auto;
        padding: 20px;
    }
    .campus-card {
        width: 100%;
        max-width: 450px; /* Mantiene el tamaño original pero permite reducirse */
    }
}

/* Celulares */
@media (max-width: 768px) {
    .campus-section {
        padding: 30px 15px;
    }
    .title {
        font-size: 1.6rem;
    }
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    .campus-grid {
        gap: 20px;
    }
    .campus-card {
        height: 250px; /* Un poco más baja para móviles */
    }
    .card-content h3 {
        font-size: 18px;
    }
    .card-content span {
        font-size: 12px;
    }
    .btn-open {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    /* El modal se adapta al ancho total */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    /* Las listas de información pasan a una sola columna */
    .info-lists {
        flex-direction: column;
        gap: 15px;
    }
    .info-lists ul {
        width: 100%;
    }
    .close {
        right: 15px;
        top: 10px;
    }
}

/* Celulares pequeños */
@media (max-width: 480px) {
    .title {
        font-size: 1.4rem;
    }
    .campus-card {
        height: 200px;
    }
    .modal-content h2 {
        font-size: 1.2rem;
    }
}