/* ==========================================================================
   ALM Frontend Styles - Precios Mayoristas y Mensajes de Mínimo
   ========================================================================== */

/* Vista de precio en USD (single product, debajo del precio) */
.alm-usd-price-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 0;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);
    border-left: 3px solid #2e7d32;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
}
.alm-usd-price-wrapper .alm-usd-label {
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.alm-usd-price-wrapper .alm-usd-price {
    color: #1b5e20;
    font-weight: 700;
    font-size: 14px;
}
.alm-usd-price-wrapper .alm-usd-rate {
    color: #888;
    font-size: 11px;
    margin-left: auto;
}

/* Wrapper del precio */
.alm-price-wrapper {
    line-height: 1.4;
}

.alm-price-wrapper .alm-regular-price {
    color: #666;
    font-size: 0.95em;
}

/* Fila del precio mayorista */
.alm-wholesale-price-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Label "Precio Mayorista:" */
.alm-wholesale-label {
    font-weight: 600;
    color: #2e7d32;
    font-size: 0.9em;
}

/* Precio mayorista */
.alm-wholesale-price {
    font-size: 1.15em;
    font-weight: 700;
    color: #2e7d32;
}

.alm-wholesale-price .woocommerce-Price-amount {
    color: #2e7d32;
}

/* Badge de descuento */
.alm-discount-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

/* ============================
   Productos en loop/archivo
   ============================ */
.products .alm-price-wrapper .alm-regular-price {
    font-size: 0.85em;
}

.products .alm-wholesale-price-row {
    margin-top: 4px;
}

.products .alm-wholesale-price {
    font-size: 1em;
}

.products .alm-discount-badge {
    font-size: 0.7em;
}

/* ============================
   Producto individual
   ============================ */
.single-product .alm-price-wrapper .alm-regular-price {
    font-size: 1.1em;
}

.single-product .alm-wholesale-price {
    font-size: 1.4em;
}

.single-product .alm-discount-badge {
    font-size: 0.85em;
    padding: 3px 10px;
}

/* ============================
   Carrito - item data
   ============================ */
.cart_item .variation dt {
    font-weight: 600;
}

/* ============================
   Barra de progreso mayorista
   ============================ */
.alm-progress-wrapper {
    margin-bottom: 24px !important;
    padding: 20px 24px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Estado: pendiente */
.alm-progress--pending {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%) !important;
    border: 1px solid #ffcc80 !important;
}

/* Estado: completo */
.alm-progress--complete {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%) !important;
    border: 1px solid #a5d6a7 !important;
}

/* Header */
.alm-progress-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    font-size: 15px !important;
}

.alm-progress-icon {
    font-size: 20px !important;
    line-height: 1 !important;
}

.alm-progress--complete .alm-progress-icon {
    color: #2e7d32 !important;
    font-weight: 700 !important;
}

.alm-progress-title {
    color: #333 !important;
}

.alm-progress--pending .alm-progress-title {
    color: #e65100 !important;
}

.alm-progress--complete .alm-progress-title {
    color: #2e7d32 !important;
    font-weight: 600 !important;
}

/* Barra de progreso */
.alm-progress-bar {
    width: 100% !important;
    height: 26px !important;
    background: #e0e0e0 !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
    display: block !important;
}

.alm-progress-fill {
    height: 100% !important;
    border-radius: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 12px !important;
    transition: width 0.6s ease !important;
    min-width: 0 !important;
}

