/* ----------------------------------------------------------------------
 *  Account / Auth components (login, register, dashboard, address, orders)
 * ---------------------------------------------------------------------- */
@layer components {
    .elg-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.25em;
        font-size: 0.6875rem;
        font-weight: 500;
        color: rgb(20 24 51 / 0.55);
        margin-bottom: 1.25rem;
    }
    .elg-eyebrow::after {
        content: "";
        display: inline-block;
        width: 28px;
        height: 1px;
        background: rgb(20 24 51 / 0.4);
    }

    .elg-display {
        font-size: clamp(2.25rem, 4.5vw, 3.5rem);
        font-weight: 300;
        letter-spacing: -0.02em;
        line-height: 1.05;
        color: rgb(20 24 51);
    }
    .elg-display--xl {
        font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    }

    .elg-form-input {
        width: 100%;
        background: transparent;
        border: 0;
        border-bottom: 1px solid rgb(20 24 51 / 0.25);
        padding: 0.625rem 0;
        font-size: 1rem;
        color: rgb(20 24 51);
        outline: none;
        transition: border-color 0.2s ease;
    }
    .elg-form-input:focus { border-bottom-color: rgb(20 24 51); }

    .elg-form-label {
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.6875rem;
        font-weight: 500;
        color: rgb(20 24 51 / 0.55);
        margin-bottom: 0.5rem;
    }

    .elg-btn {
        display: inline-block;
        padding: 18px 32px;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.8125rem;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid transparent;
        line-height: 1.2;
    }

    .elg-btn--primary {
        background-color: rgb(20 24 51);
        color: var(--color-on-primary);
        border-color: rgb(20 24 51);
    }
    .elg-btn--primary:hover { opacity: 0.85; color: var(--color-on-primary); }
    .elg-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

    .elg-btn--outline {
        background-color: transparent;
        color: rgb(20 24 51);
        border-color: rgb(20 24 51);
    }
    .elg-btn--outline:hover { background: rgb(20 24 51); color: var(--color-on-primary); }

    .elg-btn--block { display: block; width: 100%; }

    .elg-link {
        color: rgb(20 24 51);
        text-decoration: underline;
        text-underline-offset: 4px;
        transition: opacity 0.2s ease;
    }
    .elg-link:hover { opacity: 0.6; }
    .elg-link--muted { color: rgb(20 24 51 / 0.7); }

    .elg-rule {
        height: 1px;
        background: rgb(20 24 51 / 0.15);
        margin: 2rem 0;
        border: 0;
    }

    .elg-account-tile {
        position: relative;
        background: var(--color-bg);
        padding: 2.5rem;
        transition: background-color 0.2s ease;
        text-decoration: none;
        color: rgb(20 24 51);
        display: block;
    }
    .elg-account-tile:hover { background: rgb(20 24 51 / 0.03); }
    .elg-account-tile-num {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 0.6875rem;
        letter-spacing: 0.2em;
        color: rgb(20 24 51 / 0.3);
        font-weight: 300;
    }
    .elg-account-tile-icon { color: rgb(20 24 51); margin-bottom: 1.5rem; }
    .elg-account-tile-title {
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.875rem;
        font-weight: 500;
        color: rgb(20 24 51);
        margin-bottom: 0.5rem;
    }
    .elg-account-tile-desc {
        font-size: 0.875rem;
        color: rgb(20 24 51 / 0.6);
        margin-bottom: 1.5rem;
    }
    .elg-account-tile-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.6875rem;
        font-weight: 500;
        color: rgb(20 24 51);
    }
    .elg-account-tile-cta::after {
        content: "";
        display: block;
        width: 24px;
        height: 1px;
        background: currentColor;
        transition: width 0.25s ease;
    }
    .elg-account-tile:hover .elg-account-tile-cta::after { width: 40px; }

    .elg-account-grid-tiles {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1px;
        background: rgb(20 24 51 / 0.15);
        border-block: 1px solid rgb(20 24 51 / 0.15);
    }
    @media (min-width: 640px)  { .elg-account-grid-tiles { grid-template-columns: 1fr 1fr; } }
    @media (min-width: 1024px) { .elg-account-grid-tiles { grid-template-columns: repeat(4, 1fr); } }

    .elg-section-title {
        text-transform: uppercase;
        letter-spacing: 0.22em;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgb(20 24 51);
    }

    /* ------------------------------------------------------------------
     *  Auth split layout — login / register / forgot password
     *  Diseño devlab:studio pág. 2-5: foto a la izquierda + form a la derecha.
     * ------------------------------------------------------------------ */
    .elg-account-split {
        display: grid;
        grid-template-columns: 1fr;
        min-height: calc(100vh - 80px);
    }
    @media (min-width: 768px) {
        .elg-account-split { grid-template-columns: 1fr 1fr; }
    }

    .elg-account-side {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 320px;
    }
    @media (min-width: 768px) {
        .elg-account-side { min-height: 100%; }
    }

    .elg-account-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem 1.5rem;
    }
    @media (min-width: 1024px) {
        .elg-account-panel { padding: 4rem 3rem; }
    }

    .elg-account-panel-inner {
        width: 100%;
        max-width: 26rem;
    }

    .elg-account-mark {
        display: block;
        width: 56px;
        height: 74px;
        margin: 0 auto 1.5rem;
        color: rgb(20 24 51);
    }

    .elg-account-title {
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 1.75rem;
        font-weight: 500;
        line-height: 1.1;
        color: rgb(20 24 51);
        margin-bottom: 2.5rem;
    }

    .elg-account-intro {
        text-align: center;
        font-size: 0.875rem;
        line-height: 1.6;
        color: rgb(20 24 51 / 0.7);
        margin-bottom: 2rem;
    }

    .elg-account-form .elg-account-field { margin-bottom: 1.5rem; }
    .elg-account-form .elg-account-field .elg-form-input {
        border: 1px solid rgb(20 24 51 / 0.25);
        padding: 0.95rem 1rem;
    }
    .elg-account-form .elg-account-field .elg-form-input:focus {
        border-color: rgb(20 24 51);
        border-bottom-color: rgb(20 24 51);
    }
    .elg-account-form .elg-account-field select.elg-form-input {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23141833'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06 0L10 10.94l3.71-3.73a.75.75 0 011.08 1.04l-4.25 4.27a.75.75 0 01-1.08 0L5.23 8.25a.75.75 0 010-1.04z' clip-rule='evenodd'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.85rem center;
        background-size: 1.1rem;
        padding-right: 2.6rem;
    }

    /* Checkboxes legales / newsletter */
    .elg-account-checks { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
    .elg-account-check {
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
        font-size: 0.8125rem;
        line-height: 1.5;
        color: rgb(20 24 51 / 0.85);
        cursor: pointer;
    }
    .elg-account-check input[type="checkbox"] {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        margin-top: 0.15rem;
        accent-color: rgb(20 24 51);
    }

    .elg-account-forgot {
        font-size: 0.8125rem;
        margin: -0.5rem 0 1.5rem;
    }

    .elg-account-submit { margin-top: 1rem; }

    /* Face ID (solo app iOS, Magento_Customer/templates/form/login.phtml) */
    .elg-account-faceid { margin-top: 1rem; }
    .elg-account-faceid[hidden] { display: none; }
    .elg-account-faceid-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
    .elg-account-faceid-btn:disabled { opacity: 0.6; cursor: wait; }
    .elg-account-social { margin-top: 1.75rem; text-align: center; }
    .elg-account-social-label {
        font-size: 0.8125rem;
        color: rgb(20 24 51 / 0.7);
        margin-bottom: 0.75rem;
    }

    .elg-social-row {
        display: inline-flex;
        gap: 1.25rem;
        justify-content: center;
        align-items: center;
    }
    .elg-social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        color: rgb(20 24 51);
        border-radius: 50%;
        transition: transform 0.2s ease, color 0.2s ease;
    }
    .elg-social-icon svg { width: 22px; height: 22px; }
    .elg-social-icon:hover { transform: translateY(-1px); color: rgb(20 24 51 / 0.75); }

    .elg-account-rule { margin: 3rem 0 2rem; }

    .elg-account-new { text-align: center; }
    .elg-account-new-eyebrow {
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 1.25rem;
        color: rgb(20 24 51);
    }
    .elg-account-new-btn { max-width: 100%; }

    .elg-account-usp {
        margin-top: 2rem;
        font-size: 0.8125rem;
        line-height: 1.6;
        color: rgb(20 24 51 / 0.7);
    }
    .elg-account-usp p { margin-bottom: 0.75rem; }
    .elg-account-usp p:last-child { margin-bottom: 0; }

    /* ------------------------------------------------------------------
     *  Dashboard "Mi perfil" — banner + sidebar + panel
     *  Diseño devlab pág. 6
     * ------------------------------------------------------------------ */
    .elg-acct-banner {
        background: rgb(20 24 51);
        color: var(--color-on-primary);
        padding: 1.5rem 1rem;
        width: 100%;
    }
    @media (min-width: 640px) { .elg-acct-banner { padding: 1.75rem 1.5rem; } }
    @media (max-width: 1023px) { .elg-acct-banner--desktop-only { display: none; } }
    @media (min-width: 1536px) { .elg-acct-banner { padding: 2rem 5rem; } }

    .elg-acct-banner-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: center;
        max-width: 100rem;
        margin: 0 auto;
    }
    @media (min-width: 768px) {
        .elg-acct-banner-grid {
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 22rem);
            gap: 2rem;
        }
    }

    .elg-acct-banner-id { display: flex; align-items: center; gap: 1rem; }
    .elg-acct-banner-mark { width: 42px; height: 54px; color: var(--color-on-primary); flex-shrink: 0; }
    .elg-acct-banner-title {
        font-size: 1.5rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1.1;
    }
    .elg-acct-banner-sub {
        font-size: 0.8125rem;
        opacity: 0.85;
        margin-top: 0.25rem;
    }

    .elg-acct-banner-points {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        align-items: flex-start;
    }
    @media (min-width: 768px) {
        .elg-acct-banner-points { align-items: center; text-align: center; }
    }
    .elg-acct-banner-points-text { font-size: 0.875rem; opacity: 0.95; }
    .elg-acct-banner-points-btn {
        display: inline-block;
        padding: 0.7rem 1.5rem;
        background: var(--color-bg);
        color: rgb(20 24 51);
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.6875rem;
        font-weight: 500;
        text-decoration: none;
        transition: opacity 0.2s ease;
    }
    .elg-acct-banner-points-btn:hover { opacity: 0.85; }

    /* Bloque "Invita": vídeo de fondo recortado (object-fit: cover, solo se ve una parte),
       con la frase arriba y el botón blanco abajo encima del vídeo. */
    .elg-acct-banner-invite {
        position: relative;
        display: flex;
        min-height: 9rem;
        text-decoration: none;
        color: var(--color-on-primary);
        overflow: hidden;
    }
    .elg-acct-banner-invite-photo {
        position: absolute;
        inset: 0;
        overflow: hidden;
        background-color: rgb(20 24 51 / 0.6);
    }
    .elg-acct-banner-invite-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .elg-acct-banner-invite-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgb(20 24 51 / 0.45), rgb(20 24 51 / 0.1));
    }
    .elg-acct-banner-invite-body {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        padding: 1.25rem 1.25rem 0.75rem;
    }
    .elg-acct-banner-invite-headline {
        max-width: 13rem;
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        line-height: 1.35;
        margin-bottom: 0.75rem;
        text-transform: uppercase;
    }
    .elg-acct-banner-invite-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.55rem 1rem;
        background: var(--color-bg);
        color: rgb(20 24 51);
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-weight: 500;
        transition: opacity 0.2s ease;
    }
    .elg-acct-banner-invite:hover .elg-acct-banner-invite-cta { opacity: 0.85; }

    /* Móvil: el bloque "Invita" sale del fondo azul, a todo el ancho con un marco blanco. */
    @media (max-width: 767px) {
        .elg-acct-banner { padding-bottom: 0; }
        .elg-acct-banner-grid { gap: 1.5rem; }
        .elg-acct-banner-points-text { font-size: 1rem; }
        .elg-acct-banner-points-btn {
            min-width: 13rem;
            padding: 0.9rem 1.5rem;
            text-align: center;
            font-size: 0.75rem;
        }
        .elg-acct-banner-invite {
            margin: 0 -1rem;
            padding: 0.75rem;
            background: var(--color-bg);
        }
        .elg-acct-banner-invite-photo { inset: 0.75rem; }
        .elg-acct-banner-invite-headline { max-width: 16rem; font-size: 0.875rem; }
        .elg-acct-banner-invite-cta { padding: 0.75rem 1.5rem; font-size: 0.75rem; }
    }

    /* Escritorio: tres columnas (identidad | puntos centrados | tarjeta "Invita" a la derecha),
       la tarjeta dentro del fondo azul con un poco de margen alrededor. */
    @media (min-width: 1024px) {
        .elg-acct-banner { padding: 1.25rem 2.5rem 1.25rem 3.5rem; }
        .elg-acct-banner-grid {
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
        }
        .elg-acct-banner-title { font-size: 1.75rem; }
        .elg-acct-banner-grid > .elg-acct-banner-points { justify-self: center; }
        .elg-acct-banner-invite {
            justify-self: end;
            width: min(22.5rem, 100%);
            min-height: 8rem;
        }
        .elg-acct-banner-invite-photo::after { background: rgb(0 0 0 / 0.12); }
        .elg-acct-banner-invite-body { padding: 1rem 1.25rem; }
    }

    /* Sidebar */
    .elg-account-sidebar { padding-right: 0.5rem; }
    .elg-acct-side-list { list-style: none; padding: 0; margin: 0; }
    .elg-acct-side-list li { margin: 0; }
    .elg-acct-side-sep {
        height: 1px;
        background: rgb(20 24 51 / 0.12);
        margin: 0.75rem 0;
    }
    .elg-acct-side-link {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.7rem 0.5rem;
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-weight: 400;
        color: rgb(20 24 51 / 0.7);
        text-decoration: none;
        border-left: 2px solid transparent;
        padding-left: 0.65rem;
        transition: color 0.2s ease, border-color 0.2s ease;
    }
    .elg-acct-side-link:hover { color: rgb(20 24 51); }
    .elg-acct-side-link.is-active {
        color: rgb(20 24 51);
        font-weight: 500;
        border-left-color: rgb(20 24 51);
    }
    .elg-acct-side-ico {
        display: inline-flex;
        width: 22px;
        height: 22px;
        align-items: center;
        justify-content: center;
        color: currentColor;
    }
    .elg-acct-side-label { line-height: 1.2; }
    .elg-acct-side-badge {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 0.3rem;
        border-radius: 9999px;
        background: #ef4444;
        color: var(--color-on-primary);
        font-size: 0.625rem;
        font-weight: 600;
        letter-spacing: normal;
        text-transform: none;
        line-height: 1;
        flex-shrink: 0;
    }

    /* Wrapper sidebar contenedor (collapsible base) */
    .elg-account-sidebar-wrap > .title { display: none; }

    /* Panel central */
    .elg-acct-panel { padding: 0 0 3rem; }
    .elg-acct-panel-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 0.85rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgb(20 24 51 / 0.15);
    }
    .elg-acct-panel-title {
        font-size: 0.8125rem;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-weight: 500;
        color: rgb(20 24 51);
    }

    .elg-acct-fields {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem 2rem;
        margin-bottom: 1.5rem;
    }
    @media (min-width: 640px) {
        .elg-acct-fields { grid-template-columns: 1fr 1fr; }
    }
    .elg-acct-field-value {
        font-size: 0.9375rem;
        color: rgb(20 24 51);
        padding: 0.95rem 1rem;
        border: 1px solid rgb(20 24 51 / 0.2);
        background: rgba(20 24 51 / 0.02);
        min-height: 3.1rem;
    }

    .elg-acct-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 1.25rem 2rem;
        padding-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .elg-acct-rule { margin: 2.5rem 0 2rem; }

    .elg-acct-danger { }
    .elg-acct-danger-desc {
        font-size: 0.875rem;
        color: rgb(20 24 51 / 0.7);
        line-height: 1.55;
        margin: 0.85rem 0 1.25rem;
        max-width: 36rem;
    }
    .elg-acct-danger-btn { max-width: 18rem; }
    /* Popup de confirmación de "Borrar cuenta" (contenido del elg-popup) */
    .elg-acct-delete-question { font-size: 0.9375rem; text-align: center; margin: 0 0 1.5rem; }
    .elg-acct-delete-error { font-size: 0.8125rem; color: #b91c1c; text-align: center; margin: -0.75rem 0 1.25rem; }
    .elg-acct-delete-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
    .elg-acct-delete-actions .elg-btn { min-width: 9rem; }
    /* "Borrar cuenta": al pasar el ratón, al revés (fondo blanco y letra azul) */
    .elg-acct-delete-actions .elg-btn--primary:hover:not(:disabled) {
        background-color: #fff;
        color: rgb(20 24 51);
        opacity: 1;
    }

    /* ------------------------------------------------------------------
     *  Listado de pedidos (sales/order/history)
     * ------------------------------------------------------------------ */
    .elg-orders-list {
        border-top: 1px solid rgb(20 24 51 / 0.15);
    }
    .elg-order-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem 1rem;
        padding: 1.25rem 0;
        border-bottom: 1px solid rgb(20 24 51 / 0.12);
        align-items: start;
        transition: background-color 0.2s ease;
    }
    .elg-order-row:hover { background: rgb(20 24 51 / 0.03); }
    /* Móvil: dos datos por línea (Pedido | Fecha, Total | Estado) y las acciones a lo ancho */
    @media (max-width: 767px) {
        body.sales-order-history .elg-acct-panel-head { margin-bottom: 0; }
        .elg-order-row { grid-template-columns: 1fr 1fr; }
        .elg-order-row > .elg-order-actions { grid-column: 1 / -1; }
    }
    @media (min-width: 768px) {
        .elg-order-row {
            /* Ancho fijo para las acciones: cada fila es su propio grid y con "auto"
               las columnas se desplazaban según cuántos iconos tuviera (ver, devolución,
               cambio, repetir pedido). 9rem caben los cuatro. */
            grid-template-columns: 1.4fr 1fr 1fr 1.2fr 9rem;
            align-items: center;
        }
    }
    .elg-order-cell { min-width: 0; }
    .elg-order-cell .elg-form-label { margin-bottom: 0.25rem; }
    .elg-order-value {
        font-size: 1rem;
        color: rgb(20 24 51);
        font-weight: 300;
    }
    .elg-order-value--sm { font-size: 0.8125rem; }
    .elg-order-status {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8125rem;
        color: rgb(20 24 51);
    }
    .elg-order-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }

    .elg-order-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: flex-end;
    }
    .elg-order-action {
        display: inline-flex;
        color: rgb(20 24 51);
        transition: opacity 0.2s ease;
        cursor: pointer;
    }
    .elg-order-action:hover { opacity: 0.6; }

    .elg-orders-pager { margin-top: 2rem; }  /* resto: paginación compartida con notificaciones */

    /* ------------------------------------------------------------------
     *  Detalle de pedido (sales/order/view)
     * ------------------------------------------------------------------ */
    .elg-order-view-head {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding-bottom: 0.85rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgb(20 24 51 / 0.15);
    }
    .elg-order-view-title {
        font-size: 1.75rem;
        font-weight: 600;
        color: rgb(20 24 51);
    }

    .elg-order-view-back {
        display: inline-block;
        text-align: left;
        font-size: 0.8125rem;
        color: rgb(20 24 51 / 0.7);
        text-decoration: underline;
        text-underline-offset: 3px;
        margin-top: 1.5rem;
        transition: color 0.2s ease;
    }
    .elg-order-view-back:hover { color: rgb(20 24 51); }

    .elg-order-items { margin-top: 0.5rem; }
    .elg-order-items-title {
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: rgb(20 24 51);
        text-align: left;
        margin: 0 0 1rem;
    }
    .elg-order-items-grid { border-top: 1px solid rgb(20 24 51 / 0.15); }
    .elg-order-item-row {
        display: grid;
        grid-template-columns: 4.5rem 1fr auto;
        gap: 1rem;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgb(20 24 51 / 0.12);
    }
    .elg-order-item-image {
        width: 4.5rem;
        height: 4.5rem;
        overflow: hidden;
        background: rgb(20 24 51 / 0.03);
    }
    .elg-order-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .elg-order-item-info { min-width: 0; }
    .elg-order-item-name {
        font-size: 0.875rem;
        font-weight: 500;
        color: rgb(20 24 51);
        margin: 0 0 0.25rem;
    }
    .elg-order-item-sku,
    .elg-order-item-size,
    .elg-order-item-qty {
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.6);
        margin: 0;
    }
    /* Preorder de la línea, como en el carrito (.elg-cart-row-preorder) */
    .elg-order-item-preorder {
        margin: 0;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #dc2626;
    }
    .elg-order-item-price { text-align: right; white-space: nowrap; }
    .elg-order-item-price-unit {
        font-size: 0.875rem;
        font-weight: 600;
        color: rgb(20 24 51);
        margin: 0;
    }
    .elg-order-item-price-total {
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.6);
        margin: 0.25rem 0 0;
    }
    .elg-order-item-returned-link {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--color-on-primary);
        background: rgb(20 24 51);
        text-decoration: none;
        margin-top: 0.5rem;
        padding: 0.25rem 0.75rem;
        border-radius: 999px;
        transition: opacity 0.2s ease;
    }
    .elg-order-item-returned-link:hover { opacity: 0.7; }

    .elg-order-totals { margin-top: 2rem; }
    .elg-order-totals-table { width: 100%; }
    .elg-order-totals-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.5rem 0;
        font-size: 0.8125rem;
        color: rgb(20 24 51 / 0.75);
    }
    .elg-order-totals-shipping-desc {
        font-size: 0.6875rem;
        color: rgb(20 24 51 / 0.5);
        margin-left: 0.25rem;
    }
    .elg-order-totals-row--grand {
        font-size: 0.9375rem;
        font-weight: 700;
        color: rgb(20 24 51);
    }

    .elg-order-shipments { margin-top: 2rem; }
    .elg-order-shipments-empty {
        font-size: 0.875rem;
        color: rgb(20 24 51 / 0.7);
        padding: 1rem 0;
        margin: 0;
    }
    .elg-order-shipments-grid { border-top: 1px solid rgb(20 24 51 / 0.15); }
    .elg-order-shipment-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem;
        align-items: start;
        padding: 1rem 0;
        border-bottom: 1px solid rgb(20 24 51 / 0.12);
    }
    .elg-order-shipment-item + .elg-order-shipment-item { margin-top: 0.75rem; }
    .elg-order-shipment-item-name {
        font-size: 0.875rem;
        font-weight: 700;
        color: rgb(20 24 51);
        margin: 0 0 0.15rem;
    }
    .elg-order-shipment-item-sku,
    .elg-order-shipment-item-qty {
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.6);
        margin: 0;
    }
    .elg-order-shipment-tracking { text-align: right; }
    .elg-order-shipment-track-link {
        display: inline-block;
        font-size: 0.8125rem;
        font-weight: 700;
        color: rgb(20 24 51);
        text-decoration: none;
        transition: opacity 0.2s ease;
    }
    .elg-order-shipment-track-link:hover { opacity: 0.6; }
    .elg-order-shipment-track-link + .elg-order-shipment-track-link {
        display: block;
        margin-top: 0.5rem;
    }
    .elg-order-shipment-track-plain {
        display: inline-block;
        font-size: 0.8125rem;
        color: rgb(20 24 51 / 0.75);
    }
    .elg-order-shipment-track-plain + .elg-order-shipment-track-plain,
    .elg-order-shipment-track-link + .elg-order-shipment-track-plain,
    .elg-order-shipment-track-plain + .elg-order-shipment-track-link {
        display: block;
        margin-top: 0.5rem;
    }

    .elg-order-shipping-address { margin-top: 2rem; }
    .elg-order-shipping-address-content {
        font-style: normal;
        font-size: 0.875rem;
        line-height: 1.6;
        color: rgb(20 24 51 / 0.85);
    }

    .elg-order-shipping-method { margin-top: 2rem; }
    .elg-order-shipping-method-value {
        font-size: 0.875rem;
        color: rgb(20 24 51 / 0.85);
        margin: 0;
    }

    .elg-orders-empty {
        border-top: 1px solid rgb(20 24 51 / 0.15);
        border-bottom: 1px solid rgb(20 24 51 / 0.15);
        padding: 4rem 1rem;
        text-align: center;
    }
    .elg-orders-empty-text {
        font-size: 1.25rem;
        font-weight: 300;
        color: rgb(20 24 51);
        margin-bottom: 1.5rem;
    }
    .elg-orders-empty-cta { display: inline-block; }

    /* ------------------------------------------------------------------
     *  Address book (customer/address) — cards apiladas
     * ------------------------------------------------------------------ */
    .elg-acct-panel-sub {
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.55);
        letter-spacing: 0.04em;
    }
    .elg-acct-section-eyebrow {
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.6875rem;
        font-weight: 500;
        color: rgb(20 24 51 / 0.7);
        margin-bottom: 1rem;
    }
    .elg-acct-newsletter-general { margin-bottom: 1rem; }

    /* ------------------------------------------------------------------
     *  Métodos de pago (Magento_Vault)
     * ------------------------------------------------------------------ */
    .elg-paymethods-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .elg-paymethods-empty {
        color: #ef4444;
        font-size: 0.8125rem;
        padding: 1rem 0 1.5rem;
    }
    .elg-paymethod-card {
        border: 1px solid rgb(20 24 51 / 0.18);
        padding: 1.25rem 1.5rem;
        background: var(--color-bg);
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }
    @media (min-width: 640px) {
        .elg-paymethod-card {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
    }
    .elg-paymethod-card-head {
        display: flex;
        gap: 1rem;
        align-items: center;
        min-width: 0;
    }
    .elg-paymethod-icon { width: 42px; height: auto; }
    .elg-paymethod-card-body { min-width: 0; }
    .elg-paymethod-card-number {
        font-family: ui-monospace, SFMono-Regular, monospace;
        font-size: 1rem;
        color: rgb(20 24 51);
        letter-spacing: 0.05em;
        margin-top: 0.15rem;
    }
    .elg-paymethod-card-exp {
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.6);
        margin-top: 0.25rem;
    }
    .elg-paymethod-actions { flex-shrink: 0; }
    .elg-paymethods-add { margin-bottom: 1rem; }
    .elg-paymethods-hint {
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.55);
        line-height: 1.55;
    }

    /* Stripe Elements wrapper para sub-pantalla "Añadir nueva tarjeta" */
    .elg-stripe-form-wrap {
        border: 1px solid rgb(20 24 51 / 0.15);
        padding: 1.25rem 1rem;
        background: var(--color-bg);
        min-height: 90px;
        margin-bottom: 0.5rem;
    }
    .elg-stripe-form-wrap #stripe-setup-element { min-height: 60px; }

    /* ------------------------------------------------------------------
     *  Notificaciones (Yeboyebo_IntegracionApp customer notifications)
     * ------------------------------------------------------------------ */
    .elg-notif-list {
        border-top: 1px solid rgb(20 24 51 / 0.12);
    }
    .elg-notif-item {
        position: relative;
        display: grid;
        grid-template-columns: 56px 1fr auto;
        gap: 1rem;
        padding: 1rem 0.5rem;
        border-bottom: 1px solid rgb(20 24 51 / 0.1);
        text-decoration: none;
        color: rgb(20 24 51);
        align-items: center;
        transition: background-color 0.2s ease;
    }
    .elg-notif-item:hover { background: rgb(20 24 51 / 0.03); }
    .elg-notif-item.is-unread { background: rgb(20 24 51 / 0.04); }
    .elg-notif-img {
        width: 56px; height: 56px;
        background: #f4f4f4;
        overflow: hidden;
        border-radius: 50%;
    }
    .elg-notif-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .elg-notif-body { min-width: 0; }
    .elg-notif-msg {
        font-size: 0.875rem;
        line-height: 1.45;
        color: rgb(20 24 51);
        margin-bottom: 0.25rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .elg-notif-meta {
        font-size: 0.6875rem;
        color: rgb(20 24 51 / 0.55);
        letter-spacing: 0.02em;
    }
    .elg-notif-dot {
        width: 8px; height: 8px;
        border-radius: 50%;
        background: #ef4444;
        flex-shrink: 0;
    }
    .elg-notif-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .elg-notif-delete {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: rgb(20 24 51 / 0.55);
        cursor: pointer;
        transition: color 0.2s ease;
    }
    .elg-notif-delete:hover,
    .elg-notif-delete:focus-visible { color: rgb(20 24 51); }

    .elg-notif-pager { margin-top: 1.5rem; }
    /* Paginación de Hyvä (Magento_Theme::html/pager.phtml) en Mi cuenta (notificaciones, pedidos y devoluciones): números cuadrados como el resto de la cuenta, la página
       actual rellena y las flechas sin caja */
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pager {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        font-size: 0.8125rem;
        color: rgb(20 24 51 / 0.65);
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .toolbar-amount { display: none; }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages ol {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 2rem !important;
        height: 2rem;
        padding: 0 0.25rem !important;
        border: 1px solid rgb(20 24 51 / 0.2) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: rgb(20 24 51) !important;
        font-size: 0.8125rem !important;
        font-weight: 400;
        line-height: 1;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a:hover {
        background: rgb(20 24 51) !important;
        border-color: rgb(20 24 51) !important;
        color: var(--color-on-primary) !important;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a[aria-current="page"] {
        background: rgb(20 24 51) !important;
        border-color: rgb(20 24 51) !important;
        color: var(--color-on-primary) !important;
        font-weight: 500;
        pointer-events: none;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a.pages-item-previous,
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a.pages-item-next {
        border-color: transparent !important;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a.pages-item-previous:hover,
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a.pages-item-next:hover {
        background: transparent !important;
        border-color: transparent !important;
        color: rgb(20 24 51 / 0.6) !important;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .pages a[aria-disabled="true"] { opacity: 0.3; pointer-events: none; }

    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .limiter {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .limiter .label span {
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.6875rem;
        color: rgb(20 24 51 / 0.55);
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .limiter-label {
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.6875rem;
        color: rgb(20 24 51 / 0.55);
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .limiter-options {
        border: 1px solid rgb(20 24 51 / 0.2);
        background-color: transparent;
        padding: 0.3rem 1.5rem 0.3rem 0.6rem;
        font-size: 0.8125rem;
        color: rgb(20 24 51);
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23141833' stroke-width='1.4' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.55rem center;
        background-size: 9px;
    }
    :is(.elg-notif-pager, .elg-orders-pager, .elg-rma-pager) .limiter-text { display: none; }

    /* ------------------------------------------------------------------
     *  Favoritos / Wishlist (Magento_Wishlist view) — cards minimal PDF
     * ------------------------------------------------------------------ */
    .elg-wishlist-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
        margin-bottom: 2rem;
    }
    @media (min-width: 768px) { .elg-wishlist-grid { grid-template-columns: 1fr 1fr 1fr; } }
    @media (min-width: 1280px) { .elg-wishlist-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

    .elg-wishlist-card {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 0;
        transition: opacity 0.2s ease;
    }
    .elg-wishlist-card-link {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        background: #f4f4f4;
    }
    .elg-wishlist-card-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .elg-wishlist-card-body {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        min-width: 0;
    }
    .elg-wishlist-card-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; flex: 1 1 auto; }
    .elg-wishlist-card-name {
        display: block;
        text-transform: uppercase;
        font-size: 0.6875rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        color: rgb(20 24 51);
        text-decoration: none;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .elg-wishlist-card-price {
        font-size: 0.8125rem;
        color: rgb(20 24 51 / 0.85);
        font-weight: 400;
    }
    .elg-wishlist-card-price .price { font-size: 0.8125rem; }
    .elg-wishlist-card-remove {
        flex: 0 0 auto;
        background: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;
        color: rgb(20 24 51 / 0.7);
        line-height: 0;
        transition: color 0.2s ease;
    }
    .elg-wishlist-card-remove:hover { color: rgb(20 24 51); }

    .elg-wishlist-actions {
        display: flex;
        justify-content: flex-start;
        margin-top: 1.5rem;
    }
    .elg-wishlist-clear {
        min-width: 14rem;
        background: #c4c4c4;
        color: var(--color-on-primary);
        border-color: #c4c4c4;
    }
    .elg-wishlist-clear:hover {
        background: rgb(20 24 51);
        border-color: rgb(20 24 51);
        color: var(--color-on-primary);
    }

    /* Cambios y devoluciones: listado, detalle y nueva RMA en 34-customer-rma.css; aquí solo el paginador */
    .elg-rma-pager { margin-top: 1.5rem; }  /* resto: paginación compartida con notificaciones */


    /* ------------------------------------------------------------------
     *  Cart drawer cross-sells "Comprados juntos habitualmente"
     *  Yeboyebo_RecomendadosCarrito → hook cart-drawer.bottom
     * ------------------------------------------------------------------ */
    .elg-cart-addons {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgb(20 24 51 / 0.12);
    }
    .elg-cart-addons-title {
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgb(20 24 51);
        margin-bottom: 1rem;
    }
    .elg-cart-addons-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .elg-cart-addon {
        text-decoration: none;
        color: rgb(20 24 51);
        display: block;
        transition: opacity 0.2s ease;
    }
    .elg-cart-addon:hover { opacity: 0.8; }
    .elg-cart-addon-img {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        background: #f4f4f4;
        margin-bottom: 0.5rem;
    }
    .elg-cart-addon-name {
        text-transform: uppercase;
        font-size: 0.6875rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        line-height: 1.3;
        margin-bottom: 0.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .elg-cart-addon-price {
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.85);
    }
    .elg-address-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .elg-address-card {
        border: 1px solid rgb(20 24 51 / 0.18);
        padding: 1.5rem 1.5rem 1rem;
        background: var(--color-bg);
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }
    .elg-address-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .elg-address-badge {
        display: inline-block;
        padding: 0.2rem 0.6rem;
        background: rgb(20 24 51 / 0.07);
        color: rgb(20 24 51);
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        font-weight: 500;
    }
    .elg-address-name {
        font-size: 0.9375rem;
        font-weight: 500;
        color: rgb(20 24 51);
    }
    .elg-address-body {
        font-style: normal;
        font-size: 0.875rem;
        color: rgb(20 24 51 / 0.8);
        line-height: 1.6;
    }
    .elg-address-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }
    .elg-address-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.6875rem;
        min-width: 8rem;
    }
    .elg-address-add {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.5rem;
        border: 1px dashed rgb(20 24 51 / 0.3);
        color: rgb(20 24 51);
        text-decoration: none;
        background: rgba(20 24 51 / 0.02);
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    .elg-address-add:hover {
        background: rgba(20 24 51 / 0.05);
        border-color: rgb(20 24 51);
    }
    .elg-address-add-label {
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.75rem;
        font-weight: 500;
    }
    .elg-address-add-icon { display: inline-flex; }

    /* ------------------------------------------------------------------
     *  GansoInside (Mageplaza_RewardPoints account/dashboard)
     *  Diseño devlab páginas 10-13
     * ------------------------------------------------------------------ */

    /* Landing pública /gansoinside (Yeboyebo_GansoInside): ancho completo, sin
     * el padding lateral global de #maincontent ni el max-width de .columns
     * (mismo patrón que la home). Las secciones llevan su propio padding. */
    .gansoinside-index-index #maincontent {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
        margin-block: 0 !important;
    }
    .gansoinside-index-index .columns {
        max-width: none !important;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    .gansoinside-index-index .column.main {
        max-width: none !important;
        width: 100% !important;
    }
    .gansoinside-index-index .breadcrumbs { display: none; }

    /* Página /newsletter (Yeboyebo_Newsletter): foto + formulario a ancho completo,
     * sin el padding lateral ni los márgenes de #maincontent (mismo patrón). */
    .newsletter-index-index #maincontent {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
        margin-block: 0 !important;
    }
    .newsletter-index-index .columns {
        max-width: none !important;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    .newsletter-index-index .column.main {
        max-width: none !important;
        width: 100% !important;
    }

    /* Proporción del diseño: 4:5 en móvil (encuadre arriba, se ve la gorra)
     * y 2:1 en escritorio (encuadre centrado, se ve la camiseta). */
    .elg-gi-hero {
        background-size: cover;
        background-position: 55% top;
        background-repeat: no-repeat;
        background-color: rgb(20 24 51);
        color: var(--color-on-primary);
        aspect-ratio: 4 / 5;
        /* width explícito: si no, con max-height el aspect-ratio encoge el ancho */
        width: 100%;
        display: flex;
        align-items: flex-end;
        padding: 3rem 1.5rem;
        margin: 0;
        position: relative;
    }
    .elg-gi-hero::before {
        content: "";
        position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,24,51,0.55) 100%);
        pointer-events: none;
    }
    @media (min-width: 768px) { .elg-gi-hero { aspect-ratio: 2 / 1; max-height: 80vh; background-position: center; } }
    @media (min-width: 1024px) { .elg-gi-hero { padding: 4rem 3rem; } }

    /* Ocupa todo el ancho del hero: el subtítulo llega hasta el padding derecho */
    .elg-gi-hero-overlay {
        position: relative;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    @media (min-width: 768px) {
        .elg-gi-hero-overlay {
            grid-template-columns: auto 1fr;
            align-items: end;
            column-gap: 2.5rem;
        }
    }
    .elg-gi-hero-title {
        font-size: clamp(2rem, 5vw, 3.25rem);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: -0.01em;
        line-height: 1;
    }
    /* Pequeño en móvil, ~18px en escritorio, sin espaciado extra (diseño) */
    .elg-gi-hero-sub {
        font-size: clamp(0.75rem, 1.4vw, 1.125rem);
        text-transform: uppercase;
        letter-spacing: normal;
        line-height: 1.35;
    }
    .elg-gi-hero-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-weight: 500;
        color: var(--color-on-primary);
        text-decoration: none;
        margin-top: 0.75rem;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid rgba(255,255,255,0.6);
        transition: border-color 0.2s ease;
    }
    .elg-gi-hero-cta:hover { border-color: var(--color-bg); }

    .elg-gi-panel { padding-top: 0; }

    .elg-gi-warn {
        border-left: 4px solid #f59e0b;
        background: rgba(245, 158, 11, 0.08);
        color: #92400e;
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
        font-size: 0.875rem;
    }

    /* Resumen con sesión iniciada: saludo + saldos apilados, alineados a la
     * izquierda con el margen del hero (diseño) */
    .elg-gi-account { padding: 2rem 1.5rem 1rem; color: rgb(20 24 51); }
    @media (min-width: 1024px) { .elg-gi-account { padding: 3rem 3rem 2rem; } }
    .elg-gi-account-hello {
        font-size: 0.8125rem;
        color: rgb(20 24 51 / 0.75);
        margin-bottom: 2rem;
    }
    .elg-gi-kpis {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }
    @media (min-width: 768px) { .elg-gi-kpis { gap: 2.5rem; } }
    .elg-gi-kpi-label {
        text-transform: uppercase;
        letter-spacing: 0.02em;
        font-size: 0.9375rem;
        font-weight: 400;
        color: rgb(20 24 51 / 0.85);
    }
    .elg-gi-kpi-value {
        font-size: 0.9375rem;
        font-weight: 600;
        color: rgb(20 24 51);
    }
    @media (min-width: 768px) {
        .elg-gi-kpi-label { font-size: 1.125rem; color: rgb(20 24 51); margin-bottom: 1rem; }
        .elg-gi-kpi-value { font-size: 1.125rem; }
    }
    .elg-gi-kpi-desc {
        margin-top: 0.75rem;
        font-size: 0.6875rem;
        color: rgb(20 24 51 / 0.7);
        line-height: 1.5;
        max-width: 38rem;
    }

    .elg-gi-card-code {
        margin-top: 1.5rem;
        font-size: 0.75rem;
        color: rgb(20 24 51 / 0.6);
        letter-spacing: 0.05em;
    }
    .elg-gi-card-code span { font-family: ui-monospace, SFMono-Regular, monospace; }
    .elg-gi-card-level {
        margin-left: 1rem;
        padding: 0.2rem 0.6rem;
        background: rgb(20 24 51 / 0.07);
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-weight: 500;
        font-size: 0.625rem;
        color: rgb(20 24 51);
    }

    .elg-gi-benefits-title {
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 500;
        color: rgb(20 24 51);
        margin-bottom: 2rem;
    }
    /* 2 por fila en móvil/tablet y 4 en escritorio, sin hueco entre tarjetas */
    .elg-gi-benefits-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    @media (min-width: 1024px) { .elg-gi-benefits-grid { grid-template-columns: repeat(4, 1fr); } }

    /* La tarjeta toma la altura de su imagen (600x899, con el texto dentro):
     * sin proporción fija para que no quede hueco ni se recorte el texto. */
    .elg-gi-benefit {
        position: relative;
        overflow: hidden;
        background-color: rgb(20 24 51);
    }
    .elg-gi-benefit-img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Landing anónima — secciones ¿Quieres formar parte? + ¿Cómo funciona? */
    .elg-gi-section {
        max-width: 56rem;
        margin: 0 auto;
        padding: 3rem 1.5rem;
        text-align: center;
    }
    .elg-gi-section-title {
        text-transform: uppercase;
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 500;
        letter-spacing: 0.04em;
        color: rgb(20 24 51);
        margin-bottom: 1.5rem;
    }
    .elg-gi-section-text {
        font-size: 0.9375rem;
        line-height: 1.7;
        color: rgb(20 24 51 / 0.75);
        max-width: 44rem;
        margin: 0 auto 2rem;
    }
    .elg-gi-howto {
        max-width: 64rem;
        margin: 0 auto;
        padding: 1rem 1.5rem 3rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    @media (min-width: 768px) {
        .elg-gi-howto { grid-template-columns: 1fr 1fr; gap: 4rem; }
    }
    .elg-gi-step-num {
        display: inline-block;
        font-size: 0.875rem;
        font-weight: 600;
        color: rgb(20 24 51);
        margin-right: 0.5rem;
    }
    .elg-gi-step-title {
        text-transform: uppercase;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        color: rgb(20 24 51);
        margin-bottom: 0.85rem;
    }
    .elg-gi-step-desc {
        font-size: 0.8125rem;
        line-height: 1.6;
        color: rgb(20 24 51 / 0.7);
    }

    /* Móvil (diseño): secciones alineadas a la izquierda, títulos más
     * pequeños, botón a todo el ancho y pasos en negrita */
    @media (max-width: 767px) {
        .elg-gi-section { text-align: left; padding: 2rem 1.5rem; }
        .elg-gi-section-title { font-size: 1.125rem; margin-bottom: 1rem; }
        .elg-gi-section-text { font-size: 0.8125rem; margin: 0 0 1.5rem; }
        .elg-gi-section .elg-btn { display: block; width: 100%; padding: 14px 16px; font-size: 0.6875rem; letter-spacing: 0.12em; }
        /* "¿Cómo funciona?" es una sección solo con título seguida de los pasos */
        .elg-gi-section:has(+ .elg-gi-howto) { padding-bottom: 0; }
        .elg-gi-howto { padding: 0 1.5rem 1rem; gap: 1.25rem; }
        .elg-gi-step-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
        .elg-gi-step-num { font-size: inherit; font-weight: inherit; margin-right: 0.25rem; }
        .elg-gi-step-desc { font-size: 0.75rem; }
        .elg-gi-benefits-title { text-align: left; font-size: 1.125rem; margin-bottom: 1rem; padding: 1.5rem 1.5rem 0; }
    }

    /* ¿Cómo conseguir puntos? — escritorio: foto a la izquierda y lista a la
     * derecha; móvil: lista arriba y foto debajo (diseño) */
    .elg-gi-only-desk { display: none; }
    @media (min-width: 768px) {
        .elg-gi-only-desk { display: inline; }
        .elg-gi-only-mob { display: none; }
    }

    .elg-gi-points {
        display: grid;
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
        color: rgb(20 24 51);
    }
    @media (min-width: 768px) {
        .elg-gi-points { grid-template-columns: 1fr 1fr; align-items: center; margin-top: 2rem; }
    }

    .elg-gi-points-card {
        position: relative;
        order: 2;
        aspect-ratio: 4 / 5;
        background-size: cover;
        background-position: center;
        background-color: rgb(20 24 51);
        color: var(--color-on-primary);
    }
    @media (min-width: 768px) { .elg-gi-points-card { order: 0; } }
    .elg-gi-points-card::before {
        content: "";
        position: absolute; inset: 0;
        background: rgba(0,0,0,0.3);
        pointer-events: none;
    }
    .elg-gi-points-card-body {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1.5rem 1rem 1rem;
        text-align: center;
    }
    @media (min-width: 768px) {
        .elg-gi-points-card-body {
            justify-content: center;
            gap: 2rem;
            padding: 3rem clamp(1.5rem, 3vw, 3rem);
            text-align: left;
        }
    }
    .elg-gi-points-eyebrow {
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 0.5rem;
    }
    .elg-gi-points-card-title {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
        font-weight: 500;
        text-transform: uppercase;
        line-height: 1;
        margin-bottom: 0.75rem;
    }
    .elg-gi-points-card-text {
        font-size: 0.6875rem;
        text-transform: uppercase;
        line-height: 1.35;
        max-width: 20rem;
        margin-inline: auto;
    }
    @media (min-width: 768px) { .elg-gi-points-card-text { font-size: 0.75rem; margin-inline: 0; } }

    .elg-gi-points-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .elg-gi-points-actions .elg-btn { padding: 12px 32px; font-size: 0.625rem; letter-spacing: 0.08em; }
    .elg-gi-points-login {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-size: 0.5625rem;
        text-transform: uppercase;
        color: var(--color-on-primary);
        text-decoration: none;
    }
    @media (min-width: 768px) {
        .elg-gi-points-actions { flex-direction: row; gap: 1.25rem; }
        .elg-gi-points-login { justify-content: flex-start; gap: 0.5rem; width: auto; font-size: 0.625rem; }
    }
    .elg-gi-points-login:hover { color: var(--color-on-primary); text-decoration: underline; }

    .elg-gi-points-list { padding: 2rem 1.5rem; }
    @media (min-width: 768px) { .elg-gi-points-list { padding: 3rem clamp(2rem, 5vw, 5rem); } }
    .elg-gi-points-title {
        font-size: 1.125rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin-bottom: 1rem;
    }
    @media (min-width: 768px) { .elg-gi-points-title { font-size: clamp(1.25rem, 2vw, 1.75rem); margin-bottom: 1.5rem; } }
    .elg-gi-points-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-block: 0.6rem;
    }
    .elg-gi-points-desc {
        font-size: 0.5625rem;
        color: rgb(20 24 51 / 0.7);
        margin-bottom: 0.15rem;
    }
    .elg-gi-points-name {
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
    }
    @media (min-width: 768px) {
        .elg-gi-points-item { padding-block: 0.85rem; }
        .elg-gi-points-desc { font-size: 0.6875rem; }
        .elg-gi-points-name { font-size: clamp(0.875rem, 1.3vw, 1.125rem); }
    }
    .elg-gi-points-arrow { flex-shrink: 0; display: flex; }
    .elg-gi-points-login > span:last-child { display: inline-flex; align-items: center; gap: 0.35rem; }

    /* Flechas Heroicons (arrow-right) de la landing: trazo fino como en el diseño */
    .elg-gi-hero-cta svg,
    .elg-gi-points-login svg,
    .elg-gi-points-arrow svg { stroke-width: 1.25; flex-shrink: 0; }
    /* Sobre foto, con el icono pequeño, el trazo fino se pierde */
    .elg-gi-hero-cta svg,
    .elg-gi-points-login svg { stroke-width: 1.75; }

    /* ------------------------------------------------------------------
     *  Gansociety sub-pantalla del perfil (vista compacta integrada,
     *  diseño slice sub_08 PDF) — KPIs en columna + sidebar lateral azul
     * ------------------------------------------------------------------ */
    .elg-gs-wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    @media (min-width: 1024px) {
        .elg-gs-wrap { grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; }
    }

    .elg-gs-panel { padding: 0; }

    /* Slider niveles Gansociety (tarjetas tipo carnet, una por nivel) */
    .elg-gs-levels {
        position: relative;
        display: grid;
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .elg-gs-levels-viewport {
        overflow: hidden;
        /* hueco para que la sombra de la tarjeta no se corte */
        padding: 0.5rem 0 1rem;
    }
    .elg-gs-levels-track {
        display: flex;
        transition: transform 0.35s ease;
    }
    .elg-gs-levels-slide {
        flex: 0 0 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
    }
    .elg-gs-levels-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 3rem;
        padding: 0;
        background: transparent;
        border: 0;
        color: #007aff;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    .elg-gs-levels-nav svg { width: 1.6rem; height: 2.6rem; }
    .elg-gs-levels-nav:disabled { opacity: 0.35; cursor: default; }

    .elg-gs-level-card {
        width: 100%;
        max-width: 23.5rem;
        aspect-ratio: 375 / 225;
        border-radius: 1.1rem;
        padding: 1rem 1.25rem 1.1rem;
        color: #fff;
        background: linear-gradient(135deg, #7f98cf 0%, #4b6795 100%);
        box-shadow: 0 6px 10px rgb(0 0 0 / 0.35);
        display: flex;
        flex-direction: column;
    }
    .elg-gs-level-card.is-active {
        background: linear-gradient(135deg, #4567b2 0%, #102d63 100%);
    }
    .elg-gs-level-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 0.6rem;
    }
    .elg-gs-level-chip {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .elg-gs-level-meta { text-align: right; }
    .elg-gs-level-name {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
    }
    .elg-gs-level-spend {
        margin: 0.15rem 0 0;
        font-size: 0.8125rem;
    }
    .elg-gs-level-customer,
    .elg-gs-level-points {
        margin: 0;
        font-size: 1.25rem;
        line-height: 1.6;
    }
    /* Tarjeta única para empleados / dto. especial (sin slider de niveles) */
    .elg-gs-special {
        display: flex;
        justify-content: center;
        padding: 0.5rem 0 1rem;
        margin-bottom: 1.5rem;
    }
    .elg-gs-level-card--especial {
        color: #000;
        background: linear-gradient(135deg, #f9d000 0%, #e6b80c 55%, #b78a30 100%);
    }
    .elg-gs-level-body {
        margin: auto 0;
    }
    .elg-gs-level-conds {
        list-style: none;
        margin: auto 0 0;
        padding: 0 0 0 4.25rem;
        font-size: 0.875rem;
        line-height: 1.4;
    }
    @media (max-width: 479px) {
        .elg-gs-levels { grid-template-columns: 1.75rem minmax(0, 1fr) 1.75rem; gap: 0.25rem; }
        .elg-gs-levels-nav { width: 1.75rem; }
        .elg-gs-levels-nav svg { width: 1.1rem; height: 1.9rem; }
        .elg-gs-level-card { aspect-ratio: auto; padding: 0.9rem 1rem; }
        .elg-gs-level-customer, .elg-gs-level-points { font-size: 1.05rem; }
        .elg-gs-level-conds { padding-left: 0; margin-top: 0.6rem; font-size: 0.8125rem; }
    }

    .elg-gs-kpis {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .elg-gs-kpi {
        border: 1px solid rgb(20 24 51 / 0.2);
        padding: 1rem 1.25rem;
        background: rgba(20 24 51 / 0.02);
    }
    .elg-gs-kpi .elg-form-label { margin-bottom: 0.4rem; }
    .elg-gs-kpi-value {
        font-size: 1.15rem;
        font-weight: 500;
        color: rgb(20 24 51);
        letter-spacing: 0.02em;
    }

    .elg-gs-add {
        margin-bottom: 2.5rem;
    }

    .elg-gs-tx-title {
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-size: 0.8125rem;
        font-weight: 500;
        color: rgb(20 24 51);
        padding-bottom: 0.85rem;
        border-bottom: 1px solid rgb(20 24 51 / 0.15);
        margin-bottom: 1rem;
    }
    .elg-gs-empty {
        color: #ef4444;
        font-size: 0.8125rem;
        padding: 0.75rem 0;
    }
    .elg-gs-tx-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.8125rem;
    }
    .elg-gs-tx-table th {
        text-transform: uppercase;
        letter-spacing: 0.15em;
        font-size: 0.6875rem;
        font-weight: 500;
        color: rgb(20 24 51 / 0.6);
        text-align: left;
        padding: 0.6rem 0.5rem;
        border-bottom: 1px solid rgb(20 24 51 / 0.15);
    }
    .elg-gs-tx-table td {
        padding: 0.65rem 0.5rem;
        border-bottom: 1px solid rgb(20 24 51 / 0.08);
        color: rgb(20 24 51);
    }
    .elg-gs-tx-table .text-right { text-align: right; }
    .elg-gs-tx-table .elg-gs-tx-date { white-space: nowrap; }
    .elg-gs-tx-pager { margin-top: 1.5rem; }
    .elg-gs-pos { color: #10b981; font-weight: 500; }
    .elg-gs-neg { color: #ef4444; font-weight: 500; }

    .elg-gs-aside {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .elg-gs-card {
        background: rgb(20 24 51);
        color: var(--color-on-primary);
        padding: 1.5rem 1.25rem;
    }
    .elg-gs-card-title {
        text-transform: uppercase;
        font-size: 0.875rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .elg-gs-card-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }
    .elg-gs-card-list li {
        position: relative;
        padding-left: 1rem;
        font-size: 0.75rem;
        line-height: 1.55;
        color: rgba(255,255,255,0.85);
    }
    .elg-gs-card-list li::before {
        content: "–";
        position: absolute;
        left: 0;
        color: rgba(255,255,255,0.7);
    }
}


/* Login, registro, contraseña olvidada, nueva contraseña y página de idioma (cambio-region) a todo el ancho, sin los márgenes laterales del contenedor (01-base.css): la foto y el formulario
   llegan a los bordes, en la web y en la app. Fuera de @layer para ganar a las reglas base, como en la PDP. */
body.customer-account-login #maincontent,
body.customer-account-create #maincontent,
body.customer-account-forgotpassword #maincontent,
body.customer-account-createpassword #maincontent,
body.cambio_region-index-index #maincontent {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}
body.customer-account-login .columns,
body.customer-account-login .column.main,
body.customer-account-create .columns,
body.customer-account-create .column.main,
body.customer-account-forgotpassword .columns,
body.customer-account-forgotpassword .column.main,
body.customer-account-createpassword .columns,
body.customer-account-createpassword .column.main,
body.cambio_region-index-index .columns,
body.cambio_region-index-index .column.main {
    max-width: none !important;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    width: 100% !important;
}
