/* Importar fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables CSS Globales para Aero Glass */
:root {
    --primary-color: #000000;
    --primary-gradient: linear-gradient(135deg, #0ba37d, #0cc0c0);
    --text-color: #000000;
    --text-color-dark: #222;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-blur: blur(14px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow-light: 0 4px 20px rgba(0, 229, 145, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 229, 145, 0.12);
    --header-bg: linear-gradient(135deg, rgba(0, 104, 255, 0.85) 0%, rgba(0, 104, 255, 0.95) 50%, rgba(0, 104, 255, 0.85) 100%);
    --header-blur: blur(25px);
    
    /* Enhanced glass effects */
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

/* Subtle animation for glass elements */
@keyframes glassShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 70%, #f1f5f9 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    color: var(--text-color);
}

/* Header superior */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: var(--header-blur) saturate(180%);
    -webkit-backdrop-filter: var(--header-blur) saturate(180%);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 104, 255, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: glassShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.contact-info {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: white;
    opacity: 0.9;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.telemedicina-btn, .intranet-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    color: white;
}

.telemedicina-btn {
    background: var(--primary-gradient);
    color: var(--text-color-dark);
    box-shadow: var(--shadow-light);
}

.telemedicina-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

.intranet-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.intranet-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-3px);
}

/* Header principal */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--header-bg);
    backdrop-filter: var(--header-blur) saturate(180%);
    -webkit-backdrop-filter: var(--header-blur) saturate(180%);
    color: white;
    padding: 5px 10px;
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 104, 255, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: glassShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* Logo sin fondo blanco */
.logo-mdm {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 229, 145, 0.1));
}

/* Logo de texto */
.logo-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px;
    line-height: 1.1;
}

.logo-texto-line1 {
    color: white;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 2px;
    margin-left: -13px;
}

.logo-texto-line2 {
    color: white;
    font-family: 'Poppins', 'Inter', Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 12px;
}

.logo-texto-line2 .linea {
    font-family: Arial, sans-serif !important;
}

.logo-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex: 1;
    margin-left: auto;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: rgba(6, 108, 217, 0.585);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0, 89, 255, 0.2);
}

.nav-item:hover {
    background: var(--primary-color);
    color: var(--text-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
    filter: brightness(1.1);
}

/* Contenido principal */
.main-content {
    padding: 0; /* Sin padding para que el container interno maneje el espaciado */
    max-width: 100vw; /* Usar todo el ancho de la ventana */
    margin: 0; /* Sin margen para pegarlo a los bordes */
    width: 100%; /* Asegurar que ocupe todo el ancho */
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 60px;
}

/* Sección Credencial Digital */
.credential-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.credential-card h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.credential-card p {
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.credential-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 229, 145, 0.08);
    background: rgba(255, 255, 255, 1);
}

.generate-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-light);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

/* Logo central */
.center-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.shield-logo {
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 350px;
    max-height: 500px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: var(--glass-border);
    transition: var(--transition);
}

.shield-content {
    text-align: center;
    color: var(--text-color);
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edificio-mdm {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1.5px) brightness(0.4) saturate(0.7) contrast(1.1);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.shield-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--glass-bg) 0%, 
        rgba(0, 229, 145, 0.1) 30%,
        rgba(0, 201, 129, 0.05) 70%,
        var(--glass-bg) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: var(--border-radius);
}

.shield-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 229, 145, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
    border-radius: var(--border-radius);
}

.shield-logo:hover .edificio-mdm {
    filter: blur(1px) brightness(0.5) saturate(0.8) contrast(1.2);
    transform: scale(1.02);
}

.shield-logo:hover {
    box-shadow: 0 12px 50px rgba(0, 229, 145, 0.15);
    transform: translateY(-3px);
}

.shield-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(0, 229, 145, 0.1);
}

.shield-content p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
    color: var(--text-color);
}

.argentina-map {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Sección de contacto */
.contact-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.contact-card h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-card > p {
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.phone-numbers {
    margin-bottom: 20px;
}

.phone-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.phone-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px 0;
}

.phone-desc {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.85;
}

.email-contact {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.email-contact:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.email {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.email-desc {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.85;
}

/* Texto inferior */
.bottom-text {
    text-align: center;
    margin: 40px 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.bottom-text p {
    color: var(--text-color);
    opacity: 0.85;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Botones flotantes */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.facebook {
    background: rgba(24, 119, 242, 0.7);
}

.instagram {
    background: rgba(228, 64, 95, 0.7);
}

.whatsapp {
    background: var(--primary-gradient);
    color: var(--text-color-dark);
}

/* Botón de autorizaciones */
.authorization-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.authorization-btn button {
    background: var(--primary-gradient);
    color: var(--text-color-dark);
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.authorization-btn button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

/* Estilos para la Credencial Digital - REFACTORIZADO AERO GLASS */
.credencial-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    border: var(--glass-border);
    transition: var(--transition);
}

.credencial-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 229, 145, 0.2);
}

.credencial-logo {
    height: 90px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0, 229, 145, 0.3));
}

.credencial-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 15px 0 8px 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 229, 145, 0.1);
}

.credencial-header h3 {
    color: var(--text-color);
    opacity: 0.85;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tarjetas-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
    perspective: 1000px;
}

.tarjeta {
    width: 400px;
    height: 250px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotateY(5deg);
    transition: var(--transition);
    overflow: hidden;
    animation: tarjetaEntrada 0.6s ease-out forwards;
}

.tarjeta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 229, 145, 0.1) 50%, transparent 100%);
    pointer-events: none;
}

.tarjeta:hover {
    transform: rotateY(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 229, 145, 0.12);
}

