/* ============================================================
   ERE Custom Styles – Rediseño Página de Perfil (My Profile)
   Plugin: Essential Real Estate  |  v2.0.0
   Consistente con el diseño del formulario de propiedades
   ============================================================ */

/* ---------- Variables CSS (heredadas del formulario) ---------- */
:root {
    --erc-primary: #f97316;
    --erc-primary-dark: #ea580c;
    --erc-primary-light: #fed7aa;
    --erc-primary-ultra-light: #fff7ed;
    --erc-accent: #2563eb;
    --erc-accent-light: #dbeafe;
    --erc-bg: #f8fafc;
    --erc-surface: #ffffff;
    --erc-border: #e2e8f0;
    --erc-border-hover: #cbd5e1;
    --erc-text: #1e293b;
    --erc-text-muted: #64748b;
    --erc-text-light: #94a3b8;
    --erc-success: #22c55e;
    --erc-danger: #ef4444;
    --erc-warning: #f59e0b;
    --erc-radius: 14px;
    --erc-radius-sm: 10px;
    --erc-radius-xs: 6px;
    --erc-shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --erc-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --erc-shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --erc-shadow-lg: 0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
    --erc-transition: .25s cubic-bezier(.4,0,.2,1);
    --erc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===========================
   1. CONTENEDOR PRINCIPAL DEL PERFIL
   =========================== */
.ere-my-profile {
    font-family: var(--erc-font);
    color: var(--erc-text);
    max-width: 960px;
    margin: 0 auto;
}

/* ===========================
   2. CARDS — Rediseño completo
   =========================== */
.ere-my-profile .card,
.ere-my-profile .ere-card {
    background: var(--erc-surface) !important;
    border: 1px solid var(--erc-border) !important;
    border-radius: var(--erc-radius) !important;
    box-shadow: var(--erc-shadow-lg) !important;
    overflow: hidden;
    transition: box-shadow var(--erc-transition);
}

.ere-my-profile .card:hover {
    box-shadow: 0 12px 30px -8px rgba(0,0,0,.1), 0 8px 12px -6px rgba(0,0,0,.05) !important;
}

/* Card de cambio de contraseña — espaciado superior */
.ere-my-profile .ere-card-change-password {
    margin-top: 2rem !important;
}

/* ===========================
   3. CARD HEADER — Encabezados
   =========================== */
.ere-my-profile .card-header {
    background: linear-gradient(135deg, var(--erc-primary-ultra-light), #fff) !important;
    border-bottom: 2px solid var(--erc-border) !important;
    padding: 1.25rem 2rem !important;
    position: relative;
}

.ere-my-profile .card-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 2rem;
    width: 45px;
    height: 2px;
    background: var(--erc-primary);
    border-radius: 2px;
}

.ere-my-profile .card-title,
.ere-my-profile .card-header h5 {
    font-family: var(--erc-font) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--erc-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Iconos decorativos antes del título */
.ere-my-profile .ere-card-account-settings .card-title::before {
    content: "\f007";
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--erc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--erc-primary-ultra-light);
    border: 1px solid var(--erc-primary-light);
    border-radius: 8px;
    flex-shrink: 0;
}

.ere-my-profile .ere-card-change-password .card-title::before {
    content: "\f023";
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--erc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--erc-primary-ultra-light);
    border: 1px solid var(--erc-primary-light);
    border-radius: 8px;
    flex-shrink: 0;
}

/* ===========================
   4. CARD BODY — Contenido
   =========================== */
.ere-my-profile .card-body {
    padding: 2rem 2.5rem !important;
}

@media (max-width: 640px) {
    .ere-my-profile .card-body {
        padding: 1.5rem 1rem !important;
    }
}

/* ===========================
   5. AVATAR / FOTO DE PERFIL
   =========================== */
.ere-my-profile .ere-profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ere-my-profile .profile-thumb {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--erc-primary-light);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
    transition: all var(--erc-transition);
    background: var(--erc-bg);
}

.ere-my-profile .profile-thumb:hover {
    border-color: var(--erc-primary);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.25);
    transform: scale(1.03);
}

.ere-my-profile .profile-thumb img,
.ere-my-profile #profile-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block;
}

/* Controles de imagen */
.ere-my-profile .profile-img-controls {
    text-align: center;
    margin-top: 0.5rem;
}

