/*
Theme Name:   INPROCESS Theme
Theme URI:    https://inprocess.com.bo
Description:  Custom child theme for Divi with LearnPress LMS integration
Author:       Get Server S.R.L
Author URI:   https://getserver.com.bo
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  inprocess-theme
*/

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1.  CSS Variables (Brand Colors)
   2.  Base Styles
   3.  Layout Overrides
   4.  Header & Navigation
   5.  LearnPress - Course Cards (Default)
   6.  LearnPress - Progress Bar
   7.  LearnPress - Single Course Header
   8.  LearnPress - Course Content & Syllabus
   9.  LearnPress - Login Form
   10. LearnPress - Checkout Page
   11. LearnPress - User Profile
   12. Custom Course Grid (Shortcode)
   13. WhatsApp Button
   14. Responsive Styles
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES (Brand Colors)
   ========================================================================== */

:root {
    /* Primary Colors */
    --ip-primary: #007cba;
    --ip-primary-dark: #005f8f;
    --ip-primary-light: #f0f8ff;
    
    /* Secondary Colors */
    --ip-secondary: #1a4b7c;
    --ip-secondary-dark: #1a2a3a;
    
    /* Accent Colors */
    --ip-success: #27ae60;
    --ip-error: #dc3232;
    --ip-warning: #f39c12;
    
    /* Neutral Colors */
    --ip-white: #ffffff;
    --ip-gray-100: #f9f9f9;
    --ip-gray-200: #f0f0f0;
    --ip-gray-300: #e8e8e8;
    --ip-gray-400: #cccccc;
    --ip-gray-500: #999999;
    --ip-gray-600: #666666;
    --ip-gray-700: #555555;
    --ip-gray-800: #333333;
    
    /* Shadows */
    --ip-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --ip-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --ip-shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.07);
    --ip-shadow-xl: 0 12px 35px rgba(0, 0, 0, 0.18);
    
    /* Border Radius */
    --ip-radius-sm: 5px;
    --ip-radius-md: 8px;
    --ip-radius-lg: 10px;
    --ip-radius-xl: 12px;
    
    /* Transitions */
    --ip-transition: 0.3s ease;
    --ip-transition-fast: 0.2s ease;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */

body {
    font-family: "Inter", sans-serif;
}

/* ==========================================================================
   3. LAYOUT OVERRIDES
   ========================================================================== */

#page-container {
    padding-top: 80px !important;
}

/* Hide header on lesson pages */
body.course-item-lp_lesson #main-header {
    display: none;
}
/* Afectar solo al perfil de LearnPress cuando el usuario es INVITADO (no logueado) */
#learn-press-profile.guest .lp-content-area {
    width: 100% !important;
    display: block !important;
}

/* Estilo para la caja del mensaje específico */
#learn-press-profile.guest .learn-press-message {
    width: 100% !important;      /* Ocupar todo el ancho disponible */
    max-width: 100% !important;  /* Forzar que no tenga límite de ancho */
    text-align: center !important; /* Centrar el texto y el enlace */
    display: block !important;   /* Comportarse como bloque (una sola fila) */
    margin: 0 auto !important;   /* Centrar la caja si tuviera márgenes */
    box-sizing: border-box;      /* Asegurar que el padding no rompa el ancho */
    
}

body.page-id-236 #main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70dvh;
}

/* ==========================================================================
   BUTTON STYLE FOR .btn-lms MENU ITEM
   ========================================================================== */

/* Desktop Menu */
#top-menu .btn-lms > a {
    background-color: var(--ip-primary);
    color: var(--ip-white) !important;
    padding: 10px 20px !important;
    border-radius: var(--ip-radius-sm);
    margin-left: 15px;
    transition: all var(--ip-transition);
}

#top-menu .btn-lms > a:hover {
    background-color: var(--ip-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.35);
}
.et-fixed-header #top-menu .btn-lms a {
    color: #FFFFFF !important;
}
/* Mobile Menu */
#mobile_menu .btn-lms > a {
    background-color: var(--ip-primary);
    color: var(--ip-white) !important;
    padding: 12px 20px !important;
    border-radius: var(--ip-radius-sm);
    margin: 10px 20px;
    display: inline-block;
    text-align: center;
    transition: all var(--ip-transition);
}