.tarjeta-frente {
    width: 400px;
    height: 250px;
    background-image: url('../images/tarjeta_1_prueba2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    animation-delay: 0.2s;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tarjeta-datos {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Valor del NOMBRE Y APELLIDO - a la derecha de los dos puntos de "NOMBRE Y APELLIDO:" */
.valor-nombre {
    position: absolute;
    left: 20px;
    top: 116px;
    font-size: 14px; /* Reducir tamaño de fuente */
    font-weight: bold;
    color: #000;
    text-shadow: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 400px;
    text-align: left;
    line-height: 1.2; /* Mejor espaciado de líneas */
    overflow: hidden; /* Oculta texto que se desborde */
}

/* Valor del AFILIADO (CUIL) - a la derecha de los dos puntos de "AFILIADO:" */
.valor-afiliado {
    position: absolute;
    left: 20px;
    top: 155px;
    font-size: 14px; /* Reducir tamaño de fuente */
    font-weight: bold;
    color: #000;
    text-shadow: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 150px;
    text-align: left;
}

/* Valor de VIGENCIA (Estado) - a la derecha de los dos puntos de "VIGENCIA:" */
.valor-vigencia {
    position: absolute;
    left: 20px;
    top: 198px;
    font-size: 11px; /* Reducir tamaño de fuente */
    font-weight: bold;
    text-align: left;
    width: 100px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Fecha de vencimiento separada - ESTILO ÚNICO Y CONSOLIDADO */
.fecha-vencimiento-separada {
    position: absolute !important;
    left: 67px ;
    top: 179px ;
    font-size: 10px !important; /* Reducir tamaño de fuente */
    font-weight: bold !important;
    color: #000 !important;
    text-align: left !important;
    z-index: 10 !important;
    background: transparent !important;
}

/* Estilos para los diferentes estados de vigencia */
.estado-activo {
    color: #000 !important;
    background: #ffffff !important;
    border: 1px solid #0dc02e;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: none;
    font-weight: bold;
    display: inline-block;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
}

.estado-inactivo {
    background: #ffffff !important;
    border: 1px solid #b50505;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: none;
    font-weight: bold;
    display: inline-block;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
}

.estado-suspendido {
    background: #ffffff !important;
    border: 1px solid #ed0606;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: none;
    font-weight: bold;
    display: inline-block;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
}

.estado-vencido {
    background: #ffffff !important;
    border: 1px solid #ec0707;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: none;
    font-weight: bold;
    display: inline-block;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
}

/* Nuevos estilos para estados ALTA y BAJA */
.estado-alta {
    color: #2e7d32 !important; /* Verde oscuro */
    background: #e8f5e8 !important; /* Fondo verde claro */
    border: 1px solid #4caf50 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
}

.estado-baja {
    color: #c62828 !important; /* Rojo oscuro */
    background: #ffebee !important; /* Fondo rojo claro */
    border: 1px solid #f44336 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
}



.tarjeta-reverso {
    width: 400px;
    height: 250px;
    background-image: url('../images/fondo-atras-nuevo.png');
    background-size: 105%; /* Ajustar escala para mejor visualización */
    background-position: center top; /* Centrar horizontalmente y alinear arriba */
    background-repeat: no-repeat;
    position: relative;
    animation-delay: 0.4s;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* Mejorar la calidad de la imagen */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.tarjeta-reverso::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 48%, 
        rgba(0, 229, 145, 0.05) 49%, 
        rgba(0, 229, 145, 0.05) 51%, 
        transparent 52%);
    pointer-events: none;
}

/* Estilos heredados mantenidos para compatibilidad */
.tarjeta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.tarjeta-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tarjeta-title h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tarjeta-title p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.tarjeta-reverso .tarjeta-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: none;
    font-weight: 700;
}

.tarjeta-body {
    position: absolute;
    top: 8cap;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    padding: 10px 20px 15px 5px;
    background: transparent;
}


.campo {
    top: 100px;
    left: 0px;
    margin-bottom: 0px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    animation: fadeInUp 0.3s ease;
    margin-left: 0px;
}

.campo strong {
    font-size: 10px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    text-align: left;
}

.campo span {
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #000;
    text-align: left;
    margin-left: 5px;
    margin-top: 2px;
}

.contacto-emergencia {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.contacto-emergencia span {
    margin-top: 0px !important;
    margin-left: 0px !important;
    text-align: left !important;
}

.phone-emergency {
    color: #d32f2f !important;
    font-weight: bold !important;
}

.fecha-consulta {
    margin-top: 4px;
    font-size: 10px !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.fecha-consulta strong {
    font-size: 9px !important;
    color: #666 !important;
    min-width: 70px !important;
    flex-shrink: 0 !important;
}

.fecha-consulta span {
    font-size: 10px !important;
    color: #333 !important;
    flex: 1 !important;
}

.tarjeta-frente .campo span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--text-color-dark);
}

.estado-activo {
    color: var(--primary-color) !important;
    background: rgba(0, 229, 145, 0.15);
    padding: 2px 8px;
    border-radius: var(--border-radius);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 229, 145, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tarjeta-reverso .campo span {
    color: var(--text-color);
    font-weight: 600;
}

.qr-code {
    text-align: center;
    margin-top: 15px;
}

.qr-box {
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.qr-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.qr-box span {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 229, 145, 0.1);
}

.qr-box small {
    font-size: 0.65rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-top: 2px;
    font-weight: 500;
}

.tarjeta-footer {
    text-align: center;
    margin-top: 8px;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.tarjeta-footer small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.credencial-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: var(--glass-border);
}

.credencial-info p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.5;
}

.credencial-info small {
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones adicionales para las tarjetas */
@keyframes tarjetaEntrada {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateY(15deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateY(5deg) scale(1);
    }
}

/* Efectos hover mejorados */
.tarjeta:hover {
    transform: rotateY(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.tarjeta-frente:hover::after {
    opacity: 0.15;
}

/* Animación para cuando aparece el modal */
.credencial-overlay.modal-active .tarjeta {
    animation: modalTarjetaEntrada 0.8s ease-out forwards;
}

@keyframes modalTarjetaEntrada {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateY(25deg) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) rotateY(10deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateY(5deg) scale(1);
    }
}

.credencial-overlay.modal-active .tarjeta-frente {
    animation-delay: 0.3s;
}

.credencial-overlay.modal-active .tarjeta-reverso {
    animation-delay: 0.5s;
}

/* ====================================
   ESTILOS PARA MODAL DE CREDENCIAL
   ==================================== */

/* Overlay del modal */
.credencial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Cuando el modal está activo */
.credencial-overlay.modal-active {
    opacity: 1;
    visibility: visible;
}

/* El modal en sí */
.credencial-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animación cuando se muestra el modal */
.credencial-overlay.modal-active .credencial-modal {
    transform: scale(1) translateY(0);
}

/* Botón de cerrar */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #666;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-close-btn:hover {
    background: rgba(255, 71, 87, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

/* Contenido del modal */
.credencial-modal .credencial-container {
    margin: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    box-shadow: none;
    border: none;
    padding: 30px;
}

/* Efectos especiales cuando el modal está activo */
body.modal-open {
    overflow: hidden;
}

/* Animación de entrada para las tarjetas dentro del modal */
.credencial-overlay.modal-active .tarjeta {
    animation: modalTarjetaEntrada 0.8s ease-out forwards;
}

.credencial-overlay.modal-active .tarjeta-frente {
    animation-delay: 0.3s;
}

.credencial-overlay.modal-active .tarjeta-reverso {
    animation-delay: 0.5s;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .credencial-modal {
        margin: 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
    }
    
    .credencial-modal .credencial-container {
        padding: 20px;
    }
    
    .credencial-modal .tarjetas-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .credencial-modal .tarjeta {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Ajustes para la tarjeta con imagen de fondo en móvil */
    .tarjeta-frente {
        width: 350px;
        height: 220px;
    }
    
    /* Ajustar proporciones para móvil */
    .valor-nombre {
        left: 40px;
        top: 80px;
        font-size: 10px;
        width: 180px; /* Ajustado para móvil */
        line-height: 1.2;
    }
    
    .valor-dni {
        left: 40px;
        top: 95px;
        font-size: 9px;
    }
    
    .valor-afiliado {
        left: 40px;
        top: 115px;
        font-size: 10px;
    }
    
    .valor-cuil {
        left: 40px;
        top: 130px;
        font-size: 9px;
    }
    
    .valor-vigencia {
        left: 40px;
        top: 150px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tarjeta-frente {
        width: 300px;
        height: 190px;
    }
    
    /* Ajustar más para pantallas muy pequeñas */
    .valor-nombre {
        left: 35px;
        top: 65px;
        font-size: 9px;
        width: 160px; /* Ajustado para pantallas muy pequeñas */
        line-height: 1.1;
    }
    
    .valor-dni {
        left: 35px;
        top: 78px;
        font-size: 8px;
    }
    
    .valor-afiliado {
        left: 35px;
        top: 95px;
        font-size: 9px;
    }
    
    .valor-cuil {
        left: 35px;
        top: 108px;
        font-size: 8px;
    }
    
    .valor-vigencia {
        left: 35px;
        top: 125px;
        font-size: 9px;
    }
}

/* Efectos adicionales para el fondo cuando está activo */
.credencial-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 51, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .main-header {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .logo-mdm {
        height: 70px;
    }
    
    .logo-texto {
        margin-left: 5px;
    }
    
    .logo-texto-line1 {
        font-size: 14px;
    }
    
    .logo-texto-line2 {
        font-family: 'Poppins', 'Inter', Arial, sans-serif;
        font-size: 12px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-item {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .content-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .floating-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 20px 0;
        transform: none;
    }
    
    .authorization-btn {
        position: static;
        text-align: center;
        margin-top: 20px;
    }
    
    .tarjetas-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tarjeta {
        width: 100%;
        max-width: 350px;
    }
    
    .credencial-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-print, .btn-new-search {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
    
    .credential-section,
    .contact-section {
        padding: 15px;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .logo-mdm {
        height: 60px;
    }
    
    .logo-texto {
        margin-left: 0;
        text-align: center;
    }
    
    .logo-texto-line1 {
        font-size: 12px;
    }
    
    .logo-texto-line2 {
        font-family: 'Poppins', 'Inter', Arial, sans-serif;
        font-size: 10px;
    }
    
    .shield-logo {
        width: 150px;
        height: 180px;
    }
    
    .shield-content h3 {
        font-size: 1.3rem;
    }
    
    .shield-content p {
        font-size: 1rem;
    }
    
    .argentina-map {
        font-size: 2rem;
    }
}

/* ESTILOS DE IMPRESIÓN UNIFICADOS - REMOVER ESTE BLOQUE DUPLICADO */

/* ====================================
   ESTILOS PARA SITIO WEB PRINCIPAL
   Layout con navegación lateral moderna
   ==================================== */

/* Contenedor principal para layout lateral */
.container {
    display: flex;
    min-height: calc(100vh - 140px); /* Altura total menos headers */
    max-width: 100vw; /* Usar todo el ancho de la ventana */
    margin: 0; /* Sin margen para que llegue a los bordes */
    padding: 0; /* Sin padding para que el sidebar llegue al borde */
    gap: 0; /* Sin gap para que el sidebar esté pegado al borde */
    width: 100vw; /* Forzar ancho completo */
}

/* Barra de navegación lateral */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 0;
    box-shadow: var(--shadow-light);
    padding: 25px 15px 25px 0;
    position: sticky;
    top: 20px;
    height: fit-content;
    border: none;
    margin-left: 0;
    border-right: var(--glass-border);
    transition: var(--transition);
}

/* Botones de navegación estilo cards modernos */
.sidebar button,
.sidebar .sidebar-link {
    display: flex;
    align-items: center;
    width: calc(100% - 10px);
    margin: 6px 5px 6px 10px;
    padding: 14px 16px;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-color);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: var(--glass-border);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Icono antes del texto */
.sidebar button::before,
.sidebar .sidebar-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 12px;
    transition: var(--transition);
    opacity: 0.8;
}

/* Efectos hover para botones de navegación */
.sidebar button:hover,
.sidebar .sidebar-link:hover {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: white;
    transform: translateX(8px) translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 102, 255, 0.3);
}

.sidebar button:hover::before,
.sidebar .sidebar-link:hover::before {
    background: white;
    transform: scale(1.5);
    opacity: 1;
}

/* Botón activo */
.sidebar button.active {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: white;
    transform: translateX(6px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 102, 255, 0.4);
}

.sidebar button.active::before {
    background: white;
    opacity: 1;
    transform: scale(1.3);
}

/* Enlaces externos especiales */
.sidebar .sidebar-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(0, 229, 145, 0.1);
    border: 1px solid rgba(0, 229, 145, 0.3);
    margin-top: 20px;
}

.sidebar .sidebar-link::before {
    background: var(--primary-color);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.sidebar .sidebar-link:hover {
    background: var(--primary-gradient);
    color: var(--text-color-dark);
    border-color: rgba(0, 229, 145, 0.5);
}

.sidebar .sidebar-link:hover::before {
    background: var(--text-color-dark);
}

/* Área de contenido principal */
.content {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 0;
    box-shadow: none;
    padding: 40px 20px 40px 30px;
    margin-left: 0;
    margin-right: 0;
    min-height: 600px;
    border: none;
    position: relative;
    overflow: hidden;
    width: calc(100vw - 260px);
    border-left: var(--glass-border);
    transition: var(--transition);
}

/* Efecto de fondo sutil en el contenido */
.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 229, 145, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 201, 129, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Secciones de contenido */
.tab-section {
    display: none;
    animation: slideInFade 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.tab-section.active {
    display: block;
}

.tab-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    position: relative;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.tab-section p {
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.15rem;
    font-weight: 400;
}

.tab-section ul {
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.8;
    margin: 25px 0;
}

.tab-section li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 1.05rem;
}

.tab-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Botón de enlace mejorado con efecto glass */
.btn-link {
    display: inline-block !important;
    background: var(--primary-gradient) !important;
    color: var(--text-color-dark) !important;
    padding: 18px 35px !important;
    text-decoration: none !important;
    border-radius: var(--border-radius) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-light) !important;
    font-size: 1.1rem !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-link:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: var(--shadow-medium) !important;
    filter: brightness(1.1) !important;
}

.btn-link:hover::before {
    left: 100%;
}

/* Cajas de información con diseño glass */
.info-box {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    padding: 30px !important;
    border-radius: var(--border-radius) !important;
    margin: 35px 0 !important;
    border: var(--glass-border) !important;
    box-shadow: var(--shadow-light) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 48%, 
        rgba(0, 229, 145, 0.03) 49%, 
        rgba(0, 229, 145, 0.03) 51%, 
        transparent 52%);
    pointer-events: none;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium) !important;
}

.info-box h4 {
    color: var(--primary-color) !important;
    margin-bottom: 20px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 1 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Sección de noticias */
.noticias-section {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 50px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 25px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    border: var(--glass-border);
    transition: var(--transition);
}

.noticias-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 229, 145, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.noticias-section h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.noticias-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.noticias-section p {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1.2rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.noticias-section .info-box {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    color: var(--text-color) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.noticias-section .info-box h4 {
    color: var(--primary-color) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Animaciones mejoradas */
@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(40px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Pantallas extra grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 100vw; /* Usar todo el ancho disponible */
        gap: 0; /* Sin gap para mantener sidebar pegado */
    }
    
    .content {
        padding: 40px 25px 40px 35px; /* Más padding para pantallas grandes */
        margin-right: 20px; /* Más margen derecho */
    }
    
    #inicio .hero-section {
        min-height: 700px;
    }
    
    #inicio .hero-overlay {
        padding: 100px 80px;
    }
    
    #inicio .hero-content {
        max-width: 1400px; /* Aumentar aún más para pantallas grandes */
    }
    
    #inicio .features-grid {
        max-width: 1400px; /* Aumentar el grid también */
        gap: 40px; /* Mayor separación entre tarjetas */
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        min-height: auto;
        gap: 0; /* Sin gap para mantener consistencia */
        max-width: 100vw; /* Usar todo el ancho en tablets */
        padding: 0 10px; /* Pequeño padding solo en tablets */
    }
    
    .sidebar {
        width: 100%;
        min-width: auto;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 20px 15px;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        border: 1px solid rgba(37, 99, 235, 0.06);
    }
    
    .sidebar button,
    .sidebar .sidebar-link {
        width: 100%;
        margin: 0;
        padding: 15px 18px;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .sidebar button:hover,
    .sidebar .sidebar-link:hover {
        transform: translateY(-3px) scale(1.02);
    }
    
    .content {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 40px;
        margin: 15px 0;
        border: 1px solid rgba(37, 99, 235, 0.04);
    }
    
    .tab-section h2 {
        font-size: 2.2rem;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .container {
        padding: 0; /* Sin padding para conservar el diseño pegado al borde */
        gap: 0; /* Sin gap para mantener el diseño */
        flex-direction: column; /* Apilar en móvil */
    }
    
    .sidebar {
        width: 100%; /* Ocupar todo el ancho en móvil */
        min-width: unset;
        padding: 15px 10px; /* Padding reducido pero manteniendo el diseño */
        border-radius: 0; /* Sin bordes redondeados en móvil */
        position: relative; /* No sticky en móvil */
        order: 2; /* Mover el sidebar después del contenido en móvil */
    }
    
    .sidebar button,
    .sidebar .sidebar-link {
        margin: 6px 10px; /* Centrar botones en móvil */
        padding: 14px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
        width: calc(100% - 20px); /* Ajustar ancho para el nuevo margen */
    }
    
    .content {
        width: 100vw; /* Ocupar todo el ancho en móvil */
        padding: 25px 15px; /* Padding reducido pero suficiente */
        border-radius: 0; /* Sin bordes redondeados en móvil */
        margin: 0; /* Sin márgenes en móvil */
        order: 1; /* Mostrar contenido primero en móvil */
    }
    
    .tab-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .tab-section p {
        font-size: 1.05rem;
    }
    
    .btn-link {
        padding: 15px 25px !important;
        font-size: 1rem !important;
    }
    
    .noticias-section {
        margin: 40px auto 0;
        padding: 35px 20px;
        border-radius: 20px;
    }
    
    .noticias-section h2 {
        font-size: 2.2rem;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .sidebar {
        padding: 12px;
        border-radius: 12px;
    }
    
    .sidebar button,
    .sidebar .sidebar-link {
        font-size: 0.85rem;
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    .content {
        padding: 20px;
        border-radius: 12px;
    }
    
    .tab-section h2 {
        font-size: 1.5rem;
    }
    
    .info-box {
        padding: 20px !important;
        border-radius: 15px !important;
    }
    
    .noticias-section {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .noticias-section h2 {
        font-size: 1.8rem;
    }
}

/* ===== ESTILOS PARA LA SECCIÓN DE INICIO (HERO) ===== */

/* Padding especial para la sección de inicio */
#inicio {
    padding: 0 !important; /* Sin padding para aprovechar todo el espacio */
}

/* Hero Section - Solo para la sección de INICIO */
#inicio .hero-section {
    min-height: 1200px;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(30, 30, 30, 0.6) 100%),
                url('../images/inicio.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    border: var(--glass-border);
}

#inicio .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--glass-bg) 0%, 
        rgba(0, 229, 145, 0.1) 50%, 
        var(--glass-bg) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 60px 60px 60px;
}

#inicio .hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: 2;
    width: 100%;
}

#inicio .hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #040506;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 
                 0 0 10px rgba(255, 255, 255, 0.6), 
                 0 0 30px rgba(255, 255, 255, 0.4);
}

#inicio .hero-subtitle {
    font-size: 1.5rem;
    color: #000000;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 
                 0 0 15px rgba(255, 255, 255, 0.5), 
                 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Hero Stats - Solo para la sección de INICIO */
#inicio .hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

#inicio .stat-item {
    text-align: center;
    padding: 30px 25px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: var(--glass-border);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    min-width: 160px;
}

#inicio .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 30, 0.65);
    box-shadow: var(--shadow-medium);
}