/* Botón de seleccionar imagen de perfil */
.ere-my-profile #ere_select_profile_image,
.ere-my-profile #ere_profile_plupload_container button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.3rem !important;
    font-family: var(--erc-font) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--erc-primary) !important;
    background: var(--erc-primary-ultra-light) !important;
    border: 2px solid var(--erc-primary-light) !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all var(--erc-transition) !important;
    text-transform: none !important;
    letter-spacing: 0.01em;
    box-shadow: none !important;
}

.ere-my-profile #ere_select_profile_image:hover,
.ere-my-profile #ere_profile_plupload_container button:hover {
    background: var(--erc-primary) !important;
    color: #fff !important;
    border-color: var(--erc-primary) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
    transform: translateY(-1px);
}

/* ===========================
   6. FORM GROUPS — Campos
   =========================== */
.ere-my-profile .form-group {
    margin-bottom: 1.25rem;
}

/* Labels */
.ere-my-profile label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--erc-text);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.ere-my-profile label .required,
.ere-my-profile label span.text-danger {
    color: var(--erc-primary) !important;
}

/* ===========================
   7. INPUTS, TEXTAREAS
   =========================== */
.ere-my-profile input.form-control,
.ere-my-profile input[type="text"],
.ere-my-profile input[type="email"],
.ere-my-profile input[type="tel"],
.ere-my-profile input[type="url"],
.ere-my-profile input[type="number"],
.ere-my-profile input[type="password"],
.ere-my-profile textarea,
.ere-my-profile textarea.form-control {
    width: 100% !important;
    padding: 0.7rem 1rem !important;
    font-family: var(--erc-font) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: var(--erc-text) !important;
    background-color: var(--erc-bg) !important;
    border: 2px solid var(--erc-border) !important;
    border-radius: var(--erc-radius-sm) !important;
    transition: all var(--erc-transition) !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.ere-my-profile input.form-control:focus,
.ere-my-profile input[type="text"]:focus,
.ere-my-profile input[type="email"]:focus,
.ere-my-profile input[type="url"]:focus,
.ere-my-profile input[type="number"]:focus,
.ere-my-profile input[type="password"]:focus,
.ere-my-profile textarea:focus,
.ere-my-profile textarea.form-control:focus {
    border-color: var(--erc-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

.ere-my-profile textarea {
    min-height: 120px;
    resize: vertical;
}

/* Placeholder */
.ere-my-profile input::placeholder,
.ere-my-profile textarea::placeholder {
    color: var(--erc-text-light) !important;
    opacity: 1;
}

/* ===========================
   8. GRID — Filas de campos
   =========================== */
.ere-my-profile .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.ere-my-profile .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* ===========================
   9. SECCIÓN DE AGENTE (Jumbotron)
   =========================== */
.ere-my-profile .jumbotron,
.ere-my-profile .ere-account-agent {
    background: linear-gradient(135deg, var(--erc-primary-ultra-light), var(--erc-accent-light)) !important;
    border: 2px solid var(--erc-primary-light) !important;
    border-radius: var(--erc-radius) !important;
    padding: 1.75rem 2rem !important;
    margin-bottom: 1.5rem;
    box-shadow: var(--erc-shadow) !important;
    position: relative;
    overflow: hidden;
}

.ere-my-profile .jumbotron::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.ere-my-profile .jumbotron h4,
.ere-my-profile .ere-account-agent h4 {
    font-family: var(--erc-font) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--erc-text) !important;
    margin-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ere-my-profile .jumbotron h4::before {
    content: "\f2c2";
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--erc-primary);
}

.ere-my-profile .jumbotron p,
.ere-my-profile .ere-account-agent p {
    font-size: 0.88rem;
    color: var(--erc-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ere-my-profile .jumbotron .accent-color,
.ere-my-profile .ere-account-agent .accent-color {
    color: var(--erc-primary) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--erc-transition);
}

.ere-my-profile .jumbotron .accent-color:hover {
    color: var(--erc-primary-dark) !important;
    text-decoration: underline;
}

/* Botones de agente */
.ere-my-profile #ere_user_as_agent,
.ere-my-profile #ere_leave_agent {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem !important;
    font-family: var(--erc-font) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all var(--erc-transition) !important;
    text-transform: none !important;
    letter-spacing: 0.01em;
    border: 2px solid transparent !important;
}

.ere-my-profile #ere_user_as_agent {
    background: linear-gradient(135deg, var(--erc-primary), var(--erc-primary-dark)) !important;
    color: #fff !important;
    border-color: var(--erc-primary) !important;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25) !important;
}