#mobile_menu .btn-lms > a:hover {
    background-color: var(--ip-primary-dark);
}

/* ==========================================================================
   USER ACCOUNT DROPDOWN MENU
   ========================================================================== */

/* Main menu item container */
#top-menu .menu-item-user-account > a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 15px !important;
    background-color: var(--ip-gray-100);
    border-radius: var(--ip-radius-md);
    transition: all var(--ip-transition);
}

#top-menu .menu-item-user-account > a:hover {
    background-color: var(--ip-gray-200);
}

/* Avatar styling */
#top-menu .menu-item-user-account .user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ip-primary);
}

/* User name */
#top-menu .menu-item-user-account .user-menu-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ip-gray-800);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown arrow indicator */
#top-menu .menu-item-user-account > a::after {
    content: '\25BC';
    font-size: 8px;
    margin-left: 5px;
    color: var(--ip-gray-500);
    transition: transform var(--ip-transition);
}

#top-menu .menu-item-user-account:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown submenu */
#top-menu .menu-item-user-account .sub-menu {
    min-width: 200px;
    padding: 10px 0;
    background: var(--ip-white);
    border-radius: var(--ip-radius-md);
    border-top: 3px solid var(--ip-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#top-menu .menu-item-user-account .sub-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--ip-gray-700);
    font-size: 14px;
    transition: all var(--ip-transition-fast);
}

#top-menu .menu-item-user-account .sub-menu li a:hover {
    background-color: var(--ip-primary-light);
    color: var(--ip-primary);
}

/* Dashicons in dropdown */
#top-menu .menu-item-user-account .sub-menu .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--ip-gray-500);
    transition: color var(--ip-transition-fast);
}

#top-menu .menu-item-user-account .sub-menu li a:hover .dashicons {
    color: var(--ip-primary);
}

/* Logout item special styling */
#top-menu .menu-item-user-account .menu-item-logout a {
    border-top: 1px solid var(--ip-gray-300);
    margin-top: 5px;
    padding-top: 15px;
    color: var(--ip-error);
}

#top-menu .menu-item-user-account .menu-item-logout a:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

#top-menu .menu-item-user-account .menu-item-logout .dashicons {
    color: var(--ip-error);
}

/* ==========================================================================
   USER ACCOUNT DROPDOWN - MOBILE MENU
   ========================================================================== */

#mobile_menu .menu-item-user-account > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: var(--ip-gray-100);
    border-bottom: 1px solid var(--ip-gray-300);
}

#mobile_menu .menu-item-user-account .user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ip-primary);
}

#mobile_menu .menu-item-user-account .user-menu-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--ip-gray-800);
}

#mobile_menu .menu-item-user-account .sub-menu {
    background-color: var(--ip-gray-100);
    padding: 0;
}

#mobile_menu .menu-item-user-account .sub-menu li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 15px 20px 15px 35px;
    border-bottom: 1px solid var(--ip-gray-200);
}

#mobile_menu .menu-item-user-account .sub-menu .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--ip-primary);
}

#mobile_menu .menu-item-user-account .menu-item-logout a {
    color: var(--ip-error);
    background-color: #fef2f2;
}

#mobile_menu .menu-item-user-account .menu-item-logout .dashicons {
    color: var(--ip-error);
}

/* ==========================================================================
   5. LEARNPRESS - Course Cards (Default)
   ========================================================================== */

.llms-loop-item {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
    transition: transform var(--ip-transition), box-shadow var(--ip-transition);
}

.llms-loop-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   COURSE PRICE - Sale Price Styling
   ========================================================================== */

/* Regular price (strikethrough when on sale) */
body .cursos-grid .curso-precio .precio-regular {
    font-size: 16px;
    font-weight: 500;
    color: var(--ip-gray-400);
    text-decoration: line-through;
    margin-right: 10px;
}

/* Sale price */
body .cursos-grid .curso-precio .precio-oferta {
    font-size: 24px;
    font-weight: 700;
    color: var(--ip-secondary);
}