#inicio .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom:  10px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

#inicio .stat-label {
    font-size: 1rem;
    color: #2c3e50;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hero Actions - Solo para la sección de INICIO */
#inicio .hero-actions {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

#inicio .hero-btn {
    padding: 20px 40px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    backdrop-filter: var(--glass-blur) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0,  0.1) !important;
    min-width: 200px !important;
    justify-content: center !important;
    font-family: 'Inter', sans-serif !important;
}

#inicio .hero-btn.primary {
    background: var(--primary-gradient) !important;
    color: var(--text-color-dark) !important;
       box-shadow: var(--shadow-light) !important;
    border: 1px solid rgba(0, 229, 145, 0.3) !important;
}

#inicio .hero-btn.primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-medium) !important;
}

#inicio .hero-btn.secondary {
    background: var(--glass-bg) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: var(--shadow-light) !important;
}

#inicio .hero-btn.secondary:hover {
    background: var(--primary-color) !important;
    color: var(--text-color-dark) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-medium) !important;
}

/* Features Grid - Solo para la sección de INICIO */
#inicio .features-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 210px auto 0;
    width: 100%;
    max-width: 900px;
    flex-wrap: wrap;
}

#inicio .feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 20px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: var(--glass-border);
    width: 280px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#inicio .feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
    background: rgba(30, 30, 30, 0.65);
}