.alm-progress--pending .alm-progress-fill {
    background: linear-gradient(90deg, #ffb74d, #ff9800) !important;
}

.alm-progress--complete .alm-progress-fill {
    background: linear-gradient(90deg, #66bb6a, #43a047) !important;
}

.alm-progress-pct {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
    white-space: nowrap !important;
}

/* Footer (actual / mínimo) */
.alm-progress-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #666 !important;
}

.alm-progress-footer strong {
    color: #333 !important;
}

.alm-progress-detail {
    color: #e65100 !important;
    font-weight: 600 !important;
}

/* Lista de errores por producto */
.alm-progress-errors {
    margin: 10px 0 0 !important;
    padding: 10px 16px 10px 32px !important;
    background: rgba(230,81,0,0.06) !important;
    border-radius: 8px !important;
    list-style: disc !important;
    font-size: 13px !important;
    color: #bf360c !important;
}

.alm-progress-errors li {
    margin: 3px 0 !important;
}

/* ============================
   Responsive
   ============================ */
@media screen and (max-width: 600px) {
    .alm-wholesale-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .single-product .alm-wholesale-price {
        font-size: 1.2em;
    }

    .alm-progress-wrapper {
        padding: 16px;
    }

    .alm-progress-header {
        font-size: 13px;
    }

    .alm-progress-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .alm-progress-bar {
        height: 22px;
    }
}

/* ==========================================================================
   Mi Cuenta - Rediseño completo (Shortcode [alm_mi_cuenta])
   ========================================================================== */

/* Container */
.alm-myaccount {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Cards base */
.alm-myaccount-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.alm-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding: 0;
}

.alm-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.alm-card-header-row .alm-card-title {
    margin-bottom: 0;
}

/* ============================
   Top section: Grid 2 columnas
   ============================ */
.alm-myaccount-top {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-bottom: 20px;
}

/* Profile Card */
.alm-profile-card {
    margin-bottom: 0;
}

.alm-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.alm-profile-avatar {
    flex-shrink: 0;
}

.alm-profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.alm-profile-info {
    flex: 1;
}

.alm-profile-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #111;
    letter-spacing: 0.3px;
}

.alm-profile-company {
    font-size: 14px;
    color: #666;
    margin: 0 0 2px 0;
}

.alm-profile-client-num {
    font-size: 14px;
    color: #888;
    margin: 0 0 10px 0;
}

.alm-profile-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.alm-profile-actions {
    margin-top: 12px;
}

/* Seller Card */
.alm-seller-card {
    margin-bottom: 0;
}

.alm-seller-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.alm-seller-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.alm-seller-photo-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.alm-seller-details {
    flex: 1;
}

.alm-seller-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #111;
}

.alm-seller-email {
    font-size: 13px;
    color: #666;
    margin: 0 0 2px 0;
}

.alm-seller-phone {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.alm-seller-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alm-btn-seller {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #333;
    transition: all 0.2s;
    cursor: pointer;
}

.alm-btn-seller:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #333;
    text-decoration: none;
}

.alm-btn-whatsapp {
    color: #25d366;
    border-color: #25d36640;
}

.alm-btn-whatsapp:hover {
    background: #25d3660d;
    color: #25d366;
}

.alm-btn-call {
    color: #333;
}

.alm-btn-email {
    color: #333;
}

/* ============================
   Data Grid
   ============================ */
.alm-data-card {
    padding: 28px 32px;
}

.alm-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.alm-data-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.alm-data-item:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}

.alm-data-item-wide {
    grid-column: 1 / -1;
    border-right: none !important;
}

.alm-data-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f7f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alm-data-content {
    flex: 1;
    min-width: 0;
}

.alm-data-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
    word-break: break-word;
}

.alm-data-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    text-transform: capitalize;
}

/* Edit button */
.alm-edit-btn {
    background: none;
    border: none;
    color: #f47920;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
}

.alm-edit-btn:hover {
    color: #d4691a;
    text-decoration: underline;
}

/* ============================
   Addresses
   ============================ */
.alm-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.alm-address-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
}

.alm-address-card p {
    margin: 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

/* ============================
   Orders Table
   ============================ */
.alm-orders-table-wrap {
    overflow-x: auto;
}

.alm-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.alm-orders-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f0f0f0;
}

.alm-orders-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.alm-orders-table tbody tr:hover {
    background: #f9fafb;
}

