/**
 * Estilos Dashboard Mi Cuenta LG Materiales
 */

:root { 
    --lg-red: #c00d0d; 
    --lg-dark: #222; 
    --lg-gray: #666; 
}

/* OCULTAR MENÚ LATERAL Y TEXTOS SUELTOS */
.woocommerce-account .woocommerce-MyAccount-navigation { display: none !important; }
.woocommerce-MyAccount-content > p { display: none !important; }
.woocommerce-MyAccount-content .lg-account-dashboard p,
.woocommerce-MyAccount-content .lg-account-section-header p,
.woocommerce-MyAccount-content form p,
.woocommerce-MyAccount-content .woocommerce-info p { display: block !important; }

/* CONTENEDOR PRINCIPAL */
.woocommerce-account .woocommerce-MyAccount-content { 
    width: 100% !important; 
    max-width: 1100px !important; 
    margin: 0 auto !important; 
    padding: 0 15px !important; 
    float: none !important; 
    font-family: 'Montserrat', sans-serif;
}

/* ESTRUCTURA DASHBOARD */
.lg-account-dashboard, .lg-account-section-header { margin-bottom: 30px; }
.lg-account-header { 
    background: #f5f5f5; 
    padding: 40px; 
    border-radius: 8px; 
    border-left: 5px solid var(--lg-red); 
    margin-bottom: 40px; 
    width: 100%; 
    box-sizing: border-box;
}
.lg-header-info { display: flex; align-items: center; gap: 25px; }
.lg-welcome-icon { font-size: 60px; color: var(--lg-red); flex-shrink: 0; }

.lg-welcome-text h1 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 0; 
    color: var(--lg-dark); 
}
.lg-welcome-text p { margin: 5px 0 0 0; color: var(--lg-gray); }

/* GRILLA Y TARJETAS */
.lg-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.lg-account-card { 
    text-decoration: none !important; 
    padding: 30px; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    transition: 0.3s; 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
}
.lg-account-card:hover { border-color: var(--lg-red); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.card-icon { font-size: 40px; color: var(--lg-dark); margin-bottom: 15px; display: block; }
.lg-account-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--lg-dark); margin-bottom: 10px; margin-top: 0;}

.lg-account-card p { margin: 0 0 20px 0; font-size: 0.95rem; line-height: 1.6; color: var(--lg-gray); flex-grow: 1;}
.lg-card-link { font-size: 0.75rem; font-weight: 800; color: var(--lg-red); display: flex; align-items: center; gap: 5px; text-transform: uppercase; margin-top: auto;}

.lg-account-footer { margin-top: 40px; text-align: right; border-top: 1px solid #eee; padding-top: 20px; }
.lg-logout-btn { text-decoration: none; color: var(--lg-gray); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.lg-logout-btn:hover { color: var(--lg-red); }

/* CABECERAS INTERNAS */
.lg-account-section-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-top: 20px;}
.lg-header-left { display: flex; align-items: center; gap: 20px; }
.lg-section-icon-box span { font-size: 40px; color: var(--lg-red); background: #fdf2f2; padding: 10px; border-radius: 8px; }
.lg-section-title-box h1 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin: 0; color: var(--lg-dark); }
.lg-section-title-box p { margin: 0; color: var(--lg-gray); }
.lg-back-btn { display: inline-flex; align-items: center; gap: 8px; background: #f5f5f5; padding: 10px 18px; border-radius: 8px; color: var(--lg-dark); font-weight: 700; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.lg-back-btn:hover { background: var(--lg-red); color: white; }

/* REDISEÑO COMPONENTES NATIVOS */
.woocommerce-account .button {
    background-color: var(--lg-red) !important; color: #fff !important; border-radius: 8px !important; padding: 15px 25px !important;
    font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; text-transform: uppercase; border: none !important; transition: 0.3s !important; margin-top: 15px;
}
.woocommerce-account .button:hover { background-color: #900a0a !important; }

form.woocommerce-EditAccountForm, form.woocommerce-address-form { background: #fff; padding: 40px; border-radius: 8px; border: 1px solid #eee; margin-top: 20px; }
.woocommerce-account form .form-row { margin-bottom: 20px; }
.woocommerce-account form label { font-weight: 600; color: var(--lg-dark); display: block; margin-bottom: 8px; }
.woocommerce-account form input.input-text, .woocommerce-account form textarea {
    width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Montserrat', sans-serif; outline: none; transition: 0.3s; box-sizing: border-box;
}

.woocommerce-account table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid #eee; border-radius: 8px; overflow: hidden; margin-top: 20px; background: #fff; }
.woocommerce-account table.shop_table thead th { background: #f5f5f5; padding: 18px; color: var(--lg-dark); font-weight: 700; border-bottom: 2px solid var(--lg-red); text-align: left; }
.woocommerce-account table.shop_table tbody td { padding: 18px; border-bottom: 1px solid #eee; vertical-align: middle; color: var(--lg-gray); }

.woocommerce-info, .woocommerce-message, .woocommerce-error {
    background: #fff; border-top: 3px solid var(--lg-red); padding: 30px; border-radius: 8px; 
    border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;
    color: var(--lg-dark); font-weight: 600; margin-bottom: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .lg-account-header { padding: 30px 20px; text-align: center; border-left: none; border-top: 5px solid var(--lg-red); }
    .lg-header-info { flex-direction: column; gap: 15px; }
    .lg-welcome-text h1 { font-size: 1.4rem; }
    .lg-account-grid { grid-template-columns: 1fr !important; }
    .lg-account-section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .lg-header-left { flex-direction: column; text-align: center; width: 100%; }
    .lg-back-btn { width: 100%; justify-content: center; box-sizing: border-box; }
}