#inicio .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: white;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

#inicio .feature-card h3 {
    font-size: 1.15rem;
    color: white;
    margin: 15px 0 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

#inicio .feature-card p {
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Responsive para Hero Section - Solo para la sección de INICIO */
@media (max-width: 768px) {
    /* Logo section responsive - mantener horizontal en tablets */
    .inicio-logo-section {
        flex-direction: row;
        padding: 25px 30px; /* Ajustado para tablets */
        background: #0033cc; /* Mantener fondo azul */
        max-width: 100%;
    }
    
    .inicio-logo-mdm {
        height: 70px; /* Ajustado para tablets */
        margin-right: 20px;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    }
    
    .inicio-logo-texto-line1 {
        font-size: 22px; /* Ajustado para tablets */
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .inicio-logo-texto-line2 {
        font-family: 'Poppins', Arial, sans-serif;
        font-size: 18px; /* Ajustado para tablets */
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    #inicio .hero-section {
        min-height: 650px;
    }
    
    #inicio .hero-overlay {
        padding: 50px 25px;
    }
    
    #inicio .hero-content {
        max-width: 100%;
    }
    
    #inicio .hero-title {
        font-size: 2.5rem;
    }
    
    #inicio .hero-subtitle {
        font-size: 1.2rem;
    }
    
    #inicio .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    #inicio .stat-item {
        padding: 25px 20px;
        min-width: 140px;
    }
    
    #inicio .stat-number {
        font-size: 2rem;
    }
    
    #inicio .features-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
        max-width: 100%;
    }
    
    #inicio .feature-card {
        width: 100%;
        max-width: 350px;
        padding: 25px 20px;
        min-height: 180px;
    }
    
    #inicio .feature-card:hover {
        transform: translateY(-2px) scale(0.97); /* Hover ajustado para mobile */
    }
    
    #inicio .feature-card h3 {
        font-size: 1rem;
    }
    
    #inicio .feature-card p {
        font-size: 0.88rem; /* Ligeramente más grande en mobile */
    }
    
    #inicio .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    /* Logo section responsive for very small screens - cambiar a vertical solo aquí */
    .inicio-logo-section {
        flex-direction: column; /* Solo en móviles muy pequeños cambiar a vertical */
        text-align: center;
        padding: 20px;
        margin-bottom: 30px;
        background: #0033cc; /* Mantener fondo azul */
        max-width: 100%;
    }
    
    .inicio-logo-mdm {
        height: 60px;
        margin-right: 0; /* Sin margen derecho en vertical */
        margin-bottom: 15px; /* Margen inferior cuando está vertical */
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    .inicio-logo-texto-line1 {
        font-size: 18px;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .inicio-logo-texto-line2 {
        font-family: 'Poppins', Arial, sans-serif;
        font-size: 16px;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    #inicio .hero-section {
        min-height: 600px;
    }
    
    #inicio .hero-overlay {
        padding: 40px 20px;
    }
    
    #inicio .hero-title {
        font-size: 2rem;
    }
    
    #inicio .hero-subtitle {
        font-size: 1.1rem;
    }
    
    #inicio .hero-stats {
        gap: 15px;
    }
    
    #inicio .stat-item {
        padding: 20px 15px;
        min-width: 120px;
    }
    
    #inicio .stat-number {
        font-size: 1.7rem;
    }
    
    #inicio .features-grid {
        gap: 15px;
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    #inicio .feature-card {
        width: 100%;
        max-width: 300px;
        padding: 20px 15px;
        min-height: 160px;
    }
    
    #inicio .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    #inicio .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    #inicio .feature-card p {
        font-size: 0.85rem;
    }
    
    #inicio .feature-card p {
        font-size: 0.82rem; /* Reducido para móviles pequeños */
    }
    
    #inicio .stat-label {
        font-size: 0.9rem;
    }
    
    #inicio .hero-btn {
        padding: 18px 30px !important;
        font-size: 1.1rem !important;
    }
    
    #inicio .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #inicio .feature-card {
        padding: 25px;
    }
    
    #inicio .feature-icon {
        font-size: 3rem;
    }
    
    #inicio .feature-card h3 {
        font-size: 1.3rem;
    }
    
    #inicio .feature-card p {
        font-size: 1rem;
    }
}