.alm-orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* Order status badge */
.alm-order-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================
   Buttons
   ============================ */
.alm-btn-sm {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #f47920;
    background: transparent;
    border: 1px solid #f47920;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.alm-btn-sm:hover {
    background: #f47920;
    color: #fff;
    text-decoration: none;
}

.alm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.alm-btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #333;
    text-decoration: none;
}

.alm-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #f47920;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.alm-btn-accent:hover {
    background: #d4691a;
    color: #fff;
    text-decoration: none;
}

/* Orders "load more" */
.alm-orders-more {
    text-align: center;
    padding: 16px 0 0;
}

/* ============================
   Footer / Logout
   ============================ */
.alm-myaccount-footer {
    text-align: center;
    padding: 20px 0 40px;
}

.alm-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #dc2626;
    background: #fff;
    border: 1px solid #fecaca;
    text-decoration: none;
    transition: all 0.2s;
}

.alm-btn-logout:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
    text-decoration: none;
}

/* ============================
   Solicitud Cuenta Mayorista
   ============================ */
.alm-wholesale-request-card {
    border: 2px dashed #f4792050;
    background: linear-gradient(135deg, #fffaf5 0%, #fff7f0 100%);
}

.alm-wholesale-request-invite .alm-wholesale-request-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.alm-wholesale-request-header .alm-wholesale-request-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f4792015;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alm-wholesale-request-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.alm-wholesale-request-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.alm-wholesale-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.alm-wholesale-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.alm-wholesale-form-field label small {
    font-weight: 400;
    color: #999;
}

.alm-wholesale-form-field input,
.alm-wholesale-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.alm-wholesale-form-field input:focus,
.alm-wholesale-form-field textarea:focus {
    outline: none;
    border-color: #f47920;
    box-shadow: 0 0 0 3px #f4792020;
}

.alm-wholesale-form-field-wide {
    grid-column: 1 / -1;
}

.alm-wholesale-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alm-btn-wholesale-submit {
    padding: 12px 28px !important;
    font-size: 15px !important;
}

.alm-wholesale-request-msg {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.alm-wholesale-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Solicitud enviada con éxito */
.alm-wholesale-request-success {
    text-align: center;
    padding: 30px 20px;
}

.alm-wholesale-request-success svg {
    margin-bottom: 12px;
}

.alm-wholesale-request-success h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2e7d32;
}

.alm-wholesale-request-success p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Solicitud pendiente */
.alm-wholesale-request-pending,
.alm-wholesale-request-rejected {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.alm-wholesale-request-pending .alm-wholesale-request-icon,
.alm-wholesale-request-rejected .alm-wholesale-request-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alm-wholesale-request-pending .alm-wholesale-request-icon {
    background: #fff3e0;
}

.alm-wholesale-request-rejected .alm-wholesale-request-icon {
    background: #fef2f2;
}

.alm-wholesale-request-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.alm-wholesale-request-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Empty text */
.alm-empty-text {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 14px;
}

/* ============================
   Field edit modal
   ============================ */
.alm-field-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alm-field-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    min-width: 360px;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.alm-field-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

.alm-field-modal-close:hover {
    color: #333;
}

.alm-field-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
}

.alm-field-modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.alm-field-modal-input:focus {
    outline: none;
    border-color: #f47920;
    box-shadow: 0 0 0 3px #f4792020;
}

.alm-field-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ============================
   Responsive Mi Cuenta
   ============================ */
@media screen and (max-width: 768px) {
    .alm-myaccount-top {
        grid-template-columns: 1fr;
    }

    .alm-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .alm-profile-actions {
        text-align: center;
    }

    .alm-data-grid {
        grid-template-columns: 1fr;
    }

    .alm-data-item:nth-child(odd) {
        border-right: none;
    }

    .alm-myaccount-card {
        padding: 20px 16px;
    }

    .alm-orders-table thead {
        display: none;
    }

    .alm-orders-table tbody tr {
        display: block;
        padding: 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .alm-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: none;
    }

    .alm-orders-table tbody td::before {
        content: attr(data-label);
        font-size: 12px;
        color: #888;
        font-weight: 600;
    }

    .alm-seller-buttons {
        flex-direction: column;
    }

    .alm-btn-seller {
        justify-content: center;
    }

    .alm-field-modal-content {
        min-width: auto;
        margin: 16px;
    }

    .alm-card-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .alm-wholesale-form-grid {
        grid-template-columns: 1fr;
    }

    .alm-wholesale-request-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .alm-wholesale-request-pending,
    .alm-wholesale-request-rejected {
        flex-direction: column;
        text-align: center;
    }

    .alm-cta-wholesale-inner {
        flex-direction: column;
        text-align: center;
    }

    .alm-cta-wholesale-icon {
        margin: 0 auto 12px;
    }

    .alm-accordion-arrow {
        margin-top: 8px;
    }
}

/* ============================
   CTA + Acordeón: Quiero ser mayorista
   ============================ */
.alm-cta-wholesale-card {
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
    border: 2px dashed #f4992055;
    margin-top: 16px;
}

.alm-cta-wholesale-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.alm-cta-wholesale-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(244, 121, 32, 0.15);
}

