/* --- Layout General --- */
.profile-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* --- Alertas --- */
.profile-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.profile-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* --- Tarjetas --- */
.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    padding: 30px;
}

/* --- Sidebar & Avatar --- */
.avatar-card {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-avatar {
    border-radius: 50%;
    border: 5px solid #f8f9fa;
    transition: transform 0.3s ease;
}

.edit-avatar-hint {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #003366;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid #fff;
}

.member-since {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

/* --- Formulario --- */
.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #003366;
    outline: none;
}

/* --- Botones --- */
.profile-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-save {
    background: var(--color-tercary);
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 15px 0;
    border-radius: var(--border-radius);
}

.btn-save:hover { background: #219150; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Nuevos estilos para formulario */
.profile-alert.error { 
    background: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}

.form-group input[type="file"] {
    padding: 8px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    cursor: pointer;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.2rem;
    color: #003366;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Estilo para los placeholders */
::placeholder {
    color: #bbb;
    font-size: 0.85rem;
}



    
    
    
    body.dark-mode .profile-actions-vertical a,
    body.dark-mode .form-section h3,
    body.dark-mode .form-group label {
        color: white;
    }
    
    body.dark-mode .profile-card {
        background: #404040 !important;
        border: none;
    }
    
    
    
    /* --- Widget de Membresía --- */
.membership-card {
    margin-top: 20px;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%) !important;
    color: white !important;
    text-align: center;
    border: none !important;
}

.membership-title {
    margin: 0;
    font-size: 1.1rem;
    color: #ffcc00; /* Color dorado para resaltar */
}

.days-counter {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1;
}

.expiry-date {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.btn-renew {
    display: inline-block;
    background: #ffcc00;
    color: #001a33 !important;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.btn-renew:hover {
    transform: scale(1.05);
}

/* Ajuste para modo oscuro */
body.dark-mode .membership-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%) !important;
}