/* --- Estilos generales existentes --- */

/* Fondo semi-dark */
.bg-semidark {
    background-color: #F2F2F2; /* gris claro UNAM */
    color: #00274D; /* azul UNAM */
}

/* Tarjeta del formulario */
.form-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 900px;
}

/* Consentimiento */
.consent-card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #00274D; /* azul UNAM */
    padding: 20px;
    color: #00274D;
}

/* Inputs */
.form-control {
    background-color: #fff;
    color: #333333;
    border: 1px solid #00274D; /* azul UNAM */
    border-radius: 6px;
}

.form-control:focus {
    border-color: #FFCC00; /* amarillo UNAM */
    box-shadow: 0 0 0 0.2rem rgba(255,204,0,0.25);
    background-color: #f2f6fa;
    color: #00274D;
}

/* Canvas firmas */
.firma-canvas {
    border: 1px solid #00274D;
    border-radius: 5px;
    background-color: #fff;
}

/* Botones */
.btn-primary {
    background-color: #00274D;
    border-color: #00274D;
    color: #FFCC00;
}

.btn-primary:hover {
    background-color: #001f3a;
    border-color: #001f3a;
}

.btn-secondary {
    background-color: #333333;
    border-color: #333333;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #555555;
    border-color: #555555;
}

.btn-danger {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}

.btn-danger:hover {
    background-color: #e55b5b;
    border-color: #e55b5b;
}

/* Contenedor firmas */
.canvas-wrapper {
    width: 100%;
}
.firma-canvas {
    width: 100%;
    max-width: 400px;
    height: 150px;
    border: 1px solid #00274D;
    border-radius: 5px;
    background-color: #f2f2f2;
    touch-action: none; /* para uso táctil */
}

/* --- PDF Adicional --- */

/* Texto justificado para todo el contenido del PDF */
.pdf-body {
    text-align: justify;
    font-family: Arial, sans-serif;
    font-size: 12pt;
    color: #00274D;
}

/* Encabezado de sección en PDF */
.pdf-section-title {
    font-weight: bold;
    font-size: 14pt;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #00274D;
}

/* Datos del paciente en PDF */
.pdf-datos {
    margin-bottom: 20px;
}

/* Lista de consentimiento */
.pdf-ol, .pdf-ul {
    margin: 5px 0 15px 20px;
}

/* Firma centrada */
.pdf-firma {
    text-align: center;
    margin-top: 40px;
}

/* Línea de firma */
.pdf-linea {
    border-top: 1px solid #00274D;
    width: 200px;
    margin: 0 auto 5px auto;
}

/* Encabezado de página PDF con logo y título azul */
.pdf-header {
    width: 100%;
    border-bottom: 1px solid #00274D;
    vertical-align: middle;
    font-family: Arial, sans-serif;
    color: #00274D;
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor logo en header */
.pdf-header-logo {
    width: 100px;
    margin-right: 20px;
}

/* Texto del título alineado con logo */
.pdf-header-title {
    flex: 1;
}

/* Pie de página PDF */
.pdf-footer {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 10pt;
    border-top: 1px solid #00274D;
    padding-top: 3px;
    text-align: center;
    color: #00274D;
}

/* --- Botones estilo UNAM --- */

/* Botón primario (Crear Paciente) */
.btn-primary {
    background-color: #00274D; /* Azul UNAM */
    border-color: #00274D;
    color: #FFCC00; /* Amarillo UNAM */
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #001f3a;
    border-color: #001f3a;
    color: #FFCC00;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* Botón secundario (Modificar Paciente) */
.btn-warning {
    background-color: #FFCC00; /* Amarillo UNAM */
    border-color: #FFCC00;
    color: #00274D; /* Azul UNAM */
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #00274D;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* --- Botones estilo UNAM --- */

/* Botón primario (Crear Paciente) */
.btn-unam-primary {
    background: linear-gradient(135deg, #00274D 0%, #001F3A 100%);
    border: 1px solid #001F3A;
    color: #FFCC00;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-unam-primary:hover {
    background: linear-gradient(135deg, #001F3A 0%, #001533 100%);
    border-color: #001533;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* Botón secundario (Modificar Paciente) */
.btn-unam-warning {
    background: linear-gradient(135deg, #FFCC00 0%, #E6B800 100%);
    border: 1px solid #E6B800;
    color: #00274D;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-unam-warning:hover {
    background: linear-gradient(135deg, #E6B800 0%, #CC9900 100%);
    border-color: #CC9900;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* Botón informativo (Buscar Paciente) */
.btn-unam-info {
    background-color: #002B7A; /* Azul UNAM */
    border-color: #002B7A;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-unam-info:hover {
    background-color: #005BB5;
    border-color: #005BB5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

/* Botones grandes y full-width */
.btn-lg.btn-block {
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
}


