/**
 * Estilos para Reino Feliz - Customer Hub & Mi Cuenta
 * Versión: 1.0.2
 */

/* Contenedor general del Hub */
.rf-hub-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333333;
    margin: 15px 0 35px 0;
}

/* Tarjeta de Bienvenida del Dashboard */
.rf-hub-welcome-card {
    background: linear-gradient(135deg, #4718a5 0%, #2f0d75 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(71, 24, 165, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.rf-hub-welcome-info h2 {
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.rf-hub-welcome-info p {
    color: #e2d9f3;
    font-size: 15px;
    margin: 0;
}

/* Ficha Familiar en la pestaña "Mis Datos" */
.rf-family-profile-card {
    background: #ffffff;
    border: 1px solid #e8e3f2;
    border-radius: 18px;
    padding: 26px 30px;
    margin-bottom: 35px;
    box-shadow: 0 6px 20px rgba(71, 24, 165, 0.05);
}

.rf-family-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f5f2fb;
    padding-bottom: 14px;
}

.rf-family-profile-header h3 {
    margin: 0 !important;
    font-size: 20px;
    font-weight: 700;
    color: #4718a5;
}

.rf-family-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.rf-family-item {
    background: #faf8fd;
    border: 1px solid #ede8f7;
    border-radius: 12px;
    padding: 14px 18px;
}

.rf-family-item-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #7b6f93;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.rf-family-item-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

/* Lista de Niños Registrados */
.rf-children-section {
    background: #faf8fd;
    border: 1px solid #ede8f7;
    border-radius: 12px;
    padding: 16px 20px;
}

.rf-children-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.rf-child-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dfdaf0;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4718a5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.rf-child-pill-level {
    font-size: 11px;
    color: #2ec4b6;
    background: #e6faf8;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Grid de Productos */
.rf-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Tarjeta individual de Producto */
.rf-hub-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.rf-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    border-color: #dfdaf0;
}

.rf-hub-card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #f7f5fb;
    overflow: hidden;
}

.rf-hub-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rf-hub-card:hover .rf-hub-card-thumb img {
    transform: scale(1.04);
}

.rf-hub-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2ec4b6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rf-hub-card-badge-premium {
    background: #ffb703;
    color: #212529;
}

.rf-hub-card-badge-catalog {
    background: #4718a5;
}

.rf-hub-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rf-hub-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #212529;
    line-height: 1.35;
}

.rf-hub-card-desc {
    font-size: 13.5px;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.rf-hub-device-note {
    font-size: 12px;
    font-weight: 600;
    color: #7b6f93;
    background: #f7f4fc;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 12px;
    display: inline-block;
}

.rf-hub-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rf-hub-price {
    font-size: 18px;
    font-weight: 700;
    color: #2ec4b6;
    margin-bottom: 4px;
}

/* Botones de Acción */
.rf-hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 25px; /* Bordes suaves redondeados */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
}

.rf-hub-btn:active {
    transform: scale(0.98);
}

.rf-hub-btn-access {
    background: linear-gradient(135deg, #2ec4b6 0%, #1a9388 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(46, 196, 182, 0.25);
}

.rf-hub-btn-access:hover {
    background: linear-gradient(135deg, #28b3a5 0%, #157e74 100%);
    box-shadow: 0 6px 16px rgba(46, 196, 182, 0.35);
    color: #ffffff !important;
}

.rf-hub-btn-playstore {
    background: linear-gradient(135deg, #01875f 0%, #005a3f 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(1, 135, 95, 0.25);
}

.rf-hub-btn-playstore:hover {
    background: linear-gradient(135deg, #02996c 0%, #016b4b 100%);
    box-shadow: 0 6px 16px rgba(1, 135, 95, 0.35);
    color: #ffffff !important;
}

.rf-hub-btn-buy {
    background: linear-gradient(135deg, #4718a5 0%, #340c85 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(71, 24, 165, 0.22);
}

.rf-hub-btn-buy:hover {
    background: linear-gradient(135deg, #3d1294 0%, #29086c 100%);
    box-shadow: 0 6px 16px rgba(71, 24, 165, 0.32);
    color: #ffffff !important;
}

/* Estado Vacío (Empty State) */
.rf-hub-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #fdfcff;
    border: 2px dashed #e2dbf0;
    border-radius: 16px;
    margin: 20px 0;
}

.rf-hub-empty-state .rf-hub-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
}

.rf-hub-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 8px 0;
}

.rf-hub-empty-state p {
    font-size: 14.5px;
    color: #777777;
    max-width: 460px;
    margin: 0 auto 20px auto;
}

/* Navegación estilizada de WooCommerce My Account con Bordes Redondeados */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0edf7;
    padding-bottom: 14px !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px !important; /* Bordes redondeados en todas las pestañas */
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background: #f7f5fb;
    border: 1px solid transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: #4718a5;
    background: #ece7f8;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #4718a5 !important;
    color: #ffffff !important;
    border-color: #4718a5 !important;
    box-shadow: 0 4px 12px rgba(71, 24, 165, 0.25);
}

/* Botón Rojo "Cerrar Sesión" con Bordes Totalmente Redondeados */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    background: #e63946 !important;
    color: #ffffff !important;
    border-radius: 25px !important; /* Borde redondeado suave */
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #d62828 !important;
    color: #ffffff !important;
}

/* Ocultar texto predeterminado clásico de WooCommerce en Mi Panel */
.woocommerce-MyAccount-content > p:has(a[href*="customer-logout"]),
.woocommerce-MyAccount-content > p:has(a[href*="edit-account"]),
.woocommerce-MyAccount-content > p:has(a[href*="orders"]) {
    display: none !important;
}

/* Ficha Familiar Reino Feliz (Pestaña Mis Datos) */
.rf-family-profile-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eee8f8;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(71, 24, 165, 0.06);
}

.rf-family-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f2eff8;
}

.rf-family-profile-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #4718a5;
}

.rf-family-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.rf-family-item {
    background: #fdfcff;
    border: 1px solid #f0ecf7;
    border-radius: 12px;
    padding: 14px 16px;
}

.rf-family-item-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8c83a0;
    margin-bottom: 6px;
}

.rf-family-item-value {
    font-size: 15px;
    font-weight: 700;
    color: #2b2738;
}

@media (max-width: 768px) {
    .rf-hub-welcome-card {
        padding: 22px 20px;
        text-align: center;
        justify-content: center;
    }
    
    .rf-hub-welcome-info h2 {
        font-size: 22px;
    }
    
    .woocommerce-MyAccount-navigation ul {
        justify-content: center;
    }
    
    .rf-family-profile-grid {
        grid-template-columns: 1fr;
    }
}