/* Add sale badge (optional) */
body .cursos-grid .curso-precio.curso-en-oferta::before {
    content: '¡Oferta!';
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--ip-success);
    color: var(--ip-white);
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

/* ==========================================================================
   6. LEARNPRESS - Progress Bar
   ========================================================================== */

.llms-progress .progress-bar-complete {
    background-color: transparent !important;
    background: linear-gradient(45deg, #00c6ff 0%, #0072ff 50%, #003893 100%) !important;
    border-radius: var(--ip-radius-sm) !important;
    box-shadow: var(--ip-shadow-sm);
    padding: 0.5em;
}

/* ==========================================================================
   7. LEARNPRESS - Single Course Header
   ========================================================================== */

.lp-single-course__header {
    background-color: rgba(50, 50, 50, 0.01);
    color: #cecece;
    background-blend-mode: overlay;
    background-image: 
        url(https://inprocess-lp.getserver.cloud/wp-content/uploads/2025/10/coding-background-texture.jpg),
        linear-gradient(180deg, #333333 0%, #323232 100%) !important;
}

.lp-single-course__header h1 {
    color: var(--ip-white);
}

.course-content {
    background-color: var(--ip-white);
}

/* ==========================================================================
   8. LEARNPRESS - Course Content & Syllabus Toggle
   ========================================================================== */

#toggle-syllabus-btn {
    margin-bottom: 15px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: var(--ip-gray-200);
    border: 1px solid var(--ip-gray-400);
    border-radius: 4px;
    transition: var(--ip-transition);
}

#toggle-syllabus-btn:hover {
    background-color: var(--ip-gray-300);
}

.columna-syllabus {
    flex-basis: 33.33%;
    transition: all var(--ip-transition);
    overflow: hidden;
}

.columna-syllabus.oculto {
    flex-basis: 0% !important;
    opacity: 0;
    margin-left: -20px;
}

.columna-contenido {
    flex-basis: 66.67%;
    transition: all var(--ip-transition);
}

.columna-contenido.expandido {
    flex-basis: 100% !important;
}

/* ==========================================================================
   9. LEARNPRESS - Login Form
   ========================================================================== */

.inprocess-login-form .learn-press-form-login {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--ip-white);
    border-radius: var(--ip-radius-lg);
    border: 1px solid #e9e9e9;
    box-shadow: var(--ip-shadow-lg);
}

.inprocess-login-form h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ip-gray-800);
    margin: 0 0 2rem;
}

.inprocess-login-form .form-fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inprocess-login-form .form-field {
    margin-bottom: 1.5rem;
}

.inprocess-login-form .form-field label {
    display: block;
    font-weight: 600;
    color: var(--ip-gray-700);
    margin-bottom: 0.5rem;
}

.inprocess-login-form .form-field label .required {
    color: var(--ip-error);
}

.inprocess-login-form input[type="text"],
.inprocess-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--ip-gray-400);
    border-radius: var(--ip-radius-sm);
    box-sizing: border-box;
    transition: border-color var(--ip-transition), box-shadow var(--ip-transition);
}

.inprocess-login-form input[type="text"]:focus,
.inprocess-login-form input[type="password"]:focus {
    outline: none;
    border-color: #019fcd;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
}

.inprocess-login-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--ip-white);
    background-color: var(--ip-primary);
    border: none;
    border-radius: var(--ip-radius-sm);
    cursor: pointer;
    transition: background-color var(--ip-transition);
}

.inprocess-login-form button[type="submit"]:hover {
    background-color: var(--ip-primary-dark);
}

.inprocess-login-form .learn-press-form > p {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--ip-gray-600);
}

.inprocess-login-form input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.inprocess-login-form .learn-press-form > p:last-of-type {
    text-align: center;
    margin-top: 1.5rem;
}

.inprocess-login-form .learn-press-form a {
    color: var(--ip-primary);
    text-decoration: none;
    font-weight: 500;
}

.inprocess-login-form .learn-press-form a:hover {
    text-decoration: underline;
}

