/* Estilos Generales */
        body {
            font-family: 'Dosis', sans-serif;
            font-size: 17px;
            background-color: #f4f7f6;
            color: #333;
            margin: 0;
            padding: 20px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Contenedor principal */
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Título de la página */
        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 40px;
            font-weight: 600;
        }

        /* Estilos para las secciones de cada sede */
        .sede-section {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 6px 12px rgba(0,0,0,0.08);
            border: 1px solid #eef2f5;
        }

        .sede-section h2 {
            color: #0f9943;
            border-bottom: 2px solid #ecf0f1;
            padding-bottom: 15px;
            margin-top: 0;
            font-weight: 500;
        }

        /* Grid para las tarjetas de los profesores */
        .teachers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 25px;
        }

        /* Tarjeta de cada profesor */
        .teacher-card {
            background-color: #fdfdfd;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            text-align: center;
            padding: 20px;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .teacher-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        }

        .teacher-card img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 15px;
            border: 3px solid #ecf0f1;
            background-color: #e0e0e0; /* Color de fondo mientras carga la imagen */
        }
        
        .teacher-card .teacher-name {
            margin: 0;
            font-weight: 500;
            color: #555;
            font-size: 15px;
            line-height: 1.4;
        }

        .teacher-card .teacher-email {
            font-size: 12px;
            color: #7f8c8d;
            margin-top: 5px;
            word-break: break-all;
            min-height: 15px; /* Para que el espacio se mantenga aunque esté vacío */
        }


        /* Estilos para el Modal */
        .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.6);
            padding-top: 60px;
            animation: fadeIn 0.4s;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 30px;
            border: 1px solid #888;
            width: 90%;
            max-width: 600px;
            border-radius: 10px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.3);
            animation: slideIn 0.4s;
        }

        @keyframes fadeIn {
            from {opacity: 0}
            to {opacity: 1}
        }
        
        @keyframes slideIn {
            from {transform: translateY(-50px); opacity: 0}
            to {transform: translateY(0); opacity: 1}
        }

        .close-button {
            color: #aaa;
            float: right;
            font-size: 32px;
            font-weight: bold;
            line-height: 1;
        }

        .close-button:hover,
        .close-button:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .modal-header h3 {
            margin-top: 0;
            color: #0f9943;
            font-size: 24px;
        }
        
        .modal-body p {
            margin: 15px 0;
            font-size: 16px;
        }

        .modal-body strong {
            color: #34495e;
            display: block;
            margin-bottom: 5px;
        }
        
        .modal-body .info-value {
            color: #555;
        }

        .modal-body ul {
            list-style-type: none;
            padding-left: 0;
            max-height: 250px;
            overflow-y: auto;
        }
        
        .modal-body li {
            background-color: #ecf0f1;
            border-left: 4px solid #0f9943;
            padding: 10px 15px;
            margin-bottom: 8px;
            border-radius: 4px;
            font-size: 15px;
        }