/**
 * COLITUR Intranet - Estilos Independientes
 * Estos estilos pueden ser incluidos en páginas de Elementor
 */

/* Variables CSS para fácil personalización */
:root {
    --primary-color: #00aeff;
    --secondary-color: #0088cc;
    --accent-color: #e67e22;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --text-color: #333;
    --text-light: #888;
    --border-color: #eee;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* Reset básico para las páginas de intranet */
.colitur-intranet * {
    box-sizing: border-box;
}

.colitur-intranet {
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === MI PERFIL === */

.mi-perfil-page .profile-card {
    background: #fff;
    padding: 60px !important;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.mi-perfil-page .profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 40px;
}

.mi-perfil-page .profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    flex-shrink: 0;
}

.mi-perfil-page .profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mi-perfil-page .profile-main-info {
    flex: 1;
}

.mi-perfil-page .status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.mi-perfil-page .status-badge.habilitado {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.mi-perfil-page .status-badge.no-habilitado {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.mi-perfil-page .post-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin: 10px 0;
}

.mi-perfil-page .profile-reg {
    font-size: 16px;
    color: var(--text-light);
}

.mi-perfil-page .profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mi-perfil-page .profile-section h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mi-perfil-page .profile-section h3 i {
    font-size: 24px;
}

.mi-perfil-page .profile-details-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mi-perfil-page .profile-details-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 15px;
}

.mi-perfil-page .profile-details-list li:last-child {
    border-bottom: none;
}

.mi-perfil-page .finance-box {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    padding: 25px;
    border-radius: 12px;
    border: 2px dashed #bdd4ed;
}

.mi-perfil-page .finance-note {
    font-size: 16px;
    margin-bottom: 10px;
}

.mi-perfil-page .historial-box {
    margin-top: 20px;
}

.mi-perfil-page .historial-content {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    border: 1px solid #eee;
    max-height: 200px;
    overflow-y: auto;
}

.mi-perfil-page .profile-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.mi-perfil-page .warning-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mi-perfil-page .logout-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
}

.mi-perfil-page .logout-btn:hover {
    background: #c0392b;
}

.mi-perfil-page .warning-text i {
    font-size: 20px;
}

/* === ESTILOS DE VIGENCIA === */

/* Estilos para el item de vigencia en el perfil */
.mi-perfil-page .vigencia-item {
    padding: 20px !important;
    border-radius: 8px;
    margin-top: 10px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.mi-perfil-page .vigencia-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mi-perfil-page .vigencia-mensaje {
    font-size: 16px;
    font-weight: 600;
    display: block;
}

/* Estado: Vigente (más de 30 días) */
.mi-perfil-page .vigencia-item.vigente {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}

/* Estado: Próximo a vencer (30 días o menos) */
.mi-perfil-page .vigencia-item.vigente-proximo-vencer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    color: #856404;
    animation: pulse-warning 2s ease-in-out infinite;
}

/* Estado: Último día */
.mi-perfil-page .vigencia-item.vigente-ultimo-dia {
    background: linear-gradient(135deg, #ffe5cc 0%, #ffd4a3 100%);
    border-color: #ff9800;
    color: #8b4513;
    animation: pulse-urgent 1.5s ease-in-out infinite;
}

/* Estado: Vencido */
.mi-perfil-page .vigencia-item.vencido {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

/* Estado: Sin fecha o fecha inválida */
.mi-perfil-page .vigencia-item.sin-fecha,
.mi-perfil-page .vigencia-item.fecha-invalida {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    border-color: #6c757d;
    color: #383d41;
}

/* Animaciones sutiles */
@keyframes pulse-warning {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

@keyframes pulse-urgent {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
}

/* Estilos para vigencia en el modal */
.detail-value.vigencia-vigente {
    color: #28a745;
    font-weight: 700;
}

.detail-value.vigencia-vigente-proximo-vencer {
    color: #ffc107;
    font-weight: 700;
}

.detail-value.vigencia-vigente-ultimo-dia {
    color: #ff9800;
    font-weight: 700;
}

.detail-value.vigencia-vencido {
    color: #dc3545;
    font-weight: 700;
}

.detail-value.vigencia-sin-fecha,
.detail-value.vigencia-fecha-invalida {
    color: #6c757d;
    font-weight: 700;
}

.mi-perfil-page .error-box {
    text-align: center;
    padding: 50px;
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 12px;
}

.mi-perfil-page .error-box h2 {
    color: #0d47a1;
    margin: 20px 0;
}

.mi-perfil-page .error-box p {
    color: #1565c0;
    margin-bottom: 20px;
}

.mi-perfil-page .error-box .button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 174, 255, 0.3);
    margin-top: 15px;
    transition: transform 0.2s, background 0.3s;
}

.mi-perfil-page .error-box .button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* === HABILITACIÓN === */

.habilitacion-page .post-holder {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.habilitacion-page .post-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.habilitacion-page .habilitacion-intro {
    background: #f8f9fa;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.habilitacion-page .habilitacion-intro p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.habilitacion-page .filter-box {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e3f2fd;
    margin-bottom: 30px;
}

.habilitacion-page .filter-box h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

.habilitacion-page .search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.habilitacion-page .search-form input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.habilitacion-page .search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.1);
}

.habilitacion-page .search-form .button {
    padding: 15px 40px !important;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.habilitacion-page .search-form .button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 174, 255, 0.3);
}

.habilitacion-page .results-area {
    min-height: 200px;
}

.habilitacion-page .placeholder-text {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
    font-style: italic;
}