/* Already logged in message */
.inprocess-login-form .learnpress:not(:has(.learn-press-form)) {
    max-width: 650px;
    margin: 2rem auto;
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
    padding: 1.25rem;
    border-radius: var(--ip-radius-md);
    text-align: center;
    box-sizing: border-box;
}

.inprocess-login-form .learnpress:not(:has(.learn-press-form)) a {
    font-weight: 800;
    color: var(--ip-error);
}

/* ==========================================================================
   10. LEARNPRESS - Checkout Page
   ========================================================================== */

.inprocess-checkout #learn-press-checkout-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1920px;
    margin: 1rem auto;
}

.inprocess-checkout .lp-checkout-form__after {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inprocess-checkout .lp-checkout-form__before {
    flex: 2;
    min-width: 300px;
}

.inprocess-checkout .lp-checkout-form__before #checkout-order {
    position: sticky;
    top: 100px;
}

/* Card Style for Checkout Blocks */
.inprocess-checkout .lp-checkout-block,
.inprocess-checkout .learn-press-checkout-comment {
    background: var(--ip-white);
    border-radius: var(--ip-radius-lg);
    border: 1px solid #e9e9e9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    box-sizing: border-box;
}

.inprocess-checkout h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ip-gray-800);
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ip-gray-200);
}

.inprocess-checkout .lp-form-fields {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inprocess-checkout .form-field label {
    display: block;
    font-weight: 600;
    color: var(--ip-gray-700);
    margin-bottom: 0.5rem;
}

.inprocess-checkout input[type="text"],
.inprocess-checkout input[type="password"],
.inprocess-checkout input[type="email"],
.inprocess-checkout textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--ip-gray-400);
    border-radius: var(--ip-radius-sm);
    box-sizing: border-box;
    transition: border-color var(--ip-transition), box-shadow var(--ip-transition);
}

.inprocess-checkout textarea {
    min-height: 120px;
    resize: vertical;
}

.inprocess-checkout input[type="text"]:focus,
.inprocess-checkout input[type="password"]:focus,
.inprocess-checkout input[type="email"]:focus,
.inprocess-checkout textarea:focus {
    outline: none;
    border-color: var(--ip-primary);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
}

/* Order Summary Table */
.inprocess-checkout #checkout-order table {
    width: 100%;
    border-collapse: collapse;
}

.inprocess-checkout #checkout-order th,
.inprocess-checkout #checkout-order td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--ip-gray-200);
    vertical-align: middle;
}

.inprocess-checkout #checkout-order .course-thumbnail img {
    width: 60px;
    height: auto;
    border-radius: var(--ip-radius-sm);
    margin-right: 10px;
}

.inprocess-checkout #checkout-order .course-name a {
    font-weight: 600;
    color: var(--ip-gray-800);
    text-decoration: none;
}

.inprocess-checkout #checkout-order .course-name a:hover {
    color: var(--ip-primary);
}

.inprocess-checkout #checkout-order .col-number {
    text-align: right;
    font-weight: 600;
}

.inprocess-checkout #checkout-order tfoot th {
    text-align: right;
    padding-right: 1rem;
    font-weight: 500;
    color: var(--ip-gray-700);
}

.inprocess-checkout #checkout-order tfoot .order-total th,
.inprocess-checkout #checkout-order tfoot .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
}

/* Login/Register Tabs */
.inprocess-checkout input[name="checkout-account-switch-form"] {
    display: none;
}

.inprocess-checkout .lp-checkout-sign-in-link,
.inprocess-checkout .lp-checkout-sign-up-link {
    background: var(--ip-primary-light);
    border: 1px solid #b3e0ff;
    border-radius: var(--ip-radius-md);
    padding: 0.85rem;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--ip-gray-800);
    transition: all var(--ip-transition);
}

.inprocess-checkout .lp-checkout-sign-in-link a,
.inprocess-checkout .lp-checkout-sign-up-link a {
    margin-bottom: 1rem;
}