.ere-my-profile #ere_user_as_agent:hover {
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.4) !important;
    transform: translateY(-2px);
}

.ere-my-profile #ere_leave_agent {
    background: var(--erc-surface) !important;
    color: var(--erc-danger) !important;
    border-color: var(--erc-danger) !important;
}

.ere-my-profile #ere_leave_agent:hover {
    background: var(--erc-danger) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-2px);
}

/* ===========================
   10. SECCIÓN SOCIAL & EXTRA FIELDS
   =========================== */
/* Separador visual entre secciones (About me -> Social) */
.ere-my-profile .ere-update-profile > .form-group + .row {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--erc-border);
}

/* Estilo para campos de redes sociales */
.ere-my-profile input[id*="_url"],
.ere-my-profile input[id="user_skype"],
.ere-my-profile input[id="user_fax_number"],
.ere-my-profile input[id="user_website_url"] {
    padding-left: 2.5rem !important;
    position: relative;
}

/* Iconos para campos de redes sociales (usando background-image SVG) */
.ere-my-profile .form-group:has(#user_facebook_url) {
    position: relative;
}
.ere-my-profile #user_facebook_url {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b' width='16' height='16'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.75rem center !important;
    background-size: 16px !important;
    padding-left: 2.5rem !important;
}

.ere-my-profile #user_twitter_url {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b' width='16' height='16'%3E%3Cpath d='M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.75rem center !important;
    background-size: 16px !important;
    padding-left: 2.5rem !important;
}

.ere-my-profile #user_linkedin_url {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b' width='16' height='16'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.75rem center !important;
    background-size: 16px !important;
    padding-left: 2.5rem !important;
}

.ere-my-profile #user_instagram_url {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' width='16' height='16'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.5' y2='6.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.75rem center !important;
    background-size: 16px !important;
    padding-left: 2.5rem !important;
}

.ere-my-profile #user_youtube_url {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b' width='16' height='16'%3E%3Cpath d='M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19.1c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.43zM9.75 15.02V8.48l5.75 3.27-5.75 3.27z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.75rem center !important;
    background-size: 16px !important;
    padding-left: 2.5rem !important;
}

.ere-my-profile #user_website_url {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' width='16' height='16'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.75rem center !important;
    background-size: 16px !important;
    padding-left: 2.5rem !important;
}

.ere-my-profile #user_skype {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b' width='16' height='16'%3E%3Cpath d='M12.069 18.874c-4.023 0-5.82-1.979-5.82-3.464 0-.765.561-1.296 1.333-1.296 1.723 0 1.273 2.477 4.487 2.477 1.641 0 2.55-.895 2.55-1.811 0-.551-.269-1.16-1.354-1.429l-3.576-.895c-2.88-.724-3.403-2.286-3.403-3.751 0-3.047 2.861-4.191 5.549-4.191 2.471 0 5.393 1.373 5.393 3.199 0 .784-.688 1.24-1.453 1.24-1.469 0-1.198-2.037-4.164-2.037-1.469 0-2.292.664-2.292 1.617s1.153 1.258 2.157 1.487l2.637.587c2.891.649 3.624 2.346 3.624 3.944 0 2.476-1.902 4.324-5.722 4.324'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 0.75rem center !important;
    background-size: 16px !important;
    padding-left: 2.5rem !important;
}

/* ===========================
   11. BOTONES PRINCIPALES — Update Profile / Change Password
   =========================== */
.ere-my-profile #ere_update_profile,
.ere-my-profile #ere_change_pass,
.ere-my-profile .btn-primary,
.ere-my-profile button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
    padding: 0.75rem 2rem !important;
    font-family: var(--erc-font) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--erc-primary), var(--erc-primary-dark)) !important;
    border: 2px solid var(--erc-primary) !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all var(--erc-transition) !important;
    text-transform: none !important;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25) !important;
    line-height: 1.5 !important;
    position: relative;
    overflow: hidden;
}

.ere-my-profile #ere_update_profile:hover,
.ere-my-profile #ere_change_pass:hover,
.ere-my-profile .btn-primary:hover,
.ere-my-profile button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--erc-primary-dark), #d9690b) !important;
    border-color: var(--erc-primary-dark) !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
    transform: translateY(-2px);
}

.ere-my-profile #ere_update_profile:active,
.ere-my-profile #ere_change_pass:active,
.ere-my-profile .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3) !important;
}

