/* Estilos generales */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background-color: #f5f7fa;
color: #333;
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* Header */
.dgdp-header {
background: linear-gradient(135deg, #1a3a5f, #2c5282);
color: white;
padding: 10px 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: relative;
z-index: 100;
}

.dgdp-header-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1400px;
margin: 0 auto;
position: relative;
}

.dgdp-logo-container {
display: flex;
align-items: center;
flex: 1;
}

.dgdp-logo-img {
height: 50px;
margin-right: 15px;
}

.institutional-title {
font-size: 1.5rem;
font-weight: 600;
margin-left: 10px;
}

.menu-toggle {
display: none;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
padding: 5px;
}

.dgdp-nav ul {
display: flex;
list-style: none;
}

.dgdp-nav ul li {
margin-left: 20px;
}

.dgdp-nav ul li a {
color: white;
text-decoration: none;
font-weight: 500;
padding: 5px 10px;
border-radius: 4px;
transition: background-color 0.3s;
}

.dgdp-nav ul li a:hover {
background-color: rgba(255,255,255,0.2);
}

/* Contenedor principal */
.main-container {
display: flex;
flex-direction: column;
flex: 1;
padding: 20px;
max-width: 1400px;
margin: 0 auto;
width: 100%;
overflow-y: auto;
}

/* Sección de búsqueda */
.search-section {
background: white;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
margin-bottom: 20px;
}

.search-header {
display: flex;
align-items: center;
margin-bottom: 15px;
}

.search-header i {
color: #2c5282;
margin-right: 10px;
font-size: 1.5rem;
}

.search-header h1 {
color: #2c5282;
font-size: 1.5rem;
}

.search-description {
color: #666;
margin-bottom: 20px;
}

.search-form {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}

.search-input {
flex: 1;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1rem;
min-width: 200px;
}

.search-btn, .matricular-btn, .editar-btn {
background: #2c5282;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-weight: 500;
transition: background-color 0.3s;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 1rem;
height: 40px;
justify-content: center;
min-width: 140px;
}

.search-btn:hover {
background: #1a3a5f;
}

/* Botón de matricular cursos */
.matricular-btn {
background: #28a745;
}

.matricular-btn:hover {
background: #218838;
}

/* Botón de editar perfil */
.editar-btn {
background: #ffc107;
color: #212529;
}

.editar-btn:hover {
background: #e0a800;
}

/* Alertas */
.alert {
padding: 10px 15px;
border-radius: 5px;
margin-bottom: 20px;
}

.alert-success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}

.alert-danger {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}

.alert-warning {
background-color: #fff3cd;
color: #856404;
border: 1px solid #ffeaa7;
}

/* Contenedor de resultados */
.results-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 20px;
}

/* Tarjetas de información */
.info-card {
background: white;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
flex: 1;
min-width: 300px;
display: flex;
flex-direction: column;
}

.card-header {
display: flex;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}

.card-header i {
color: #2c5282;
margin-right: 10px;
font-size: 1.2rem;
}

.card-header h2 {
color: #2c5282;
font-size: 1.2rem;
}

.info-list {
display: flex;
flex-direction: column;
gap: 12px;
flex: 1;
}

.info-item {
display: flex;
border-bottom: 1px solid #f0f0f0;
padding-bottom: 8px;
}

.info-label {
font-weight: 600;
color: #555;
min-width: 75px;
font-size: 0.9rem;
}

.info-label-institucional {
font-weight: 600;
color: #555;
min-width: 120px;
font-size: 0.9rem;
}

.info-label-otra {
font-weight: 600;
color: #555;
min-width: 165px;
font-size: 0.9rem;
}

.info-value {
color: #333;
flex: 1;
}

/* Footer */
.dgdp-footer {
background: #1a3a5f;
color: white;
padding: 15px 20px;
text-align: center;
margin-top: auto;
}

.dgdp-footer-content {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
max-width: 1400px;
margin: 0 auto;
flex-wrap: wrap;
}

.dgdp-footer-logo {
height: 30px;
}

.dgdp-copyright {
font-size: 0.9rem;
}

/* Modal de campos faltantes */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}

.modal-overlay.active {
display: flex;
}

.modal-container {
background: white;
border-radius: 10px;
width: 90%;
max-width: 500px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
overflow: hidden;
}

.modal-header {
background: #e74c3c;
color: white;
padding: 20px;
text-align: center;
}

.modal-title {
margin: 0;
font-size: 1.3rem;
}

.modal-body {
padding: 20px;
max-height: 400px;
overflow-y: auto;
}

.modal-footer {
padding: 15px 20px;
background: #f8f9fa;
display: flex;
justify-content: flex-end;
gap: 10px;
flex-wrap: wrap;
}

.modal-btn {
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: 500;
transition: background-color 0.3s;
}

.modal-btn-primary {
background: #2c5282;
color: white;
}

.modal-btn-primary:hover {
background: #1a3a5f;
}

.modal-btn-secondary {
background: #6c757d;
color: white;
}

.modal-btn-secondary:hover {
background: #545b62;
}

.campos-faltantes-list {
list-style-type: none;
padding: 0;
}

.campos-faltantes-list li {
padding: 8px 0;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
}

.campos-faltantes-list li:before {
content: "•";
color: #e74c3c;
font-weight: bold;
margin-right: 10px;
}

/* Responsive */
@media (max-width: 992px) {
.results-container {
flex-direction: column;
}

.info-card {
min-width: 100%;
}
}

@media (max-width: 768px) {
.dgdp-header-container {
flex-wrap: wrap;
}

.dgdp-logo-container {
order: 1;
flex-basis: 100%;
justify-content: center;
margin-bottom: 10px;
}

.institutional-title {
font-size: 1.2rem;
text-align: center;
margin: 0;
}

.menu-toggle {
display: block;
order: 2;
}

.dgdp-nav {
display: none;
order: 3;
flex-basis: 100%;
width: 100%;
}

.dgdp-nav.active {
display: block;
}

.dgdp-nav ul {
flex-direction: column;
width: 100%;
}

.dgdp-nav ul li {
margin: 10px 0;
text-align: center;
}

.search-form {
flex-direction: column;
}

.search-input {
width: 100%;
}

.search-btn, .matricular-btn, .editar-btn {
width: 100%;
min-width: auto;
}

.info-item {
flex-direction: column;
}

.info-label, .info-label-institucional, .info-label-otra {
min-width: auto;
margin-bottom: 5px;
}

.modal-container {
width: 95%;
margin: 20px;
}

.dgdp-footer-content {
flex-direction: column;
gap: 10px;
}
}

@media (max-width: 480px) {
.dgdp-logo-img {
height: 40px;
}

.institutional-title {
font-size: 1rem;
}

.search-header h1 {
font-size: 1.2rem;
}

.search-header i {
font-size: 1.2rem;
}

.card-header h2 {
font-size: 1rem;
}

.card-header i {
font-size: 1rem;
}

.info-label, .info-label-institucional, .info-label-otra {
font-size: 0.8rem;
}

.info-value {
font-size: 0.9rem;
}
}