.inprocess-checkout .lp-checkout-sign-in-link label,
.inprocess-checkout .lp-checkout-sign-up-link label {
    color: var(--ip-primary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
}

.inprocess-checkout .lp-checkout-sign-in-link:hover,
.inprocess-checkout .lp-checkout-sign-up-link:hover {
    background: #e6f7ff;
    border-color: var(--ip-primary);
}

.inprocess-checkout .lp-checkout-sign-in-link label:hover,
.inprocess-checkout .lp-checkout-sign-up-link label:hover {
    text-decoration: underline;
}

/* Payment Methods */
.inprocess-checkout .payment-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inprocess-checkout .lp-payment-method {
    border: 1px solid #ddd;
    border-radius: var(--ip-radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.inprocess-checkout .lp-payment-method label {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    margin: 0;
}

.inprocess-checkout .lp-payment-method .gateway-icon {
    margin-left: auto;
    max-width: 100px;
}

.inprocess-checkout .payment-method-form {
    background: #fdfdfd;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

/* Place Order Button */
.inprocess-checkout #learn-press-checkout-place-order {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ip-white);
    background-color: var(--ip-primary);
    border: none;
    border-radius: var(--ip-radius-sm);
    cursor: pointer;
    transition: background-color var(--ip-transition);
}

.inprocess-checkout #learn-press-checkout-place-order:hover {
    background-color: var(--ip-primary-dark);
}

.inprocess-checkout .lp-terms-and-conditions {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-top: 1.5rem;
}

/* Error Message */
.inprocess-checkout .learn-press-message.error {
    width: 100%;
    margin-bottom: 2rem;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1.25rem;
    border-radius: var(--ip-radius-md);
    box-sizing: border-box;
}

.inprocess-checkout .learn-press-message.error a {
    color: #491217;
    font-weight: 700;
    text-decoration: underline;
}

/* ==========================================================================
   11. LEARNPRESS - User Profile
   ========================================================================== */

.inprocess-profile #learn-press-profile > .lp-content-area {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar content";
    grid-template-columns: 280px 1fr;
    grid-gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.inprocess-profile .wrapper-profile-header {
    grid-area: header;
}

.inprocess-profile #profile-sidebar {
    grid-area: sidebar;
}

.inprocess-profile #profile-content {
    grid-area: content;
}

/* Profile Header */
.inprocess-profile .wrapper-profile-header {
    background: var(--ip-white);
    border-radius: var(--ip-radius-lg);
    border: 1px solid #e9e9e9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.inprocess-profile .wrapper-profile-header .lp-content-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.inprocess-profile .user-avatar .avatar {
    border-radius: 50%;
    max-width: 100px;
    border: 4px solid var(--ip-gray-200);
}

.inprocess-profile .lp-profile-username {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ip-gray-800);
    margin: 0;
}

.inprocess-profile .lp-btn-to-edit-avatar,
.inprocess-profile .lp-btn-to-edit-cover-image {
    display: none;
}

/* Profile Sidebar */
.inprocess-profile #profile-sidebar {
    background: var(--ip-white);
    border-radius: var(--ip-radius-lg);
    border: 1px solid #e9e9e9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.inprocess-profile .lp-profile-nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inprocess-profile .lp-profile-nav-tabs a {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    border-radius: var(--ip-radius-md);
    color: var(--ip-gray-700);
    font-weight: 600;
    transition: all var(--ip-transition-fast);
}

.inprocess-profile .lp-profile-nav-tabs i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.inprocess-profile .lp-profile-nav-tabs li.active > a {
    background-color: var(--ip-primary);
    color: var(--ip-white);
}

.inprocess-profile .profile-tab-sections {
    list-style: none;
    padding-left: 2.5rem;
    margin: 0.5rem 0;
}

.inprocess-profile .profile-tab-sections a {
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.inprocess-profile .profile-tab-sections li.active > a {
    background: var(--ip-primary-light);
    color: var(--ip-primary);
}

.inprocess-profile .lp-user-profile .lp-profile-content {
    width: 100%;
}

/* Profile Content */
.inprocess-profile #profile-content {
    background: var(--ip-white);
    border-radius: var(--ip-radius-lg);
    border: 1px solid #e9e9e9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    overflow: hidden;
}