/* Efecto shimmer en hover */
.ere-my-profile #ere_update_profile::before,
.ere-my-profile #ere_change_pass::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.ere-my-profile #ere_update_profile:hover::before,
.ere-my-profile #ere_change_pass:hover::before {
    left: 100%;
}

/* Contenedor del botón - centrarlo o alinearlo */
.ere-my-profile .ere-update-profile > button,
.ere-my-profile .ere-change-password > button {
    margin-top: 1.5rem;
}

/* ===========================
   12. MENSAJES DE RESPUESTA
   =========================== */
.ere-my-profile .ere_messages,
.ere-my-profile .message {
    padding: 0.85rem 1.25rem;
    border-radius: var(--erc-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

/* Mensaje de éxito */
.ere-my-profile .ere_messages.success,
.ere-my-profile .ere_messages[style*="green"],
.ere-my-profile .message.success {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

/* Mensaje de error */
.ere-my-profile .ere_messages.error,
.ere-my-profile .ere_messages[style*="red"],
.ere-my-profile .message.error {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

/* Limpiar estilos inline de colores que el plugin inyecta */
.ere-my-profile .ere_messages[style] {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
    border-radius: var(--erc-radius-sm) !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.88rem !important;
}

/* ===========================
   13. VALIDACIÓN — jQuery Validate
   =========================== */
.ere-my-profile label.error,
.ere-my-profile .error-message {
    display: block !important;
    color: var(--erc-danger) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    margin-top: 0.3rem;
    padding-left: 0.25rem;
}

.ere-my-profile input.error,
.ere-my-profile textarea.error {
    border-color: var(--erc-danger) !important;
    background-color: #fef2f2 !important;
}

.ere-my-profile input.error:focus,
.ere-my-profile textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ===========================
   14. SECCIÓN CONTRASEÑA — Detalles extra
   =========================== */
.ere-my-profile .ere-card-change-password .card-body {
    position: relative;
}

/* Icono de seguridad decorativo */
.ere-my-profile .ere-card-change-password .card-body::before {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
}

/* Campos de password con icono de ojo simulado */
.ere-my-profile input[type="password"] {
    letter-spacing: 0.15em;
}

/* ===========================
   15. DASHBOARD SIDEBAR — Contenedor
   =========================== */
.ere-dashboard-sidebar {
    font-family: var(--erc-font);
}

.ere-dashboard-sidebar-content {
    background: var(--erc-surface);
    border: 1px solid var(--erc-border);
    border-radius: var(--erc-radius);
    box-shadow: var(--erc-shadow-lg);
    overflow: visible;
    animation: erc-profile-fadeUp 0.4s ease-out;
}

/* ===========================
   16. WELCOME BOX — Avatar + Usuario
   =========================== */
.ere-dashboard-welcome {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(160deg, var(--erc-primary-ultra-light) 0%, #fff 60%, var(--erc-accent-light) 100%);
    border-bottom: 1px solid var(--erc-border);
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo */
.ere-dashboard-welcome::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(249,115,22,.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ere-dashboard-welcome::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(37,99,235,.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Avatar */
.ere-dashboard-welcome figure {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--erc-primary-light);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.12);
    transition: all var(--erc-transition);
    position: relative;
    z-index: 1;
}

.ere-dashboard-welcome figure:hover {
    border-color: var(--erc-primary);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.22);
    transform: scale(1.04);
}

.ere-dashboard-welcome figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block;
}

/* Info de usuario */
.ere-dashboard-user-info {
    position: relative;
    z-index: 1;
}

.ere-dashboard-welcome h4.ere-dashboard-title {
    font-family: var(--erc-font) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--erc-text) !important;
    margin: 0 0 0.4rem 0 !important;
    letter-spacing: 0.01em;
}

/* Botón de Logout */
.ere-dashboard-welcome a.ere-dashboard-logout {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    font-family: var(--erc-font) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--erc-primary) !important;
    background: var(--erc-surface) !important;
    border: 1.5px solid var(--erc-primary-light) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all var(--erc-transition) !important;
    letter-spacing: 0.01em;
}

.ere-dashboard-welcome a.ere-dashboard-logout:hover {
    background: var(--erc-primary) !important;
    color: #fff !important;
    border-color: var(--erc-primary) !important;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.25);
    transform: translateY(-1px);
}

.ere-dashboard-welcome a.ere-dashboard-logout i {
    font-size: 0.82rem;
    margin-right: 2px;
}

/* ===========================
   17. MENÚ DE NAVEGACIÓN — Navbar
   =========================== */

/* Ocultar navbar en desktop, solo se usa el collapse */
.ere-dashboard-sidebar .navbar {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
}

.ere-dashboard-sidebar .navbar-collapse {
    padding: 0 !important;
    border: none !important;
}

/* Lista del menú */
.ere-dashboard-sidebar .ere-dashboard-nav,
.ere-dashboard-sidebar .nav.navbar-nav {
    list-style: none !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Items del menú */
.ere-dashboard-sidebar .ere-dashboard-nav > li {
    margin: 0;
    padding: 0 0.5rem;
    border-bottom: none !important;
}

.ere-dashboard-sidebar .ere-dashboard-nav > li > a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem !important;
    font-family: var(--erc-font) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--erc-text-muted) !important;
    text-decoration: none !important;
    border-radius: var(--erc-radius-sm) !important;
    transition: all var(--erc-transition) !important;
    border: 1.5px solid transparent !important;
    background: transparent !important;
    line-height: 1.4 !important;
    position: relative;
}