.alm-cta-wholesale-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.alm-cta-wholesale-text {
    margin: 0 0 0 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Acordeón toggle */
.alm-accordion-toggle {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.alm-accordion-toggle:hover .alm-cta-wholesale-title {
    color: #f47920;
}

.alm-accordion-arrow {
    flex-shrink: 0;
    color: #f47920;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.alm-accordion-toggle[aria-expanded="true"] .alm-accordion-arrow {
    transform: rotate(180deg);
}

/* Acordeón body */
.alm-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.alm-accordion-body.alm-accordion-open {
    max-height: 600px;
    padding-top: 24px;
}

/* ============================
   Landing: Ser Mayorista
   [alm_ser_mayorista] shortcode
   ============================ */
.alm-landing-mayorista {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hero */
.alm-landing-hero {
    text-align: center;
    padding: 48px 20px 40px;
}

.alm-landing-hero-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff8f0, #fff3e6);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(244, 121, 32, 0.15);
}

.alm-landing-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.alm-landing-hero-subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

/* Beneficios */
.alm-landing-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.alm-landing-benefit {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.alm-landing-benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.alm-landing-benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8f0;
    border-radius: 14px;
}

.alm-landing-benefit h3 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.alm-landing-benefit p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Pasos */
.alm-landing-steps {
    margin-bottom: 48px;
}

.alm-landing-section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 28px 0;
}

.alm-landing-steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.alm-landing-step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    flex: 1;
    max-width: 240px;
}

.alm-landing-step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f47920, #f59e4c);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
}

.alm-landing-step h4 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px 0;
}

.alm-landing-step p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.alm-landing-step-arrow {
    flex-shrink: 0;
    opacity: 0.5;
}

/* Form section */
.alm-landing-form-section {
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
    border: 2px dashed #f4992055;
    border-radius: 16px;
    padding: 40px 36px;
    margin-bottom: 32px;
}

.alm-landing-form-intro {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin: -12px 0 28px 0;
    line-height: 1.5;
}

.alm-landing-wholesale-form .alm-wholesale-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.alm-landing-wholesale-form .alm-wholesale-form-field input,
.alm-landing-wholesale-form .alm-wholesale-form-field textarea {
    background: #fff;
}

.alm-btn-landing-submit {
    padding: 14px 32px !important;
    font-size: 16px !important;
}

