@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* --- CONFIGURACIÓN GENERAL --- */
body { font-family: 'Poppins', sans-serif; background-color: #f4f5f7; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; margin: 0; color: #333; }
.main-container { width: 100%; max-width: 600px; }

/* --- ESTILOS PARA HEADER Y FOOTER DEL SITIO --- */
.site-header { text-align: center; margin-bottom: 20px; padding: 0 20px; }
.site-header h1 { font-size: 28px; font-weight: 600; margin: 0; color: #1a1a1a; }
.site-header p { font-size: 16px; color: #888; margin: 0; }
.content-wrapper { background-color: white; padding: 30px 40px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); box-sizing: border-box; overflow: hidden; }
.site-footer { text-align: center; margin-top: 30px; padding: 0 20px; }
.site-footer p { font-size: 14px; color: #aaa; }

/* --- ANIMACIONES Y LÓGICA DE PASOS DEL FORMULARIO --- */
.form-step { display: none; opacity: 0; transform: translateX(30px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.form-step.active { display: block; opacity: 1; transform: translateX(0); }
.step-title { font-size: 20px; margin-top: 0; margin-bottom: 25px; text-align: left; font-weight: 600; color: #000; }

/* --- ESTILOS DE CAMPOS DE FORMULARIO --- */
form input[type="text"], form input[type="email"], form input[type="number"], form input[type="tel"], form input[type="password"], form select, form textarea { width: 100%; padding: 12px 16px; margin-bottom: 15px; border: none; background-color: #f4f5f7; border-radius: 10px; font-size: 15px; font-family: 'Poppins', sans-serif; box-sizing: border-box; }
form input::placeholder, form textarea::placeholder { color: #9a9a9a; }
.row { display: flex; gap: 15px; }
.row > * { flex: 1; min-width: 0; }
.row select[name="cedula_tipo"] { flex: 0 0 65px; }

/* --- BOTONES --- */
.buttons { display: flex; justify-content: flex-end; align-items: center; margin-top: 25px; }
.buttons.space-between { justify-content: space-between; }
.btn-primary, .btn-secondary, .btn-eliminar { border: none; cursor: pointer; font-size: 15px; font-weight: 500; transition: background-color 0.2s ease; }
.btn-primary { background-color: #1a1a1a; color: white; border-radius: 50px; padding: 12px 28px; }
.btn-primary:hover { background-color: #333; }
.btn-secondary { background-color: transparent; color: #888; text-decoration: none; padding: 12px 0; }
.btn-eliminar { background-color: #e74c3c; color: white; border-radius: 8px; padding: 12px 25px; }
.btn-eliminar:hover { background-color: #c0392b; }

/* --- ELEMENTOS ESPECÍFICOS (CHECKBOX, UPLOAD) --- */
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-bottom: 20px; }
.textarea-label { font-weight: 500; margin-bottom: 8px; display: block; }
textarea { height: 90px; resize: vertical; }

/* --- NUEVOS ESTILOS PARA LA SUBIDA DE ARCHIVOS --- */
.hidden { display: none !important; }
.upload-box { cursor: pointer; }
.upload-formats { font-size: 12px; color: #b9b9b9; margin-top: 4px; }
.upload-box.drag-over { border-color: #3498db; background-color: #f0f8ff; }
#preview-state { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.remove-file-btn { background: #e0e0e0; border-radius: 50%; width: 24px; height: 24px; font-size: 16px; line-height: 24px; text-align: center; color: #666; font-weight: bold; }
.remove-file-btn:hover { background: #d0d0d0; }
.progress-container { width: 100%; background-color: #f0f0f0; border-radius: 5px; height: 10px; margin-top: -5px; margin-bottom: 15px; }
.progress-bar { width: 0%; height: 100%; background-color: #3498db; border-radius: 5px; transition: width 0.3s ease; }

/* --- PANEL DE USUARIO Y LOGIN --- */
.panel-usuario h3, .login-form h3 { text-align: left; margin-bottom: 25px; }
.info-postulacion p { margin: 8px 0; font-size: 16px; }
.status-badge { padding: 4px 10px; border-radius: 15px; font-size: 12px; font-weight: 500; text-transform: capitalize; color: black;}
.acciones-postulacion h4 { margin-top: 0; margin-bottom: 10px; }
.acciones-postulacion p { color: #666; font-size: 15px; line-height: 1.6; }

/* --- ESTILOS PARA EL PANEL DE ADMINISTRADOR --- */
.table-container { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { padding: 12px 15px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 15px; }
.admin-table th { background-color: #f9f9f9; font-weight: 600; }
.admin-table tbody tr:hover { background-color: #f5f5f5; }
.status-badge.recibido { background-color: #3498db; color: white;}
.status-badge.en-revision { background-color: #f1c40f; color: white;}
.status-badge.contactado { background-color: #2ecc71; color: white;}
.status-badge.rechazado { background-color: #e74c3c; color: white;}
.action-link { color: #3498db; text-decoration: none; font-weight: 500; }
.action-link:hover { text-decoration: underline; }

/* --- ESTILOS PARA LA PÁGINA DE DETALLE DE POSTULACIÓN --- */
.detalle-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto para móviles */
    gap: 30px;
    margin-top: 20px;
}

/* En pantallas más grandes, dos columnas */
@media (min-width: 768px) {
    .detalle-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detalle-seccion h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Estilos para lista de definición (dt, dd) */
.detalle-seccion dl {
    margin: 0;
}
.detalle-seccion dt {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    margin-top: 15px;
}
.detalle-seccion dd {
    font-size: 16px;
    margin-left: 0;
    word-wrap: break-word;
}

.site-logo {
    /* Define un ancho máximo para el logo */
    max-width: 200px; /* Ajusta este valor (ej: 150px, 180px, etc.) */
    
    /* Asegura que la altura se ajuste proporcionalmente */
    height: auto; 
    
    /* Opcional: Asegura que la imagen no tenga un margen raro */
    display: block;
    margin: 0 auto; 
}