:root {
    --primary: #4F46E5;
    --primary-dark: #4338ca;
    --secondary: #10B981;
    --bg-dark: #111827;
    --bg-card: rgba(31, 41, 55, 0.85);
    --text-light: #F3F4F6;
    --text-gray: #9CA3AF;
    --danger: #EF4444;
    /* Landing page vars */
    --primary-light: #818cf8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(17, 24, 39, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    background-image: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('images/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Scoped Body Styles */
body.dashboard-body {
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

body.landing-page {
    display: block;
}

/* Dashboard Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    background-color: var(--bg-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #374151;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    overflow-y: auto;
}

/* Dashboard Logo */
.sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.sidebar .logo img {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Landing Page Logo */
.landing-page .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.landing-page .logo:hover {
    transform: scale(1.02);
}

.landing-page .logo img {
    height: 45px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Dashboard Nav Items */
.nav-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--primary);
    color: white;
}

.logout {
    margin-top: auto;
    color: var(--danger);
}

.logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    margin-left: 260px;
    width: auto;
}

/* Dashboard Header */
.dashboard-body header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card,
.stat-card,
.form-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #374151;
}

.card h3 {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card .value,
.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.table-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #374151;
}

.table-header,
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #374151;
}

th {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-paid {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.status-late {
    background-color: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.status-overdue {
    background-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    border: 1px solid #dc2626;
    font-weight: 600;
    animation: pulse-overdue 2s ease-in-out infinite;
}

@keyframes pulse-overdue {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #374151;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
}

.modal-content h2,
.modal-header h3 {
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-gray);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid #374151;
    color: white;
    border-radius: 6px;
}

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

.btn-cancel {
    border: 1px solid #374151;
}

.child-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Client specific styles */
.payment-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-info h4 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.payment-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.child-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #374151;
}

.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #374151;
}

.child-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item label {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.detail-item span {
    color: var(--text-light);
    font-weight: 500;
}

.contract-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* =========================================
   LANDING PAGE STYLES
   ========================================= */

/* Header & Nav (Landing Page) */
.landing-page header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    display: block;
}

.landing-page nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 540px;
    font-weight: 300;
    background: rgba(17, 24, 39, 0.6);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: float 8s ease-in-out infinite;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-card h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(31, 41, 55, 0.95);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    margin: 100px 40px;
    border-radius: 30px;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(17, 24, 39, 0.8) 100%);
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), transparent);
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: rgba(15, 19, 31, 0.95);
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

width: 100%;
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 80px;
align-items: center;
position: relative;
z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 540px;
    font-weight: 300;
    background: rgba(17, 24, 39, 0.6);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: float 8s ease-in-out infinite;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-card h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(31, 41, 55, 0.95);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    margin: 100px 40px;
    border-radius: 30px;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(17, 24, 39, 0.8) 100%);
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), transparent);
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: rgba(15, 19, 31, 0.95);
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }


/* =========================================
   PROFILE MODAL - Google Style
   ========================================= */

#modalPerfil .modal-content {
    max-width: 480px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    max-height: 70vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 12px 16px;
    text-align: center;
    flex-shrink: 0 !important;
}

.profile-avatar-large {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 0 auto 6px;
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
}

.profile-body {
    padding: 10px 16px;
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.profile-section {
    margin-bottom: 10px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-section-title::before {
    content: '';
    width: 2px;
    height: 9px;
    background: var(--primary);
    border-radius: 2px;
}

#modalPerfil .form-group {
    margin-bottom: 8px;
}

#modalPerfil .form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 3px;
}

#modalPerfil .form-group input {
    padding: 7px;
    border-radius: 6px;
    border: 1.5px solid #374151;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
    font-size: 0.85rem;
}

#modalPerfil .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.profile-actions {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid #374151;
    display: flex !important;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0 !important;
}

#modalPerfil .btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.85rem;
}

#modalPerfil .btn-cancel {
    background: transparent;
    color: var(--text-gray);
    border: 1.5px solid #374151;
}

#modalPerfil .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-gray);
}

#modalPerfil .btn-primary {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

#modalPerfil .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}


/* =========================================
   PROFILE MODAL - Google Style
   ========================================= */

#modalPerfil .modal-content {
    max-width: 480px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    max-height: 70vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 12px 16px;
    text-align: center;
    flex-shrink: 0 !important;
}

.profile-avatar-large {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 0 auto 6px;
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
}

.profile-body {
    padding: 10px 16px;
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.profile-section {
    margin-bottom: 10px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-section-title::before {
    content: '';
    width: 2px;
    height: 9px;
    background: var(--primary);
    border-radius: 2px;
}

#modalPerfil .form-group {
    margin-bottom: 8px;
}

#modalPerfil .form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 3px;
}

#modalPerfil .form-group input {
    padding: 7px;
    border-radius: 6px;
    border: 1.5px solid #374151;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
    font-size: 0.85rem;
}

#modalPerfil .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.profile-actions {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid #374151;
    display: flex !important;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0 !important;
}

#modalPerfil .btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.85rem;
}

#modalPerfil .btn-cancel {
    background: transparent;
    color: var(--text-gray);
    border: 1.5px solid #374151;
}

#modalPerfil .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-gray);
}

#modalPerfil .btn-primary {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

#modalPerfil .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}