.alm-landing-form-msg {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.alm-required {
    color: #dc2626;
    font-weight: 700;
}

/* Status blocks */
.alm-landing-status {
    text-align: center;
    padding: 36px 20px;
}

.alm-landing-status svg {
    margin-bottom: 16px;
}

.alm-landing-status h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.alm-landing-status p {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.alm-landing-status p a {
    color: #f47920;
    font-weight: 600;
    text-decoration: none;
}

.alm-landing-status p a:hover {
    text-decoration: underline;
}

.alm-landing-status-success h3 { color: #2e7d32; }
.alm-landing-status-pending h3 { color: #f47920; }
.alm-landing-status-rejected h3 { color: #dc2626; }

/* Footer note */
.alm-landing-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.alm-landing-footer-note a {
    color: #f47920;
    font-weight: 600;
    text-decoration: none;
}

.alm-landing-footer-note a:hover {
    text-decoration: underline;
}

/* Responsive Landing */
@media screen and (max-width: 768px) {
    .alm-landing-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .alm-landing-steps-grid {
        flex-direction: column;
    }

    .alm-landing-step {
        max-width: 100%;
        width: 100%;
    }

    .alm-landing-step-arrow {
        transform: rotate(90deg);
    }

    .alm-landing-form-section {
        padding: 28px 20px;
    }

    .alm-landing-wholesale-form .alm-wholesale-form-grid {
        grid-template-columns: 1fr;
    }

    .alm-landing-hero-title {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .alm-landing-benefits {
        grid-template-columns: 1fr;
    }

    .alm-landing-hero {
        padding: 32px 12px 28px;
    }
}

/* ============================
   Tracking: Seguimiento mayorista
   [alm_seguimiento_mayorista]
   ============================ */
.alm-tracking-page {
    max-width: 720px;
}

.alm-tracking-hero {
    text-align: center;
    padding: 40px 20px 32px;
}

.alm-tracking-check {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    border-radius: 50%;
}

.alm-tracking-check-info {
    background: #fff3e0;
}

.alm-tracking-title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px 0;
}

.alm-tracking-subtitle {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Data card */
.alm-tracking-data-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 28px 24px;
    margin-bottom: 28px;
}

.alm-tracking-data-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.alm-tracking-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.alm-tracking-data-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alm-tracking-data-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alm-tracking-data-value {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

.alm-tracking-status-badge {
    display: inline-block;
    background: #fff3e0;
    color: #f47920;
    font-weight: 600;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 6px;
    width: fit-content;
}

.alm-tracking-message {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.alm-tracking-message p {
    font-size: 14px;
    color: #444;
    margin: 4px 0 0 0;
    line-height: 1.5;
}

/* Next steps */
.alm-tracking-next-steps {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
}

.alm-tracking-next-steps h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
}

.alm-tracking-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.alm-tracking-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.alm-tracking-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 32px;
    bottom: -4px;
    width: 2px;
    background: #e0e0e0;
}

.alm-tracking-step-done:not(:last-child)::after {
    background: #2e7d32;
}

.alm-tracking-step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #e0e0e0;
    margin-top: 2px;
}

.alm-tracking-step-done .alm-tracking-step-dot {
    background: #2e7d32;
}

.alm-tracking-step-active .alm-tracking-step-dot {
    background: #f47920;
    box-shadow: 0 0 0 4px #f4792030;
}

.alm-tracking-step-item strong {
    font-size: 14px;
    color: #333;
}

.alm-tracking-step-item p {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0 0;
}

/* Actions */
.alm-tracking-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 20px;
}

.alm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #f47920;
    background: #fff;
    border: 2px solid #f47920;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.alm-btn-outline:hover {
    background: #fff8f0;
    color: #f47920;
    text-decoration: none;
}

/* Responsive tracking */
@media screen and (max-width: 768px) {
    .alm-tracking-data-grid {
        grid-template-columns: 1fr;
    }

    .alm-tracking-data-card,
    .alm-tracking-next-steps {
        padding: 20px 16px;
    }

    .alm-tracking-actions {
        flex-direction: column;
    }

    .alm-tracking-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