/* Hover */
.ere-dashboard-sidebar .ere-dashboard-nav > li > a:hover {
    background: var(--erc-primary-ultra-light) !important;
    color: var(--erc-primary) !important;
    border-color: var(--erc-primary-light) !important;
    transform: translateX(3px);
}

.ere-dashboard-sidebar .ere-dashboard-nav > li > a:hover i {
    color: var(--erc-primary) !important;
}

/* Item activo */
.ere-dashboard-sidebar .ere-dashboard-nav > li.active > a {
    background: linear-gradient(135deg, var(--erc-primary), var(--erc-primary-dark)) !important;
    color: #fff !important;
    border-color: var(--erc-primary) !important;
    box-shadow: 0 3px 12px rgba(249, 115, 22, 0.3) !important;
    font-weight: 600 !important;
}

.ere-dashboard-sidebar .ere-dashboard-nav > li.active > a i {
    color: #fff !important;
}

.ere-dashboard-sidebar .ere-dashboard-nav > li.active > a .badge {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

/* Iconos del menú */
.ere-dashboard-sidebar .ere-dashboard-nav > li > a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    color: var(--erc-text-light);
    background: var(--erc-bg);
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    transition: all var(--erc-transition);
    flex-shrink: 0;
}

.ere-dashboard-sidebar .ere-dashboard-nav > li.active > a i {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.ere-dashboard-sidebar .ere-dashboard-nav > li > a:hover i {
    background: var(--erc-primary-ultra-light);
    border-color: var(--erc-primary-light);
}

/* Badge (contadores) */
.ere-dashboard-sidebar .ere-dashboard-nav .badge {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--erc-font);
    background: var(--erc-bg) !important;
    color: var(--erc-text-muted) !important;
    border: 1px solid var(--erc-border);
    border-radius: 50px;
    line-height: 1.4;
    min-width: 24px;
    text-align: center;
    transition: all var(--erc-transition);
}

.ere-dashboard-sidebar .ere-dashboard-nav > li > a:hover .badge {
    background: var(--erc-primary-ultra-light) !important;
    color: var(--erc-primary) !important;
    border-color: var(--erc-primary-light);
}

/* Navbar header mobile */
.ere-dashboard-sidebar .navbar-header {
    display: none;
}

.ere-dashboard-sidebar .navbar-brand {
    font-family: var(--erc-font) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--erc-text) !important;
    padding: 0.85rem 1rem !important;
}

.ere-dashboard-sidebar .navbar-toggle {
    border: 1.5px solid var(--erc-border) !important;
    border-radius: var(--erc-radius-xs) !important;
    padding: 8px 10px !important;
    margin: 8px 10px 8px 0 !important;
    transition: all var(--erc-transition);
}

.ere-dashboard-sidebar .navbar-toggle:hover {
    border-color: var(--erc-primary-light) !important;
    background: var(--erc-primary-ultra-light) !important;
}

.ere-dashboard-sidebar .navbar-toggle .icon-bar {
    background-color: var(--erc-text-muted) !important;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    transition: background-color var(--erc-transition);
}

.ere-dashboard-sidebar .navbar-toggle:hover .icon-bar {
    background-color: var(--erc-primary) !important;
}

/* ===========================
   17b. LISTING PACKAGE — Card en sidebar
   =========================== */