/* ===== LOGO SECTION WITHIN INICIO ===== */
.inicio-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 30px 40px;
    background: transparent;
    border-radius: var(--border-radius);
    box-shadow: none;
    border: none;
    flex-direction: row;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.inicio-logo-section:hover {
    transform: none;
    box-shadow: none;
}

.inicio-logo-mdm {
    height: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 229, 145, 0.3));
    margin-right: 25px;
    flex-shrink: 0;
}

.inicio-logo-texto {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    line-height: 1.1;
    flex: 1;
    margin-top: -30px;
}

.inicio-logo-texto-line1 {
    color: #ffffff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 26px;
    font-weight: 900;
    margin-left: -80px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.inicio-logo-texto-line2 {
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 26px;
    font-weight: 300;
    margin-left: -45px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.inicio-logo-texto-line2 .linea{
    color: #ffffff;
    font-family: Arial, sans-serif !important;
    font-size: 20px;
    font-weight: 900;
    margin-left: -45px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ====================================
   ICONOS PROFESIONALES PARA INSTITUCIÓN MÉDICA
   Reemplazo de emojis por iconos CSS profesionales
   ==================================== */

/* Iconos del header */
.contact-phone::before {
    content: '☎';
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #19378b;
    margin-right: 8px;
    font-weight: bold;
}

.contact-email::before {
    content: '✉';
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #19378b;
    margin-right: 8px;
    font-weight: bold;
}

.intranet-btn::before {
    content: '●';
    margin-right: 8px;
    color: #19378b;
    font-weight: bold;
}

/* Iconos de características principales - más profesionales */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.emergency-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.emergency-icon::before {
    content: '+';
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.professional-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.professional-icon::before {
    content: '♦';
    font-size: 1.8rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tech-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.tech-icon::before {
    content: '●';
    font-size: 2rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Títulos de secciones con iconos profesionales */
.mission-title::before {
    content: '●';
    color: #19378b;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

.values-title::before {
    content: '◆';
    color: #19378b;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.system-title::before {
    content: '▣';
    color: #19378b;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.emergency-title::before {
    content: '⚕';
    color: #e74c3c;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.specialties-title::before {
    content: '◇';
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.diagnostic-title::before {
    content: '◈';
    color: #9b59b6;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.recruitment-title::before {
    content: '▲';
    color: #000000;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.benefits-title::before {
    content: '★';
    color: #f39c12;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.news-title::before {
    content: '▣';
    color: #19378b;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2em;
}

.announcement-title::before {
    content: '⚡';
    color: #e67e22;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

/* Botones con iconos profesionales */
.btn-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    position: relative;
    top: 2px;
}

.search-icon::before {
    content: '◉';
    font-size: 14px;
    color: inherit;
    font-weight: bold;
}

.email-icon::before {
    content: '✉';
    font-size: 14px;
    color: inherit;
}

/* Mejoras en los botones principales */
.btn-search {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-email {
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Corrección de problemas de superposición en los puntos de lista */
.info-box ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.info-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #2c3e50;
}

.info-box ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: #19378b;
    font-weight: bold;
    font-size: 1.1em;
}

/* Títulos de las cajas de información más profesionales */
.info-box h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(25, 55, 139, 0.1);
    display: flex;
    align-items: center;
}

/* Espaciado mejorado para evitar superposiciones */
.tab-section {
    padding: 30px 0;
    line-height: 1.7;
}

.tab-section h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.info-box {
    margin-bottom: 25px;
    padding: 25px;
}

/* Responsive para iconos */
@media (max-width: 768px) {
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .emergency-icon::before {
        font-size: 1.8rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .professional-icon::before,
    .tech-icon::before {
        font-size: 1.5rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .info-box h4 {
        font-size: 1rem;
    }
    
    .info-box ul li {
        padding-left: 20px;
        font-size: 0.9rem;
    }
}

/* ====================================
   ESTILOS PARA IMPRESIÓN
   Copia exacta del estilo de credenciales
   ==================================== */

@media print {
    /* Ocultar elementos innecesarios en impresión */
    .top-header,
    .main-header,
    .floating-buttons,
    .authorization-btn,
    .credencial-actions,
    .modal-close-btn,
    body::before,
    body::after {
        display: none !important;
    }
    
    /* Configuración general de impresión */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    /* Mostrar overlay en impresión */
    .credencial-overlay {
        position: static !important;
        display: block !important;
        background: transparent !important;
        backdrop-filter: none !important;
        z-index: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Modal en impresión */
    .credencial-modal {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Container de credencial para impresión */
    .credencial-container {
        background: white !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 20px !important;
        max-width: none !important;
        width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Header de credencial */
    .credencial-header {
        margin-bottom: 20px !important;
        border-bottom: 2px solid #000000 !important;
        padding-bottom: 15px !important;
        text-align: center !important;
    }
    
    .credencial-logo {
        height: 60px !important;
        margin-bottom: 10px !important;
    }
    
    .credencial-header h2 {
        color: #000000 !important;
        font-size: 18pt !important;
        margin: 10px 0 5px 0 !important;
    }
    
    .credencial-header h3 {
        color: black !important;
        font-size: 14pt !important;
        margin: 0 0 15px 0 !important;
    }
    
    /* Container de tarjetas para impresión - ORDEN CORRECTO */
    .tarjetas-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 30px !important;
        margin: 20px 0 !important;
        flex-wrap: nowrap !important;
        page-break-inside: avoid;
        order: 1 !important;
    }
    
    /* Asegurar orden específico de tarjetas */
    .tarjeta-frente {
        order: 1 !important;
        flex: 0 0 auto !important;
    }
    
    .tarjeta-reverso {
        order: 2 !important;
        flex: 0 0 auto !important;
    }
    
    /* Tarjetas en impresión - TAMAÑO EXACTO IGUAL A PANTALLA */
    .tarjeta {
        width: 400px !important;
        height: 250px !important;
        border-radius: 15px !important;
        position: relative !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        transform: rotateY(5deg) !important;
        transition: var(--transition) !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
        margin-bottom: 20px !important;
        flex-shrink: 0 !important;
        border: 2px solid #ccc !important;
    }
    
    /* Tarjeta frontal en impresión - EXACTAMENTE IGUAL A PANTALLA */
    .tarjeta-frente {
        width: 400px !important;
        height: 250px !important;
        background-image: url('../images/tarjeta_1_prueba2.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        position: relative !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Tarjeta reverso en impresión - EXACTAMENTE IGUAL A PANTALLA */
    .tarjeta-reverso {
        width: 400px !important;
        height: 250px !important;
        background-image: url('../images/fondo-atras-nuevo.png') !important;
        background-size: 105% !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        position: relative !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Datos de la tarjeta - POSICIÓN EXACTA IGUAL A PANTALLA */
    .tarjeta-datos {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 2 !important;
    }
    
    /* Valores específicos en tarjeta frontal - POSICIONES OPTIMIZADAS PARA IMPRESIÓN */
    .valor-nombre {
        position: absolute !important;
        left: 22px !important;
        top: 98px !important;
        font-size: 13px !important;
        font-weight: bold !important;
        color: #000 !important;
        text-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 350px !important;
        text-align: left !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
        z-index: 2 !important;
    }
    
    .valor-afiliado {
        position: absolute !important;
        left: 22px !important;
        top: 137px !important;
        font-size: 13px !important;
        font-weight: bold !important;
        color: #000 !important;
        text-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 150px !important;
        text-align: left !important;
        z-index: 2 !important;
    }
    
    .valor-vigencia {
        position: absolute !important;
        left: 22px !important;
        top: 170px !important;
        font-size: 10px !important;
        font-weight: bold !important;
        text-align: left !important;
        width: 100px !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        z-index: 2 !important;
    }
    
    /* Fecha de vencimiento separada - POSICIÓN OPTIMIZADA PARA IMPRESIÓN */
    /* Valor de VIGENCIA (Estado) - a la derecha de los dos puntos de "VIGENCIA:" */
    .valor-vigencia {
        position: absolute;
        left: 20px;
        top: 150px;
        font-size: 11px; /* Reducir tamaño de fuente */
        font-weight: bold;
        text-align: left;
        width: 100px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    /* Estilos para los diferentes estados de vigencia - EXACTOS DE PANTALLA */
    .estado-activo {
        color: #000 !important;
        background: #ffffff !important;
        border: 1px solid #0dc02e !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        text-shadow: none !important;
        font-weight: bold !important;
        display: inline-block !important;
        text-align: left !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
    }

    .estado-inactivo {
        background: #ffffff !important;
        border: 1px solid #b50505 !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        text-shadow: none !important;
        font-weight: bold !important;
        display: inline-block !important;
        text-align: left !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
    }

    .estado-suspendido {
        background: #ffffff !important;
        border: 1px solid #ed0606 !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        text-shadow: none !important;
        font-weight: bold !important;
        display: inline-block !important;
        text-align: left !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
    }

    .estado-vencido {
        background: #ffffff !important;
        border: 1px solid #ec0707 !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        text-shadow: none !important;
        font-weight: bold !important;
        display: inline-block !important;
        text-align: left !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
    }

    .estado-alta {
        color: #2e7d32 !important;
        background: #e8f5e8 !important;
        border: 1px solid #4caf50 !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        font-weight: bold !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
    }

    .estado-baja {
        color: #c62828 !important;
        background: #ffebee !important;
        border: 1px solid #f44336 !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        font-weight: bold !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
    }
    
    /* Body de tarjeta reverso - POSICIÓN OPTIMIZADA PARA IMPRESIÓN */
    .tarjeta-body {
        position: absolute !important;
        top: 82px !important;
        left: 22px !important;
        right: 22px !important;
        bottom: 22px !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding: 8px 18px 12px 3px !important;
        background: transparent !important;
    }
    
    /* Campos en tarjeta reverso - POSICIÓN OPTIMIZADA PARA IMPRESIÓN */
    .campo {
        top: 102px !important;
        left: 0px !important;
        margin-bottom: 0px !important;
        font-size: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin-left: 0px !important;
    }
    
    .campo strong {
        font-size: 9px !important;
        font-weight: bold !important;
        color: #000 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
        flex-shrink: 0 !important;
        text-align: left !important;
    }
    
    .campo span {
        font-size: 10px !important;
        font-weight: bold !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        color: #000 !important;
        text-align: left !important;
        margin-left: 4px !important;
        margin-top: 1px !important;
    }
    
    /* Contacto de emergencia - OPTIMIZADO PARA IMPRESIÓN */
    .contacto-emergencia {
        margin-top: 6px !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.4) !important;
        flex-direction: row !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }
    
    .contacto-emergencia span {
        margin-top: 0px !important;
        margin-left: 0px !important;
        text-align: left !important;
        font-size: 9px !important;
    }
    
    .phone-emergency {
        color: #d32f2f !important;
        font-weight: bold !important;
        font-size: 9px !important;
    }
    
    /* Fecha de consulta - OPTIMIZADA PARA IMPRESIÓN */
    .fecha-consulta {
        margin-top: 3px !important;
        font-size: 9px !important;
        flex-direction: row !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }
    
    .fecha-consulta strong {
        font-size: 8px !important;
        color: #666 !important;
        min-width: 65px !important;
        flex-shrink: 0 !important;
    }
    
    .fecha-consulta span {
        font-size: 9px !important;
        color: #333 !important;
        flex: 1 !important;
    }
    
    /* QR Code en impresión - ESTILO EXACTO DE PANTALLA */
    .qr-code {
        text-align: center !important;
        margin-top: 15px !important;
    }
    
    .qr-box {
        width: 70px !important;
        height: 70px !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: var(--border-radius) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        background: var(--glass-bg) !important;
        backdrop-filter: var(--glass-blur) !important;
        -webkit-backdrop-filter: var(--glass-blur) !important;
        box-shadow: var(--shadow-light) !important;
        transition: var(--transition) !important;
    }
    
    .qr-box span {
        font-weight: 900 !important;
        color: var(--primary-color) !important;
        font-size: 1rem !important;
        text-shadow: 0 1px 2px rgba(0, 229, 145, 0.1) !important;
    }
    
    .qr-box small {
        font-size: 0.65rem !important;
        color: var(--text-color) !important;
        opacity: 0.85 !important;
        margin-top: 2px !important;
        font-weight: 500 !important;
    }
    
    /* Footer de tarjeta - ESTILO EXACTO DE PANTALLA */
    .tarjeta-footer {
        text-align: center !important;
        margin-top: 8px !important;
        z-index: 2 !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .tarjeta-footer small {
        font-size: 0.75rem !important;
        opacity: 0.8 !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        color: #000 !important;
    }
    
    /* Información adicional en impresión */
    .credencial-info {
        margin-top: 20px !important;
        padding: 15px !important;
        background: #f5f5f5 !important;
        border-radius: 8px !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .credencial-info p {
        margin: 0 !important;
        color: #000 !important;
        line-height: 1.4 !important;
        font-size: 10pt !important;
    }
    
    /* ===== CONFIGURACIÓN FINAL DE IMPRESIÓN =====
       Los estilos anteriores copian EXACTAMENTE el diseño visual
       de las credenciales que se muestran en pantalla para
       garantizar que la impresión sea idéntica.
       ============================================= */
    
    /* Configuración de página - OPTIMIZADA PARA CREDENCIALES */
    @page {
        margin: 1cm !important;
        size: A4 landscape !important; /* Landscape para mejor aprovechamiento del espacio */
    }
    
    /* Forzar colores e imágenes de fondo en impresión */
    *,
    *::before,
    *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Configuración específica para las tarjetas y sus imágenes */
    .tarjeta-frente,
    .tarjeta-reverso,
    .tarjeta-frente::before,
    .tarjeta-reverso::before {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Efectos visuales de las tarjetas en impresión */
    .tarjeta::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, transparent 0%, rgba(0, 229, 145, 0.1) 50%, transparent 100%) !important;
        pointer-events: none !important;
    }
    
    .tarjeta-reverso::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(45deg, transparent 48%, rgba(0, 229, 145, 0.05) 49%, rgba(0, 229, 145, 0.05) 51%, transparent 52%) !important;
        pointer-events: none !important;
    }
    
    /* Evitar saltos de página dentro de elementos importantes */
    .tarjeta,
    .credencial-header,
    .credencial-info {
        page-break-inside: avoid !important;
    }
    
    /* Asegurar que el contenedor de tarjetas no se rompa */
    .tarjetas-container {
        page-break-inside: avoid !important;
    }
}
.credencial-actions{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.credencial-actions button {
    padding: 20px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.credencial-actions .btn-print{
    background-color: rgb(40, 167, 69);
    color: white;
}
.credencial-actions .btn-print:hover{
    background-color: rgb(30, 137, 59);
}
.credencial-actions .btn-new-search{
    background-color: rgb(0, 123, 255);
    color: white;
}
.credencial-actions .btn-new-search:hover{
    background-color: rgb(0, 103, 215);
}
.main-nav .nav-item{
    background-color: rgb(0, 123, 255);
    color: white;
    padding: 10px 20px;
}
.main-nav .nav-item:hover{
    background-color: rgb(0, 103, 215);
    border-color: #222;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-content {
    background: #fff;
    padding: 2em 2.5em;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    max-width: 90vw;
    min-width: 320px;
    text-align: center;
}
.btn-retry {
    margin-top: 1.5em;
    padding: 0.7em 2em;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-retry:hover {
    background: #b71c1c;
}

/* ===== LOGO HEADER STYLES ===== */
.web-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, #0068ff 0%, #0068ff 100%);
    color: white;
    padding: 8px 15px;
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 104, 255, 0.3);
    overflow: hidden;
    margin-bottom: 20px;
}

.web-header::before {
    display: none;
}

.web-logo-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.web-logo-section:hover {
    transform: none;
    box-shadow: none;
}

.web-logo-mdm {
    height: 110px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 229, 145, 0.1));
    margin-right: 5px;
    flex-shrink: 0;
}

.web-logo-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
    margin-right: 5px;
    width: 100%;
}

.web-logo-texto-line1 {
    color: white;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 2px;
}

.web-logo-texto-line2 {
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
    text-align: left;
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 55px;
}

.web-logo-texto-line2 .linea {
    color: white;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 55px;
    margin-right: 8px;
}

/* Estilos para el CAPTCHA */
.credencial-overlay {
    display: none !important; /* Ocultar credencial hasta verificar CAPTCHA */
}

/* Mostrar credencial solo cuando se active */
.credencial-overlay.show {
    display: flex !important;
}

/* Mejoras para los botones de la credencial */
.btn-new-search {
    background: #0068ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-new-search:hover {
    background: #0056d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}

.btn-print {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-print:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA MODO IMPRESIÓN
   ============================================ */

/* Estilos que se aplican cuando se está preparando para imprimir */
body.printing {
    background: white !important;
    overflow: visible !important;
}

.credencial-overlay.printing {
    position: static !important;
    display: block !important;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

.credencial-modal.printing {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    backdrop-filter: none !important;
}

.credencial-container.printing {
    background: white !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 20px !important;
    max-width: none !important;
    width: 100% !important;
}

/* Asegurar orden correcto en modo printing */
.printing .tarjetas-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 30px !important;
    margin: 20px 0 !important;
    flex-wrap: nowrap !important;
}

.printing .tarjeta-frente {
    order: 1 !important;
}

.printing .tarjeta-reverso {
    order: 2 !important;
}

.printing .credencial-actions {
    display: none !important;
}

.printing .modal-close-btn {
    display: none !important;
}

/* Estilo adicional para asegurar print color adjust */
.printing * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-print:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Animación de entrada para la credencial */
@keyframes credentialSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.credencial-modal.show {
    animation: credentialSlideIn 0.4s ease-out;
}

/* Responsive para el CAPTCHA */
@media (max-width: 768px) {
    .captcha-modal {
        margin: 10px;
        padding: 20px;
    }
    
    .captcha-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .captcha-image {
        margin-bottom: 10px;
    }
}

.ind-logo-texto-line2{
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 20px;
}

.ind-logo-texto-line2 .linea {
    color: white;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 20px;
    margin-right: 8px;
}
.ext-logo-texto-line2{
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 18px;
}

.ext-logo-texto-line2 .linea {
    color: white;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 18px;
    margin-right: 8px;
}