/* LOGIN CABECERA */
/* =============================================
   PANEL DE USUARIO LOGEADO - DISEÑO MEJORADO
   ============================================= */
/* Modal para recuperar contraseña */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, rgba(3, 131, 225, 0.95) 0%, rgba(2, 105, 184, 0.95) 100%);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.modal-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-body {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.modal-body p {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.contact-item i {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    width: 25px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.contact-link:hover {
    color: #ffd700;
    text-decoration: underline;
    transform: translateX(5px);
}

.modal-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    border-left: 3px solid #ffd700;
}

.modal-note i {
    color: #ffd700;
}

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

.modal-ok-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #0383e1;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-ok-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}
.user-panel-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.15);
    max-width: 600px;
    margin-left: auto;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-panel-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 16px 16px 0 0;
}

.user-panel-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.user-panel-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Sección de perfil (logo + nombre) */
.user-profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0; /* Para que el texto no desborde */
}

.user-avatar-enhanced {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    overflow: hidden;
    position: relative;
}

.user-logo-enhanced {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.user-logo-enhanced:hover {
    transform: scale(1.05);
}

.user-avatar-initials {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-info-enhanced {
    flex: 1;
    min-width: 0;
}

.user-name-primary {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email-secondary {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email-secondary i {
    color: #667eea;
    font-size: 12px;
}

.user-role-display {
    display: inline-block;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.role-badge.admin {
    background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
    color: white;
}

.role-badge.user {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.role-badge i {
    font-size: 11px;
}

/* Sección de botones de acción */
.user-actions-enhanced {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.action-btn i {
    font-size: 20px;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Botones específicos */
.admin-btn {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    border-color: #ed8936;
}

.profile-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.profile-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    border-color: #4299e1;
}

.logout-btn {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    border-color: #f56565;
}

/* Línea divisora */
.user-panel-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 15px 0;
}

/* Información adicional */
.user-extra-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.extra-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.3s ease;
}

.extra-info-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.extra-info-item i {
    color: #667eea;
    font-size: 14px;
}

/* =============================================
   RESPONSIVE DESIGN - PANEL DE USUARIO
   ============================================= */

@media (max-width: 768px) {
    .user-panel-enhanced {
        max-width: 100%;
        margin: 10px 0;
        padding: 15px;
    }
    
    .user-panel-main {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .user-profile-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-avatar-enhanced {
        width: 80px;
        height: 80px;
    }
    
    .user-avatar-initials {
        font-size: 32px;
    }
    
    .user-name-primary {
        font-size: 20px;
    }
    
    .user-actions-enhanced {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 100px;
        max-width: 120px;
    }
    
    .user-extra-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .extra-info-item {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .user-panel-enhanced {
        padding: 12px;
    }
    
    .user-avatar-enhanced {
        width: 65px;
        height: 65px;
    }
    
    .user-avatar-initials {
        font-size: 26px;
    }
    
    .user-name-primary {
        font-size: 18px;
    }
    
    .user-email-secondary {
        font-size: 13px;
    }
    
    .action-btn {
        min-width: 85px;
        padding: 10px 12px;
    }
    
    .action-btn i {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .action-btn span {
        font-size: 11px;
    }
}

/* =============================================
   ANIMACIONES Y EFECTOS ESPECIALES
   ============================================= */

@keyframes slideInUserPanel {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-panel-enhanced {
    animation: slideInUserPanel 0.5s ease-out;
}

/* Efecto de brillo en hover para botones */
.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.8s;
}

.action-btn:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* Efecto de pulso para el avatar */
@keyframes pulseAvatar {
    0% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    }
    50% {
        box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
    }
    100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    }
}

.user-avatar-enhanced {
    animation: pulseAvatar 3s infinite ease-in-out;
}

/* Indicador de sesión activa */
.user-extra-info .extra-info-item:last-child {
    position: relative;
    padding-left: 30px;
}

.user-extra-info .extra-info-item:last-child::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(72, 187, 120, 0);
    }
}

/* Estilos adicionales para el sistema de usuarios */

/* Estilos para el header cuando hay usuario logueado */
.user-info-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.user-avatar-modern {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.user-welcome {
    font-size: 14px;
    color: #4a5568;
}

.user-welcome strong {
    color: #2d3748;
    font-size: 16px;
}

.user-role {
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-user-action {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-user-action:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-user-action.admin {
    background: #ed8936;
}

.btn-user-action.admin:hover {
    background: #dd6b20;
}

/* Estilos para formularios de login */
.login-modern-container {
    position: relative;
}

.login-modern-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h3 {
    color: #2d3748;
    margin: 0;
    font-size: 24px;
}

.login-header p {
    color: #718096;
    margin-top: 5px;
    font-size: 14px;
}

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

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control-modern {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group-modern.focused .input-icon {
    color: #667eea;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #667eea;
}

.btn-login-modern {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-login-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message-modern {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message-modern i {
    margin-top: 2px;
    font-size: 18px;
}

.error-message-modern div {
    flex: 1;
}

.error-message-modern strong {
    display: block;
    margin-bottom: 5px;
}

.login-links {
    margin-top: 20px;
    text-align: center;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.login-links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .user-info-modern {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .user-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .login-modern-box {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
}

.login-box, .user-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-box input {
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    border: none;
    font-size: 0.9rem;
}

.login-box button,
.user-box button {
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    border: none;
    background: #ffffff;
    color: #3F9E02;
    font-weight: bold;
    cursor: pointer;
}

.login-box button:hover,
.user-box button:hover {
    background: #eaeaea;
}

.user-box {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box, .user-box {
        flex-direction: column;
        width: 100%;
    }

    .login-box input,
    .login-box button {
        width: 100%;
    }
}

	
	
        :root {
            --primary: #1a3a5f;
         
            --accent: #f7931e;
            --light: #f8f9fa;
            --dark: #2E312F;
            --gray: #6c757d;
            --white: #ffffff;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: var(--light);
            overflow-x: hidden;
        }

        .header {
	color: #FFFFFF;
	padding: 1.5rem 1rem;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
	background-color: #0181d5;
	background-position: 135;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
            background-size: cover;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
            position: relative;
            z-index: 1;
        }

        .logo-container {
            flex-shrink: 0;
        }

        .logo {
            height: 70px;
            width: auto;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--white);
            padding: 8px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .logo img {
            height: 100%;
            width: auto;
            object-fit: contain;
        }

        .header-text {
            flex-grow: 1;
            text-align: center;
        }

        .header h1 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	font-weight: 700;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	background-color: #FFFFFF;
	background-position: 45;
        }

        .header p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
            font-weight: 300;
        }

        .lovol-badge {
	color: var(--white);
	padding: 0.7rem 1.5rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1rem;
	display: inline-block;
	margin-top: 1rem;
	box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
	transition: var(--transition);
	background-color: #FFFFFF;
	background-position: 45;
        }

        .lovol-badge:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 3rem 1rem;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .section-title h2 {
            font-size: 2.2rem;
            color: var(--primary);
            display: inline-block;
            margin-bottom: 1rem;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, var(--secondary), var(--accent));
            border-radius: 2px;
        }

        .map-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .region-card {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            border-top: 5px solid var(--secondary);
        }

        .region-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        .region-header {
	color: var(--white);
	padding: 1.5rem;
	text-align: center;
	background-color: #409E03;
	background-position: 135;
        }

        .region-header h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .region-body {
            padding: 1.5rem;
        }

        .map-link {
            display: flex;
            align-items: center;
            padding: 1rem;
            margin-bottom: 0.8rem;
            background: var(--light);
            border-radius: 10px;
            transition: var(--transition);
            text-decoration: none;
            color: var(--dark);
        }

        .map-link:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .map-link i {
            margin-right: 1rem;
            font-size: 1.2rem;
            color: var(--secondary);
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 3rem 0;
        }

        .stat-card {
            background: var(--white);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-top: 5px solid var(--secondary);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, var(--secondary), var(--accent));
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary);
            display: block;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: var(--gray);
            font-size: 1rem;
            font-weight: 500;
        }

        .info-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .info-card {
            background: var(--white);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .info-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(to bottom, var(--secondary), var(--accent));
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .info-card h3 {
            color: var(--primary);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .info-card h3 i {
            color: var(--secondary);
        }

        .info-card ul {
            list-style: none;
        }

        .info-card li {
            padding: 0.8rem 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }

        .info-card li:last-child {
            border-bottom: none;
        }

        .info-card li i {
            color: var(--accent);
            margin-right: 0.8rem;
            font-size: 0.9rem;
        }

        .footer {
            background: var(--dark);
            color: var(--white);
            text-align: center;
            padding: 3rem 1rem;
            margin-top: 3rem;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, var(--secondary), var(--accent));
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer p {
            opacity: 0.8;
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--secondary);
            transform: translateY(-3px);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            animation: fadeInUp 0.8s ease forwards;
        }

        .delay-1 {
            animation-delay: 0.2s;
        }

        .delay-2 {
            animation-delay: 0.4s;
        }

        .delay-3 {
            animation-delay: 0.6s;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 1.5rem;
            }

            .header h1 {
                font-size: 2rem;
            }
            
            .header p {
                font-size: 1.1rem;
            }
            
            .container {
                padding: 2rem 1rem;
            }
            
            .info-section, .stats, .map-options {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .logo {
                height: 60px;
            }

            .section-title h2 {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 1.2rem 1rem;
            }
            
            .header h1 {
                font-size: 1.7rem;
            }
            
            .info-card, .stat-card {
                padding: 1.5rem;
            }

            .logo {
                height: 50px;
            }

            .section-title h2 {
                font-size: 1.6rem;
            }
        }
    .Estilo1 {color: #CF4036}
    .Estilo2 {color: #FFFFFF}
/* ===== DISEÑO MODERNO DEL LOGIN ===== */
        .login-modern-container {
            position: relative;
            min-width: 320px;
            max-width: 400px;
            margin-left: 2rem;
        }

        .login-modern-box {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 1rem;
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.15),
                0 2px 10px rgba(255, 107, 53, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .login-modern-box:hover {
            transform: translateY(-5px);
            box-shadow: 
                0 15px 50px rgba(0, 0, 0, 0.2),
                0 5px 15px rgba(255, 107, 53, 0.15);
        }

        .login-modern-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
            border-radius: 20px 20px 0 0;
        }

        .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .login-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary), #0d2b4d);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            box-shadow: 0 8px 20px rgba(26, 58, 95, 0.25);
            border: 3px solid white;
        }

        .login-icon i {
            font-size: 1.8rem;
            color: white;
        }

        .login-header h3 {
            color: var(--primary);
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
        }

        .login-header p {
            color: var(--gray);
            font-size: 0.95rem;
            opacity: 0.8;
        }

        /* Campos de formulario modernos */
        .form-group-modern {
            position: relative;
            margin-bottom: 1.8rem;
        }

        .input-with-icon {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            font-size: 1.1rem;
            z-index: 2;
            transition: all 0.3s ease;
        }

        .form-control-modern {
            width: 100%;
            padding: 1rem 1rem 1rem 3.5rem;
            background: rgba(248, 249, 250, 0.8);
            border: 2px solid #e9ecef;
            border-radius: 12px;
            font-size: 1rem;
            color: var(--dark);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
        }

        .form-control-modern:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 
                0 0 0 4px rgba(26, 58, 95, 0.1),
                inset 0 2px 4px rgba(0, 0, 0, 0.04);
        }

        .form-control-modern::placeholder {
            color: #adb5bd;
            font-weight: 400;
        }

        /* Efectos al enfocar */
        .form-group-modern:focus-within .input-icon {
            color: var(--secondary);
            transform: translateY(-50%) scale(1.1);
        }

        /* Botón moderno */
        .btn-login-modern {
            width: 100%;
            padding: 1.1rem;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.5px;
            text-transform: uppercase;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn-login-modern:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
            background: linear-gradient(135deg, #ff5a1f, #f68a1e);
        }

        .btn-login-modern:active {
            transform: translateY(0);
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
        }

        .btn-login-modern::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.7s ease;
        }

        .btn-login-modern:hover::after {
            left: 100%;
        }

        /* Mostrar/ocultar contraseña */
        .password-toggle {
            position: absolute;
            right: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            font-size: 1.1rem;
            padding: 0.5rem;
            transition: all 0.3s ease;
            z-index: 3;
        }

        .password-toggle:hover {
            color: var(--primary);
        }

        /* Mensaje de error mejorado */
        .error-message-modern {
            background: linear-gradient(135deg, #fff5f5, #ffe3e3);
            border-left: 4px solid #ff6b6b;
            padding: 1rem 1.5rem;
            border-radius: 10px;
            margin-top: 1.5rem;
            color: #721c24;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            animation: slideIn 0.3s ease-out;
            box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
        }

        .error-message-modern i {
            color: #dc3545;
            font-size: 1.2rem;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Enlaces adicionales */
        .login-links {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e9ecef;
        }

        .login-links a {
            color: var(--primary);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            opacity: 0.8;
        }

        .login-links a:hover {
            color: var(--secondary);
            opacity: 1;
        }

        /* Efecto de carga en el botón */
        .btn-loading {
            position: relative;
            color: transparent !important;
        }

        .btn-loading::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Información del usuario logueado */
        .user-info-modern {
           /* background: linear-gradient(135deg, rgba(26, 58, 95, 0.95), rgba(13, 43, 77, 0.95));*/
	   background: blue;
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 1.5rem;
            color: white;
            min-width: 280px;
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-left: 2rem;
            position: relative;
            overflow: hidden;
        }

        .user-info-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
        }

        .user-avatar-modern {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            border: 3px solid rgba(255, 255, 255, 0.2);
        }

        .user-welcome {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .user-role {
            display: inline-block;
            background: rgba(255, 255, 255, 0.15);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
            backdrop-filter: blur(5px);
        }

        .user-actions {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.5rem;
        }

        .btn-user-action {
            flex: 1;
            padding: 0.7rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            color: white;
            text-decoration: none;
            text-align: center;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .btn-user-action:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .btn-user-action.admin {
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            border: none;
        }

        .btn-user-action.admin:hover {
            background: linear-gradient(135deg, #ff5a1f, #f68a1e);
        }

        /* Responsive */
        @media (max-width: 992px) {
            .login-modern-container,
            .user-info-modern {
                width: 100%;
                max-width: 400px;
                margin: 1.5rem auto 0;
                min-width: auto;
            }
            
            .header-content {
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .login-modern-box {
                padding: 2rem 1.5rem;
            }
            
            .user-info-modern {
                padding: 1.2rem;
            }
            
            .user-actions {
                flex-direction: column;
            }
        }

        /* Animación suave para todo el formulario */
        .login-modern-box {
            animation: fadeInUp 0.6s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
		
		/* admin.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 100vh;
    padding: 20px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-header h1 {
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-nav {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.admin-nav a {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-nav a:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* ... y todos los demás estilos del admin.php ... */