/* ==========================================================================
   Colaboradores & Login Styling - Parlando Lingue
   ========================================================================== */

.role-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.role-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 340px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.role-card::before,
.role-card::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.role-card::before {
    background: #E3F2FD;
    top: -80px;
    right: -80px;
}

.role-card::after {
    background: #F3E5F5;
    bottom: -80px;
    left: -80px;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.role-card:hover::before {
    transform: scale(1.15);
}

.role-card:hover::after {
    transform: scale(1.15);
}

.role-icon {
    width: 80px;
    height: 80px;
    background-color: #f1f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.role-card:hover .role-icon {
    transform: scale(1.08);
}

.role-icon i {
    font-size: 35px;
    color: #2563EB;
}

.role-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.role-description {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.role-button {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.role-button:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
    color: white;
}

.colaboradores-header {
    text-align: center;
    margin-bottom: 20px;
}

.colaboradores-subtext {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #64748b;
}

.section-content {
    padding: 80px 0;
    background-image: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
    min-height: 80vh;
}

/* ==========================================================================
   Modales de Autenticación
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    width: 440px;
    max-width: 92%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Login standalone del portal administrativo (sin modal-overlay) */
.admin-login-card.modal-container,
.admin-login-page .modal-container {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.modal-container::before,
.modal-container::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.45;
    pointer-events: none;
}

.modal-container::before {
    background: #E3F2FD;
    top: -90px;
    right: -90px;
}

.modal-container::after {
    background: #F3E5F5;
    bottom: -90px;
    left: -90px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    z-index: 2;
    border: 1px solid #e2e8f0;
}

.modal-close:hover {
    color: #ef4444;
    background: #fee2e2;
    border-color: #fecaca;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.modal-badge-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    border: 1px solid #dbeafe;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-label i {
    color: #2563eb;
    font-size: 13px;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.password-input-wrap .form-input {
    padding-right: 46px;
}

.form-input:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.btn-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pw:hover {
    color: #2563eb;
    background: #eff6ff;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 22px;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.remember-label input[type="checkbox"] {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-pw-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-pw-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.login-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    filter: grayscale(20%);
}

.login-button .btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: btnSpin 0.7s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-container {
        padding: 30px 22px;
    }

    .modal-title {
        font-size: 21px;
    }
}