/* Statistics Boxes */
.inprocess-profile #dashboard-statistic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.inprocess-profile .statistic-box {
    background: var(--ip-gray-100);
    border: 1px solid #eee;
    border-radius: var(--ip-radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.inprocess-profile .statistic-box__text {
    display: flex;
    flex-direction: column;
}

.inprocess-profile .statistic-box__text label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777;
}

.inprocess-profile .statistic-box__text__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ip-gray-800);
}

/* Course Filter Tabs */
.inprocess-profile .learn-press-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--ip-gray-200);
    border-radius: var(--ip-radius-md);
    padding: 5px;
    margin-bottom: 2rem;
}

.inprocess-profile .learn-press-filters li {
    list-style: none;
    margin: 0;
    flex-grow: 1;
}

.inprocess-profile .learn-press-filters a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--ip-radius-sm);
    text-decoration: none;
    color: var(--ip-gray-700);
    font-weight: 600;
    text-align: center;
    transition: all var(--ip-transition-fast);
}

.inprocess-profile .learn-press-filters a:hover {
    background: #e0e0e0;
}

.inprocess-profile .learn-press-filters a.active {
    background: var(--ip-white);
    color: var(--ip-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* No Courses Message */
.inprocess-profile .lp-ajax-message {
    text-align: center;
    padding: 3rem;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: var(--ip-radius-md);
    font-size: 1.1rem;
    color: #777;
}

/* ==========================================================================
   12. CUSTOM COURSE GRID (Shortcode: cursos_filtrados)
   ========================================================================== */

/* Grid Container */
body .cursos-grid {
    display: grid !important;
    gap: 30px;
    margin: 40px auto;
    padding: 0 15px;
    max-width: 1200px;
    box-sizing: border-box;
}

body .cursos-grid.cursos-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

body .cursos-grid.cursos-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

body .cursos-grid.cursos-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Course Card */
body .cursos-grid .curso-card {
    background: var(--ip-white);
    border-radius: var(--ip-radius-xl);
    box-shadow: var(--ip-shadow-md);
    overflow: hidden;
    transition: transform var(--ip-transition), box-shadow var(--ip-transition);
    display: flex;
    flex-direction: column;
}

body .cursos-grid .curso-card:hover {
    transform: scale(1.03);
    box-shadow: var(--ip-shadow-xl);
}

/* Course Image */
body .cursos-grid .curso-imagen {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

body .cursos-grid .curso-imagen a {
    display: block;
    height: 100%;
}

body .cursos-grid .curso-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

body .cursos-grid .curso-card:hover .curso-imagen img {
    transform: scale(1.08);
}

/* Course Content */
body .cursos-grid .curso-contenido {
    padding: 22px 25px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Course Title */
body .cursos-grid .curso-titulo {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
    padding: 0;
}

body .cursos-grid .curso-titulo a {
    color: var(--ip-secondary-dark);
    text-decoration: none;
    transition: color var(--ip-transition);
}

body .cursos-grid .curso-titulo a:hover {
    color: var(--ip-secondary);
}

/* Author & Category */
body .cursos-grid .curso-autor {
    font-size: 14px;
    color: var(--ip-gray-600);
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.5;
}

body .cursos-grid .curso-autor a {
    color: var(--ip-secondary);
    text-decoration: none;
    font-weight: 600;
}

body .cursos-grid .curso-autor a:hover {
    text-decoration: underline;
}

/* Course Meta (Lessons & Students) */
body .cursos-grid .curso-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ip-gray-300);
}

body .cursos-grid .curso-lecciones,
body .cursos-grid .curso-estudiantes {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ip-gray-700);
    margin: 0;
    padding: 0;
}

body .cursos-grid .curso-lecciones svg,
body .cursos-grid .curso-estudiantes svg {
    color: var(--ip-secondary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Course Price */
body .cursos-grid .curso-precio {
    font-size: 24px;
    font-weight: 700;
    color: var(--ip-secondary);
    margin: 0 0 20px;
    padding: 0;
}

/* Free Course Price (Green) */
body .cursos-grid .curso-precio.curso-gratis {
    color: var(--ip-success);
}

/* Read More Button */
body .cursos-grid .curso-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    background: transparent;
    color: var(--ip-secondary);
    border: 2px solid var(--ip-secondary);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ip-transition);
    box-sizing: border-box;
    margin-top: auto;
}

body .cursos-grid .curso-btn:hover {
    background: var(--ip-secondary);
    color: var(--ip-white);
}

/* Error & Empty Messages */
body .cursos-error,
body .cursos-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ip-gray-600);
    font-size: 16px;
}