.ere-dashboard-sidebar-content > .card.ere-card {
    margin: 0.75rem;
    border-radius: var(--erc-radius-sm) !important;
    border: 1px solid var(--erc-border) !important;
    box-shadow: var(--erc-shadow-xs) !important;
}

.ere-dashboard-sidebar-content > .card.ere-card .card-header {
    background: var(--erc-bg) !important;
    border-bottom: 1px solid var(--erc-border) !important;
    padding: 0.75rem 1rem !important;
}

.ere-dashboard-sidebar-content > .card.ere-card .card-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--erc-text) !important;
}

/* ===========================
   17c. DASHBOARD — Contenedor general
   Soluciona: Elementor HTML widget sin width:100%,
   falta de .container-fluid padre para Bootstrap .row,
   y restricciones de Twenty Twenty-One.
   =========================== */

/* --- A. Elementor: forzar que el widget HTML y sus padres ocupen 100% --- */

/* El widget HTML de Elementor donde va el shortcode del dashboard */
.elementor-widget-html:has(.ere-user-dashboard),
.elementor-widget.elementor-widget-html {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fallback para navegadores sin :has() — selecciona todo widget-html */
.e-con > .elementor-widget-html {
    width: 100% !important;
}

/* Container Elementor padre: asegurar que no restrinja ancho */
.elementor-element:has(> .elementor-widget-html .ere-user-dashboard),
.e-con.e-parent:has(.ere-user-dashboard) {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* --- B. Twenty Twenty-One: anular restricciones de ancho del tema --- */
body.wp-theme-twentytwentyone .ere-user-dashboard,
body.elementor-template-full-width .ere-user-dashboard {
    max-width: 100% !important;
    width: 100% !important;
}

/* Anular cualquier max-width que el tema imponga a ancestros */
body.wp-theme-twentytwentyone .elementor.elementor-10,
body.wp-theme-twentytwentyone .e-con-full {
    max-width: 100% !important;
}

/* --- C. Dashboard row principal --- */
.ere-user-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    box-sizing: border-box !important;
}

/* El .row necesita actuar como container-fluid + row combinado */
.ere-user-dashboard.row {
    display: flex !important;
    flex-wrap: wrap !important;
    /* Compensar la falta de .container-fluid: en vez de -15px,
       usamos 0 para que el contenido no desborde */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* --- D. Sidebar: ancho fijo 25% --- */
.ere-user-dashboard > .col-lg-3.ere-dashboard-sidebar {
    min-width: 0;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* --- E. Content: ocupa el 75% restante --- */
.ere-user-dashboard > .col-lg-9.ere-dashboard-content {
    min-width: 0;
    flex: 0 0 75% !important;
    max-width: 75% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.ere-dashboard-content {
    min-height: 400px;
}

/* --- F. Responsive: stack en mobile --- */
@media (max-width: 991px) {
    .ere-user-dashboard.row {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .ere-user-dashboard > .col-lg-3.ere-dashboard-sidebar,
    .ere-user-dashboard > .col-lg-9.ere-dashboard-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .ere-user-dashboard > .col-lg-3.ere-dashboard-sidebar {
        margin-bottom: 1.25rem;
    }
}

/* ===========================
   18. ESTADOS DE LOADING / SPINNER
   =========================== */
.ere-my-profile .spinner,
.ere-my-profile .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--erc-border);
    border-top-color: var(--erc-primary);
    border-radius: 50%;
    animation: erc-profile-spin 0.8s linear infinite;
}

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

/* ===========================
   19. PLUPLOAD CONTAINER
   =========================== */
.ere-my-profile #ere_profile_plupload_container {
    text-align: center;
    margin-top: 0.5rem;
}

.ere-my-profile .plupload_droptext {
    font-size: 0.85rem !important;
    color: var(--erc-text-muted) !important;
}

/* Error de upload */
.ere-my-profile #errors_log {
    font-size: 0.78rem;
    color: var(--erc-danger);
    margin-top: 0.5rem;
    text-align: center;
}

/* ===========================
   20. RESPONSIVE
   =========================== */
@media (min-width: 992px) {
    .ere-dashboard-sidebar .navbar-header {
        display: none !important;
    }

    .ere-dashboard-sidebar .navbar-collapse {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .ere-my-profile {
        max-width: 100%;
    }

    .ere-dashboard-sidebar {
        margin-bottom: 1.5rem;
    }

    .ere-my-profile .card-body {
        padding: 1.5rem !important;
    }

    .ere-my-profile .profile-thumb {
        width: 120px;
        height: 120px;
    }

    /* Sidebar: mostrar hamburguesa y collapse */
    .ere-dashboard-sidebar .navbar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--erc-border);
    }

    .ere-dashboard-sidebar .ere-dashboard-welcome {
        padding: 1.5rem 1rem 1rem;
    }

    .ere-dashboard-welcome figure {
        width: 70px;
        height: 70px;
    }

    .ere-dashboard-sidebar .ere-dashboard-nav {
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 640px) {
    .ere-my-profile .card-header {
        padding: 1rem 1.25rem !important;
    }

    .ere-my-profile .card-body {
        padding: 1.25rem 1rem !important;
    }

    .ere-my-profile .profile-thumb {
        width: 100px;
        height: 100px;
    }

    .ere-my-profile .jumbotron,
    .ere-my-profile .ere-account-agent {
        padding: 1.25rem !important;
    }

    .ere-my-profile #ere_update_profile,
    .ere-my-profile #ere_change_pass,
    .ere-my-profile .btn-primary {
        width: 100% !important;
        justify-content: center;
    }

    .ere-my-profile .ere-card-change-password .card-body::before {
        display: none;
    }

    .ere-dashboard-welcome figure {
        width: 60px;
        height: 60px;
    }

    .ere-dashboard-sidebar .ere-dashboard-nav > li > a {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.84rem !important;
    }

    .ere-dashboard-sidebar .ere-dashboard-nav > li > a i {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .ere-my-profile .card-title,
    .ere-my-profile .card-header h5 {
        font-size: 1rem !important;
    }

    .ere-my-profile .ere-card-account-settings .card-title::before,
    .ere-my-profile .ere-card-change-password .card-title::before {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

/* ===========================
   21. ANIMACIONES DE ENTRADA
   =========================== */
.ere-my-profile .ere-card {
    animation: erc-profile-fadeUp 0.5s ease-out;
}

.ere-my-profile .ere-card-change-password {
    animation: erc-profile-fadeUp 0.5s ease-out 0.15s;
    animation-fill-mode: both;
}

@keyframes erc-profile-fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   22. FOCUS VISIBLE — Accesibilidad
   =========================== */
.ere-my-profile input:focus-visible,
.ere-my-profile textarea:focus-visible,
.ere-my-profile button:focus-visible {
    outline: 2px solid var(--erc-primary) !important;
    outline-offset: 2px !important;
}

/* ===========================
   23. SELECTS (si existen en perfil)
   =========================== */
.ere-my-profile select {
    width: 100% !important;
    padding: 0.7rem 1rem !important;
    font-family: var(--erc-font) !important;
    font-size: 0.9rem !important;
    color: var(--erc-text) !important;
    background-color: var(--erc-bg) !important;
    border: 2px solid var(--erc-border) !important;
    border-radius: var(--erc-radius-sm) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
    padding-right: 2.5rem !important;
    transition: all var(--erc-transition);
}

.ere-my-profile select:focus {
    border-color: var(--erc-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

/* ===========================
   24. SCROLLBAR PERSONALIZADA
   =========================== */
.ere-my-profile ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ere-my-profile ::-webkit-scrollbar-track {
    background: transparent;
}

.ere-my-profile ::-webkit-scrollbar-thumb {
    background: var(--erc-primary-light);
    border-radius: 3px;
}

.ere-my-profile ::-webkit-scrollbar-thumb:hover {
    background: var(--erc-primary);
}

/* ===========================
   25. OVERRIDE BOOTSTRAP DEFAULTS
   =========================== */
.ere-my-profile .card {
    border-color: var(--erc-border) !important;
}

.ere-my-profile .mt-4 {
    margin-top: 2rem !important;
}

.ere-my-profile .btn-primary {
    background-color: var(--erc-primary) !important;
    border-color: var(--erc-primary) !important;
}

.ere-my-profile .btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25) !important;
}

/* Eliminar bordes bootstrap por defecto en la card */
.ere-my-profile .card-header:first-child {
    border-radius: var(--erc-radius) var(--erc-radius) 0 0 !important;
}

/* ============================================================
   26. ACORDEONES — Secciones colapsables
   ============================================================ */
.erc-profile-accordions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Cada acordeón */
.erc-accordion {
    background: var(--erc-surface);
    border: 1px solid var(--erc-border);
    border-radius: var(--erc-radius);
    overflow: hidden;
    transition: box-shadow var(--erc-transition), border-color var(--erc-transition);
}

.erc-accordion:hover {
    border-color: var(--erc-border-hover);
    box-shadow: var(--erc-shadow-md);
}

/* Header del acordeón — Botón clickable */
.erc-accordion__header {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, var(--erc-primary-ultra-light), rgba(255,255,255,.6)) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    transition: all var(--erc-transition) !important;
    font-family: var(--erc-font) !important;
    box-sizing: border-box !important;
    user-select: none;
    -webkit-user-select: none;
}

.erc-accordion__header:hover {
    background: linear-gradient(135deg, var(--erc-primary-light), var(--erc-primary-ultra-light)) !important;
}

/* Cuando está abierto */
.erc-accordion--open > .erc-accordion__header {
    border-bottom-color: var(--erc-border) !important;
    background: linear-gradient(135deg, var(--erc-primary-ultra-light), #fff) !important;
}

/* Icono decorativo izquierdo */
.erc-accordion__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--erc-primary-ultra-light);
    border: 1.5px solid var(--erc-primary-light);
    border-radius: 10px;
    color: var(--erc-primary);
    flex-shrink: 0;
    transition: all var(--erc-transition);
}

.erc-accordion--open > .erc-accordion__header .erc-accordion__icon {
    background: var(--erc-primary);
    border-color: var(--erc-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.erc-accordion__icon svg {
    display: block;
}

/* Título */
.erc-accordion__title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--erc-text);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Chevron (flecha) */
.erc-accordion-chevron {
    flex-shrink: 0;
    color: var(--erc-text-muted);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), color var(--erc-transition);
}

.erc-accordion--open > .erc-accordion__header .erc-accordion-chevron {
    transform: rotate(180deg);
    color: var(--erc-primary);
}

/* Body del acordeón */
.erc-accordion__body {
    overflow: hidden;
}

.erc-accordion__inner {
    padding: 1.5rem 1.75rem;
}

/* ===========================
   27. ACORDEÓN — Card contraseña
   =========================== */
.erc-accordion-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.erc-accordion-card > .erc-accordion {
    box-shadow: var(--erc-shadow-lg);
}

/* ===========================
   28. BOTÓN SUBMIT — Fuera de acordeones
   =========================== */
.erc-profile-submit {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--erc-border);
    text-align: center;
}

.erc-profile-submit button {
    margin: 0 auto;
}

/* ===========================
   29. ANIMACIONES DE ACORDEONES
   =========================== */
.erc-accordion {
    animation: erc-accordion-fadeIn 0.4s ease-out both;
}

.erc-accordion[data-accordion="about"] {
    animation-delay: 0.05s;
}

.erc-accordion[data-accordion="agent"] {
    animation-delay: 0.10s;
}

.erc-accordion[data-accordion="social"] {
    animation-delay: 0.15s;
}

.erc-accordion[data-accordion="password"] {
    animation-delay: 0.20s;
}

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

/* ===========================
   30. ACORDEÓN — Responsive
   =========================== */
@media (max-width: 640px) {
    .erc-accordion__header {
        padding: 0.85rem 1rem !important;
        gap: 0.5rem !important;
    }

    .erc-accordion__icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .erc-accordion__icon svg {
        width: 14px;
        height: 14px;
    }

    .erc-accordion__title {
        font-size: 0.88rem;
    }

    .erc-accordion__inner {
        padding: 1rem 1rem;
    }

    .erc-profile-submit {
        padding: 1rem 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .erc-accordion__icon {
        width: 28px;
        height: 28px;
    }

    .erc-accordion__title {
        font-size: 0.82rem;
    }

    .erc-accordion-chevron {
        width: 14px;
        height: 14px;
    }
}

/* ===========================
   31. ESTADO DE TRANSICIÓN — Sin parpadeo
   =========================== */
/* Ocultar contenido antes de que el JS lo reorganice */
.ere-my-profile:not(.erc-profile-ready) .ere-update-profile {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.ere-my-profile.erc-profile-ready .ere-update-profile {
    opacity: 1;
}

/* ===========================
   32. CARD HEADER con SVG inline (reemplaza FontAwesome)
   =========================== */
.ere-my-profile .card-header h5 svg,
.ere-my-profile .card-title svg {
    width: 20px;
    height: 20px;
    color: var(--erc-primary);
    flex-shrink: 0;
}