.habilitacion-page #results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.habilitacion-page #results-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.habilitacion-page #results-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.habilitacion-page #results-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.habilitacion-page #results-table tbody tr {
    transition: all 0.2s ease;
}

.habilitacion-page #results-table tbody tr:hover {
    background: #f8f9fa;
}

.habilitacion-page #results-table tbody tr:last-child td {
    border-bottom: none;
}

.habilitacion-page .btn-view-ficha {
    padding: 8px 20px !important;
    background: var(--secondary-color) !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.habilitacion-page .btn-view-ficha:hover {
    background: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.3);
}

/* === MODAL === */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.modal-header .detail-label {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
    margin: 10px 0;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.modal-logo {
    max-height: 80px;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    width: 100%;
}

.ficha-details {
    padding: 40px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.detail-value {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.detail-value.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.status-badge.habilitado {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.status-badge.no-habilitado {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.modal-footer {
    padding: 20px 50px 40px;
    text-align: center;
}

.modal-close-btn {
    padding: 15px 40px !important;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .mi-perfil-page .profile-card {
        padding: 30px !important;
    }

    .mi-perfil-page .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .mi-perfil-page .profile-photo {
        width: 150px;
        height: 150px;
    }

    .mi-perfil-page .profile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .habilitacion-page .post-holder {
        padding: 20px;
    }

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

    .habilitacion-page .search-form .button {
        width: 100%;
    }

    .habilitacion-page #results-table {
        font-size: 13px;
    }

    .habilitacion-page #results-table th,
    .habilitacion-page #results-table td {
        padding: 12px 10px;
    }

    .ficha-details {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }

    .modal-header {
        padding: 30px 25px 20px;
    }

    .modal-footer {
        padding: 15px 25px 30px;
    }

    .modal-card {
        width: 95%;
    }
}

/* === UTILITIES === */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* Botones Premium de Impresión */
.print-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.print-btn-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    text-align: center;
    color: #fff !important;
    font-weight: 700;
}

.print-btn-premium i {
    font-size: 32px;
    margin-bottom: 10px;
}

.print-btn-premium span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.print-btn-premium.cert {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.print-btn-premium.diploma {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.print-btn-premium:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.lock-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #856404;
}

.lock-box i {
    font-size: 24px;
}

.lock-box p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .print-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* === ESTILOS PARA BOTÓN DE ACTUALIZAR FOTO === */

.profile-photo {
    position: relative;
}

.btn-update-photo {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 174, 255, 0.95);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.profile-photo:hover .btn-update-photo {
    opacity: 1;
}

.btn-update-photo:hover {
    background: rgba(0, 136, 204, 1);
    transform: translateX(-50%) translateY(-2px);
}

/* === ESTILOS PARA FOOTER ACTIONS === */

.footer-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.edit-data-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.edit-data-btn:hover {
    background: var(--secondary-color) !important;
}

/* === ESTILOS PARA MODALES DE FORMULARIOS === */

.modal-body {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group textarea[readonly] {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.form-note {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.form-note p {
    margin: 0;
    font-size: 13px;
    color: #1565c0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 174, 255, 0.3);
}

.btn-secondary {
    background: #6c757d !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268 !important;
}

.form-message {
    margin-top: 20px;
}

.success-message {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.error-message {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.photo-preview {
    margin-top: 15px;
    text-align: center;
}

/* === RESPONSIVE PARA MODALES === */

@media (max-width: 768px) {
    .modal-body {
        padding: 20px 25px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button,
    .modal-actions .button {
        width: 100%;
    }

    .footer-actions {
        flex-direction: column;
    }

    .footer-actions button,
    .footer-actions a {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   ESTILOS PARA VERIFICACIÓN Y CÓDIGOS QR
   ========================================================================== */

/* Banner de verificación por QR en el modal de ficha */
.modal-qr-notice {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 15px 50px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.12);
}

.modal-qr-notice-icon {
    font-size: 26px;
    line-height: 1;
}

.modal-qr-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 2px;
}

.modal-qr-notice-desc {
    font-size: 12px;
    color: #2e7d32;
    margin: 0;
    line-height: 1.3;
}

/* Card del QR dentro del modal de ficha */
.modal-qr-box-wrapper {
    margin-top: 10px;
}

.modal-qr-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.modal-qr-image-container {
    flex-shrink: 0;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-qr-image-container img {
    display: block;
    border-radius: 4px;
}

.modal-qr-info {
    flex-grow: 1;
}

.modal-qr-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.modal-qr-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.modal-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-copy-qr-link,
.btn-download-qr-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-copy-qr-link {
    background: #0ea5e9;
    color: #fff;
}

.btn-copy-qr-link:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.btn-download-qr-action {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-download-qr-action:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

/* Sección QR en "Mi Perfil" */
.qr-credential-section {
    margin-top: 25px;
}

.profile-qr-box {
    display: flex;
    align-items: center;
    gap: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.profile-qr-preview {
    flex-shrink: 0;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.profile-qr-preview img {
    display: block;
    border-radius: 4px;
}

.profile-qr-details {
    flex-grow: 1;
}

.profile-qr-details p {
    margin: 0 0 10px 0;
    font-size: 13.5px;
    color: #475569;
}

.profile-qr-url {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 12px;
    color: #0284c7;
    word-break: break-all;
    margin-bottom: 14px !important;
}

.profile-qr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .modal-qr-card,
    .profile-qr-box {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-qr-actions,
    .profile-qr-actions {
        justify-content: center;
    }
    
    .modal-qr-notice {
        margin: 15px 20px 0;
    }
}