/* ==========================================================================
   13. WHATSAPP BUTTON
   ========================================================================== */

.btn-whatsapp {
    display: inline-block;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: var(--ip-radius-md);
    background-color: #25D366;
    color: var(--ip-white) !important;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--ip-transition);
    box-shadow: var(--ip-shadow-sm);
}

.btn-whatsapp i {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

.btn-whatsapp:hover {
    background-color: #1EBE57;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: var(--ip-shadow-sm);
}

/* ==========================================================================
   LEARNPRESS - Comments Section (Fixed)
   ========================================================================== */

/* Comments section container */
#comment-wrap {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Comments title - remove shadow */
#comment-wrap #comments.page_title,
#comment-wrap h1#comments {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ip-gray-800);
    margin: 0 0 25px;
    padding: 20px 25px;
    background: var(--ip-white);
    border-radius: var(--ip-radius-lg);
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Comment list */
#comment-wrap .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

/* Individual comment */
#comment-wrap .commentlist > li.comment {
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

#comment-wrap .commentlist .comment-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 0 15px;
    background: var(--ip-white);
    padding: 20px;
    border-radius: var(--ip-radius-lg);
    box-shadow: var(--ip-shadow-sm);
}

/* Avatar - Fixed positioning */
#comment-wrap .comment_avatar {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 60px;
    height: 60px;
    float: none !important;
    position: relative !important;
    margin: 0 !important;
}

#comment-wrap .comment_avatar img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
}

/* Comment post info (author, date) */
#comment-wrap .comment_postinfo {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

#comment-wrap .comment_postinfo .fn {
    font-weight: 600;
    color: var(--ip-gray-800);
    font-size: 1rem;
}

#comment-wrap .comment_postinfo .fn a {
    color: var(--ip-gray-800);
    text-decoration: none;
}

#comment-wrap .comment_postinfo .comment_date {
    font-size: 0.85rem;
    color: var(--ip-gray-500);
}

#comment-wrap .comment_postinfo .comment-edit-link {
    font-size: 0.85rem;
    color: var(--ip-primary);
    text-decoration: none;
}

/* Comment content area */
#comment-wrap .comment_area {
    grid-row: 2;
    grid-column: 2;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

#comment-wrap .comment-content {
    color: var(--ip-gray-700);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 8px 0 0;
}

#comment-wrap .comment-content p {
    margin: 0;
}

/* Reply link */
#comment-wrap .reply-container {
    display: block;
    margin-top: 10px;
}

#comment-wrap .comment-reply-link {
    font-size: 0.85rem !important;
    color: var(--ip-primary) !important;
    text-decoration: none !important;
    font-weight: 600;
    padding: 0 !important;
    margin: 1em;
    background: none !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#comment-wrap .comment-reply-link:hover {
    text-decoration: underline !important;
}

/* Remove Divi button styles from reply link */
#comment-wrap .comment-reply-link.et_pb_button {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

#comment-wrap .comment-reply-link.et_pb_button:after {
    display: none !important;
}

/* ==========================================================================
   LEARNPRESS - Comment Form (Fixed)
   ========================================================================== */

#comment-wrap #respond {
    background: var(--ip-white);
    padding: 25px;
    border-radius: var(--ip-radius-lg);
    box-shadow: var(--ip-shadow-sm);
}

#comment-wrap .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ip-gray-800);
    margin: 0 0 20px;
}

#comment-wrap .comment-form-comment {
    margin: 0 0 20px;
}

#comment-wrap .comment-form-comment label {
    display: none;
}

#comment-wrap #comment {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--ip-gray-300);
    border-radius: var(--ip-radius-sm);
    box-sizing: border-box;
    transition: border-color var(--ip-transition), box-shadow var(--ip-transition);
    background: var(--ip-gray-100);
    min-height: 150px;
    resize: vertical;
}

#comment-wrap #comment:focus {
    outline: none;
    border-color: var(--ip-primary);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
    background: var(--ip-white);
}

/* Submit button */
#comment-wrap .form-submit {
    margin: 0;
    text-align: right;
}

#comment-wrap #submit {
    display: inline-block;
    padding: 14px 30px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    color: var(--ip-white) !important;
    background-color: var(--ip-primary) !important;
    border: none !important;
    border-radius: var(--ip-radius-sm) !important;
    cursor: pointer;
    transition: background-color var(--ip-transition), transform var(--ip-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#comment-wrap #submit:hover {
    background-color: var(--ip-primary-dark) !important;
    transform: translateY(-2px);
}

/* Remove Divi button arrow */
#comment-wrap #submit.et_pb_button:after {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE - Comments (Fixed)
   ========================================================================== */

@media screen and (max-width: 576px) {
    #comment-wrap {
        padding: 0 10px;
    }
    
    #comment-wrap .commentlist .comment-body {
        grid-template-columns: 50px 1fr;
        padding: 15px;
    }
    
    #comment-wrap .comment_avatar,
    #comment-wrap .comment_avatar img {
        width: 50px !important;
        height: 50px !important;
    }
    
    #comment-wrap #respond {
        padding: 20px 15px;
    }
    
    #comment-wrap #submit {
        width: 100%;
    }
}



/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 850px) {
    .inprocess-checkout-wrapper {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .inprocess-checkout-summary {
        position: static;
        order: -1;
    }
}

@media screen and (max-width: 500px) {
    .inprocess-checkout-main {
        padding: 20px 15px;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .inprocess-payment-qr img {
        max-width: 160px !important;
    }
}

/* Hide original LP checkout elements we don't need */
#learn-press-checkout > .learn-press-message.error {
    display: none;
}
.learn-press-checkout-comment {
    display:none !important;
}



/* ==========================================================================
   15. RESPONSIVE STYLES
   ========================================================================== */

/* Tablet Large (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    body .cursos-grid.cursos-col-3,
    body .cursos-grid.cursos-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    body .cursos-grid {
        gap: 25px;
        padding: 0 20px;
    }
}

/* Tablet (max-width: 980px) */
@media screen and (max-width: 980px) {
    /* Checkout: Stack columns */
    .inprocess-checkout #learn-press-checkout-form {
        flex-direction: column;
    }

    .inprocess-checkout .lp-checkout-form__before {
        order: -1;
        position: static;
    }

    /* Profile: Stack layout */
    .inprocess-profile #learn-press-profile > .lp-content-area {
        grid-template-areas:
            "header"
            "sidebar"
            "content";
        grid-template-columns: 1fr;
    }
}

/* Tablet Small (max-width: 768px) */
@media screen and (max-width: 768px) {
    body .cursos-grid {
        gap: 20px;
        padding: 0 15px;
    }

    body .cursos-grid .curso-imagen {
        height: 180px;
    }

    body .cursos-grid .curso-contenido {
        padding: 18px 20px 22px;
    }

    body .cursos-grid .curso-titulo {
        font-size: 18px;
    }

    body .cursos-grid .curso-precio {
        font-size: 22px;
    }
}

/* Mobile (max-width: 576px) - Single centered card */
@media screen and (max-width: 576px) {
    body .cursos-grid,
    body .cursos-grid.cursos-col-2,
    body .cursos-grid.cursos-col-3,
    body .cursos-grid.cursos-col-4 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    body .cursos-grid .curso-imagen {
        height: 200px;
    }

    body .cursos-grid .curso-card:hover {
        transform: scale(1.02);
    }

    body .cursos-grid .curso-diagonal {
        width: 70px;
        height: 70px;
    }
}

/* Mobile Small (max-width: 400px) */
@media screen and (max-width: 400px) {
    body .cursos-grid,
    body .cursos-grid.cursos-col-2,
    body .cursos-grid.cursos-col-3,
    body .cursos-grid.cursos-col-4 {
        max-width: 100%;
        padding: 0 10px;
    }
}