/* =====================================================
   GASEX — LAYOUT FULL HEIGHT (solo páginas de cuenta)
   Usa la clase .woocommerce-account que WP agrega al body
===================================================== */

.woocommerce-account {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El footer se empuja al fondo naturalmente */
.woocommerce-account .gx-footer {
    margin-top: auto;
}

/* =====================================================
   GASEX — AUTH (Login, Registro, Password)
===================================================== */

.gx-auth-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #f5f7fa;
}

/* Logo / Hero */
.gx-auth-hero {
    margin-bottom: 36px;
    text-align: center;
}

.gx-auth-logo img {
    max-height: 44px;
    width: auto;
}

.gx-auth-logo__text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gx-primary, #003966);
    text-decoration: none;
}

/* Layout contenedor */
.gx-auth-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gx-auth-layout--single {
    max-width: 480px;
}

.gx-auth-layout--two-col {
    max-width: 960px;
}

@media (min-width: 768px) {
    .gx-auth-layout--two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }
}

/* Card */
.gx-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
}

.gx-auth-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gx-primary, #003966);
    margin: 0 0 8px;
    line-height: 1.2;
}

.gx-auth-card__subtitle {
    font-size: 0.9rem;
    color: var(--gx-muted, #6b7280);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Ícono decorativo */
.gx-auth-icon-wrap {
    width: 64px;
    height: 64px;
    background: #eef3f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--gx-primary, #003966);
}

.gx-auth-icon-wrap--success {
    background: #edfaf3;
    color: #1a7f4b;
}

/* Formulario */
.gx-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gx-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gx-form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gx-text, #1f1f1f);
}

.gx-input,
.gx-auth-form input.input-text {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gx-border, #e5e7eb);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--gx-text, #1f1f1f);
    background: #fafafa;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    outline: none;
}

.gx-input:focus,
.gx-auth-form input.input-text:focus {
    border-color: var(--gx-primary, #003966);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 57, 102, 0.08);
}

.gx-required {
    color: #e53e3e;
}

.gx-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gx-form-row--between {
    justify-content: space-between;
}

.gx-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gx-text, #1f1f1f);
    cursor: pointer;
}

.gx-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gx-primary, #003966);
    cursor: pointer;
    flex-shrink: 0;
}

.gx-link-muted {
    font-size: 0.85rem;
    color: var(--gx-muted, #6b7280);
    text-decoration: none;
    transition: color 0.15s;
}

.gx-link-muted:hover {
    color: var(--gx-primary, #003966);
}

.gx-form-info {
    font-size: 0.85rem;
    color: var(--gx-muted, #6b7280);
    background: #f5f8fc;
    border: 1px solid #d4e2f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0;
}

/* Botones */
.gx-btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--gx-primary, #003966);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 6px;
}

.gx-btn-auth:hover {
    background: #002a4d;
}

.gx-btn-auth:active {
    transform: scale(0.99);
}

.gx-btn-auth--secondary {
    background: transparent;
    color: var(--gx-primary, #003966);
    border: 2px solid var(--gx-primary, #003966);
}

.gx-btn-auth--secondary:hover {
    background: var(--gx-primary, #003966);
    color: #fff;
}

/* Tabs login / registro */
.gx-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--gx-border, #e5e7eb);
    margin: -40px -36px 28px;
    padding: 0 36px;
}

.gx-auth-tab {
    flex: 1;
    padding: 16px 8px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gx-muted, #6b7280);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.gx-auth-tab.is-active {
    color: var(--gx-primary, #003966);
    border-bottom-color: var(--gx-primary, #003966);
}

.gx-auth-tab:hover:not(.is-active) {
    color: var(--gx-text, #1f1f1f);
}

/* Paneles */
.gx-auth-panel {
    display: none;
}

.gx-auth-panel.is-active {
    display: block;
}

/* Notices WooCommerce dentro de auth */
.gx-auth-wrapper .woocommerce-error,
.gx-auth-wrapper .woocommerce-message,
.gx-auth-wrapper .woocommerce-info {
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 960px;
    box-sizing: border-box;
}

/* =====================================================
   GASEX — MI CUENTA
===================================================== */

.gx-myaccount-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1360px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* HERO */
.gx-myaccount-hero {
    margin-bottom: 50px;
}

/* LAYOUT */
.gx-myaccount-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 900px) {
    .gx-myaccount-layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 60px;
        align-items: start;
    }
}

/* =====================================================
   SIDEBAR NAV
===================================================== */

.gx-myaccount-nav {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--gx-border, #e5e7eb);
    box-shadow: var(--gx-shadow-sm, 0 2px 4px rgba(0,0,0,.05));
    overflow: hidden;
}

.gx-myaccount-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gx-myaccount-nav__item {
    border-bottom: 1px solid var(--gx-border, #e5e7eb);
}

.gx-myaccount-nav__item:last-child {
    border-bottom: none;
}

.gx-myaccount-nav__link {
    display: block;
    padding: 14px 22px;
    color: var(--gx-text, #1f1f1f);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.gx-myaccount-nav__link:hover {
    background: #f5f8fc;
    color: var(--gx-primary, #003966);
}

.gx-myaccount-nav__item.is-active .gx-myaccount-nav__link {
    background: var(--gx-primary, #003966);
    color: #fff;
    font-weight: 600;
}

/* Logout — color rojo suave */
.gx-myaccount-nav__item.woocommerce-MyAccount-navigation-link--customer-logout .gx-myaccount-nav__link {
    color: #c0392b;
}

.gx-myaccount-nav__item.woocommerce-MyAccount-navigation-link--customer-logout .gx-myaccount-nav__link:hover {
    background: #fdf2f2;
    color: #c0392b;
}

/* =====================================================
   CONTENT AREA
===================================================== */

.gx-myaccount-content {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--gx-border, #e5e7eb);
    box-shadow: var(--gx-shadow-sm, 0 2px 4px rgba(0,0,0,.05));
    padding: 36px;
}

/* =====================================================
   DASHBOARD
===================================================== */

.gx-dashboard-welcome {
    margin-bottom: 32px;
}

.gx-dashboard-welcome__text {
    font-size: 1.05rem;
    color: var(--gx-text, #1f1f1f);
    margin: 0;
}

.gx-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.gx-dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: #f5f8fc;
    border: 1px solid var(--gx-border, #e5e7eb);
    border-radius: 14px;
    text-decoration: none;
    color: var(--gx-text, #1f1f1f);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gx-dashboard-card:hover {
    border-color: var(--gx-primary, #003966);
    box-shadow: var(--gx-shadow-md, 0 6px 12px rgba(0,0,0,.08));
    color: var(--gx-primary, #003966);
}

.gx-dashboard-card__icon {
    font-size: 1.8rem;
}

/* RECENT ORDERS */
.gx-dashboard-recent {
    border-top: 1px solid var(--gx-border, #e5e7eb);
    padding-top: 28px;
}

.gx-recent-orders {
    list-style: none;
    margin: 16px 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gx-recent-order {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 0.9rem;
}

.gx-recent-order__number {
    font-weight: 600;
    color: var(--gx-primary, #003966);
    min-width: 120px;
}

.gx-recent-order__date {
    color: var(--gx-muted, #6b7280);
}

.gx-recent-order__status {
    background: #e8f0f9;
    color: var(--gx-primary, #003966);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gx-recent-order__link {
    margin-left: auto;
    color: var(--gx-primary, #003966);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.gx-btn-link {
    display: inline-block;
    color: var(--gx-primary, #003966);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.gx-btn-link:hover {
    text-decoration: underline;
}

/* =====================================================
   MIS DATOS
===================================================== */

.gx-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gx-primary, #003966);
    margin: 0 0 8px;
}

.gx-mis-datos__intro {
    color: var(--gx-muted, #6b7280);
    margin-bottom: 28px;
}

.gx-divider {
    border: none;
    border-top: 1px solid var(--gx-border, #e5e7eb);
    margin: 36px 0;
}

.gx-mis-datos__privacy {
    background: #f5f8fc;
    border: 1px solid #d4e2f0;
    border-radius: 14px;
    padding: 24px 28px;
}

.gx-mis-datos__privacy-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gx-primary, #003966);
    margin: 0 0 12px;
}

.gx-privacy-list {
    margin: 12px 0 16px;
    padding-left: 20px;
}

.gx-privacy-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gx-text, #1f1f1f);
    line-height: 1.5;
}

.gx-mis-datos__actions {
    margin: 20px 0 16px;
}

.gx-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: #f0f5fb;
    color: var(--gx-primary, #003966);
    border: 1.5px solid #c8ddf0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.gx-btn-export::before {
    content: '↓';
    font-size: 1rem;
    font-weight: 800;
}

.gx-btn-export:hover {
    background: #ddeaf7;
    border-color: var(--gx-primary, #003966);
    color: var(--gx-primary, #003966);
}

.gx-mis-datos__policy-link a {
    color: var(--gx-primary, #003966);
    font-size: 0.85rem;
}

/* =====================================================
   VER PEDIDO
===================================================== */

.gx-order-view {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Header: número + fecha + estado */
.gx-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gx-border, #e5e7eb);
}

.gx-order-header__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gx-order-header__number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gx-primary, #003966);
}

.gx-order-header__date {
    font-size: 0.85rem;
    color: var(--gx-muted, #6b7280);
}

/* Badge de estado */
.gx-order-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #e8f0f9;
    color: var(--gx-primary, #003966);
}

.gx-order-status--completed  { background: #edfaf3; color: #1a7f4b; }
.gx-order-status--processing { background: #fff8e1; color: #9a6700; }
.gx-order-status--pending    { background: #f5f5f5; color: #555; }
.gx-order-status--cancelled,
.gx-order-status--failed     { background: #fdf2f2; color: #c0392b; }
.gx-order-status--on-hold    { background: #fff3e0; color: #e67e22; }

/* Notas de seguimiento */
.gx-order-notes__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gx-text, #1f1f1f);
    margin: 0 0 12px;
}

.gx-order-notes__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gx-order-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 16px;
    background: #f5f8fc;
    border-radius: 10px;
    font-size: 0.875rem;
}

.gx-order-note__date {
    white-space: nowrap;
    color: var(--gx-muted, #6b7280);
    font-size: 0.8rem;
    padding-top: 2px;
    flex-shrink: 0;
}

.gx-order-note__text p { margin: 0; }

/* Sección detalles del pedido */
.woocommerce-order-details {
    background: #f9fafb;
    border: 1px solid var(--gx-border, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
}

.woocommerce-order-details__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gx-primary, #003966);
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gx-border, #e5e7eb);
    background: #fff;
}

/* Tabla de productos */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.woocommerce-table--order-details thead th {
    padding: 10px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gx-muted, #6b7280);
    background: #f9fafb;
    border-bottom: 1px solid var(--gx-border, #e5e7eb);
}

.woocommerce-table--order-details thead th.product-total { text-align: right; }

.woocommerce-table--order-details tbody tr {
    border-bottom: 1px solid var(--gx-border, #e5e7eb);
}

.woocommerce-table--order-details tbody tr:last-child { border-bottom: none; }

.woocommerce-table--order-details tbody td {
    padding: 16px 20px;
    vertical-align: middle;
}

.woocommerce-table--order-details .product-name {
    font-weight: 600;
    color: var(--gx-text, #1f1f1f);
    line-height: 1.4;
}

.woocommerce-table--order-details .product-name a {
    color: var(--gx-primary, #003966);
    text-decoration: none;
}

.woocommerce-table--order-details .product-name a:hover { text-decoration: underline; }

.woocommerce-table--order-details .product-quantity {
    color: var(--gx-muted, #6b7280);
    font-weight: 400;
    font-size: 0.875rem;
}

.woocommerce-table--order-details .product-total {
    text-align: right;
    font-weight: 600;
    color: var(--gx-text, #1f1f1f);
    white-space: nowrap;
}

/* Totales */
.woocommerce-table--order-details tfoot {
    border-top: 2px solid var(--gx-border, #e5e7eb);
    background: #f9fafb;
}

.woocommerce-table--order-details tfoot tr {
    border-bottom: 1px solid var(--gx-border, #e5e7eb);
}

.woocommerce-table--order-details tfoot tr:last-child { border-bottom: none; }

.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    padding: 10px 20px;
    font-size: 0.875rem;
    color: var(--gx-muted, #6b7280);
}

.woocommerce-table--order-details tfoot td { text-align: right; }

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gx-primary, #003966);
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Dirección de facturación / envío — HTML propio sin floats de WC */
.gx-order-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .gx-order-addresses { grid-template-columns: 1fr; }
}

.gx-order-address-card {
    background: #f9fafb;
    border: 1px solid var(--gx-border, #e5e7eb);
    border-radius: 14px;
    padding: 20px 24px;
}

.gx-order-address-card__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gx-muted, #6b7280);
    margin: 0 0 12px;
}

.gx-order-address-card__body {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--gx-text, #1f1f1f);
    margin: 0;
}

.gx-order-address-card__meta {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--gx-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Volver a mis pedidos */
.gx-order-back__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gx-primary, #003966);
    text-decoration: none;
}

.gx-order-back__link:hover { text-decoration: underline; }

/* Botones WC dentro del contenido de cuenta */
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content .button {
    display: inline-block;
    padding: 10px 22px;
    background: var(--gx-primary, #003966);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content .button:hover {
    background: #002a4d;
    color: #fff;
}

/* =====================================================
   FORMULARIOS DENTRO DE MI CUENTA (edit-account, etc.)
===================================================== */

.gx-form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 4px;
}

.gx-form-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gx-primary, #003966);
    margin: 0;
}

.gx-form-section__hint {
    font-size: 0.85rem;
    color: var(--gx-muted, #6b7280);
    margin: -10px 0 0;
}

.gx-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .gx-form-row-2col { grid-template-columns: 1fr; }
}

.gx-field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--gx-muted, #6b7280);
    margin-top: 5px;
}

.gx-edit-account-form .gx-btn-auth {
    width: auto;
    padding: 12px 32px;
    margin-top: 8px;
}

/* =====================================================
   FORMULARIO EDITAR DIRECCIÓN
===================================================== */

.gx-address-form-wrap {
    max-width: 640px;
}

.gx-address-form-intro {
    color: var(--gx-muted, #6b7280);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Grid de 2 columnas — form-row-wide ocupa todo el ancho */
.gx-address-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .gx-address-fields { grid-template-columns: 1fr !important; }
}

.gx-address-fields .form-row {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: none !important;
}

.gx-address-fields .form-row-wide {
    grid-column: 1 / -1;
}

/* Etiquetas */
.gx-address-fields label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gx-text, #1f1f1f);
    margin-bottom: 6px;
}

.gx-address-fields label abbr,
.gx-address-fields label .required {
    color: #e53e3e;
    font-weight: 700;
    text-decoration: none;
    border: none;
    margin-left: 2px;
}



/* Inputs y selects */
.gx-address-fields .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.gx-address-fields .input-text,
.gx-address-fields select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gx-border, #e5e7eb);
    border-radius: var(--gx-radius-md, 10px);
    font-size: 0.95rem;
    color: var(--gx-text, #1f1f1f);
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.gx-address-fields .input-text:focus,
.gx-address-fields select:focus {
    border-color: var(--gx-primary, #003966);
    box-shadow: 0 0 0 3px rgba(0, 57, 102, 0.1);
}

/* Mensajes de error de campo */
.gx-address-fields .woocommerce-error,
.gx-address-fields .woocommerce-invalid .input-text {
    border-color: #e53e3e;
}

/* Texto "opcional" en etiquetas */
.gx-address-fields label .optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gx-muted, #6b7280);
    margin-left: 4px;
}

/* Select2 — dropdowns de país y región */
.gx-address-fields .select2-container {
    width: 100% !important;
}

.gx-address-fields .select2-container .select2-selection--single {
    height: auto !important;
    padding: 10px 14px;
    border: 1.5px solid var(--gx-border, #e5e7eb) !important;
    border-radius: var(--gx-radius-md, 10px) !important;
    font-size: 0.95rem;
    background: #fff;
    display: flex;
    align-items: center;
}

.gx-address-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--gx-text, #1f1f1f);
    line-height: normal;
    padding: 0;
}

.gx-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    height: auto;
}

.gx-address-fields .select2-container--default.select2-container--focus .select2-selection--single,
.gx-address-fields .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--gx-primary, #003966) !important;
    box-shadow: 0 0 0 3px rgba(0, 57, 102, 0.1);
    outline: none;
}

/* Botones del formulario */
.gx-address-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.gx-address-form-actions .gx-btn-auth {
    width: auto;
    padding: 12px 28px;
}

/* =====================================================
   LISTADO MIS DIRECCIONES (my-address.php)
===================================================== */

.gx-my-addresses__intro {
    color: var(--gx-muted, #6b7280);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.gx-my-addresses__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .gx-my-addresses__grid { grid-template-columns: 1fr; }
}

.gx-my-addresses__card {
    background: #f9fafb;
    border: 1px solid var(--gx-border, #e5e7eb);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gx-my-addresses__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gx-my-addresses__card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gx-muted, #6b7280);
    margin: 0;
}

.gx-my-addresses__edit-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gx-primary, #003966);
    text-decoration: none;
    padding: 4px 12px;
    border: 1.5px solid var(--gx-primary, #003966);
    border-radius: 20px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.gx-my-addresses__edit-link:hover {
    background: var(--gx-primary, #003966);
    color: #fff;
}

.gx-my-addresses__card-body {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--gx-text, #1f1f1f);
    margin: 0;
}

.gx-my-addresses__empty {
    font-size: 0.85rem;
    color: var(--gx-muted, #6b7280);
    font-style: italic;
}

/* =====================================================
   CHECKOUT — BLOQUE CONSENTIMIENTO
   (Estilos que van junto al checkout)
===================================================== */

.gx-consent-block {
    margin-top: 30px;
}

.gx-consent-info {
    font-size: 0.9rem;
    color: var(--gx-muted, #6b7280);
    margin-bottom: 16px;
    line-height: 1.6;
}

.gx-consent-field {
    padding: 4px 0;
}

.gx-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gx-text, #1f1f1f);
}

.gx-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gx-primary, #003966);
    cursor: pointer;
}

.gx-consent-label a {
    color: var(--gx-primary, #003966);
    font-weight: 600;
}

/* =====================================================
   PÁGINA — TRATAMIENTO DE DATOS PERSONALES
===================================================== */

.gx-privacy-page {
    max-width: 820px;
    margin: 60px auto;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

.gx-privacy-page__hero {
    background: var(--gx-primary, #003966);
    border-radius: 20px;
    padding: 48px 52px;
    margin-bottom: 48px;
    color: #fff;
}

.gx-privacy-page__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.gx-privacy-page__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.15;
    color: #fff;
}

.gx-privacy-page__updated {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

.gx-privacy-page__body {
    background: #fff;
    border: 1px solid var(--gx-border, #e5e7eb);
    border-radius: 20px;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.gx-privacy-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #eef3f9;
    color: var(--gx-primary, #003966);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-right: 10px;
    vertical-align: middle;
}

.gx-privacy-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gx-primary, #003966);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gx-border, #e5e7eb);
    display: flex;
    align-items: center;
}

.gx-privacy-section p {
    font-size: 0.92rem;
    color: var(--gx-text, #1f1f1f);
    line-height: 1.8;
    margin: 0 0 10px;
}

.gx-privacy-section p:last-child {
    margin-bottom: 0;
}

.gx-privacy-section ul {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gx-privacy-section ul li {
    font-size: 0.92rem;
    color: var(--gx-text, #1f1f1f);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.gx-privacy-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gx-primary, #003966);
    font-weight: 700;
    font-size: 0.8rem;
    top: 2px;
}

.gx-privacy-section a {
    color: var(--gx-primary, #003966);
    font-weight: 600;
    text-decoration: none;
}

.gx-privacy-section a:hover {
    text-decoration: underline;
}

/* Caja resaltada — derechos del titular */
.gx-privacy-rights {
    background: #f0f5fb;
    border: 1px solid #c8ddf0;
    border-radius: 14px;
    padding: 24px 28px;
    margin-top: 4px;
}

.gx-privacy-rights ul {
    margin: 0;
}

.gx-privacy-rights li strong {
    color: var(--gx-primary, #003966);
}

/* Caja de contacto */
.gx-privacy-contact {
    background: var(--gx-primary, #003966);
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}

.gx-privacy-contact__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.gx-privacy-contact__text {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.gx-privacy-contact__text a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .gx-privacy-page__hero,
    .gx-privacy-page__body {
        padding: 28px 24px;
    }

    .gx-privacy-page__title {
        font-size: 1.5rem;
    }

    .gx-privacy-contact {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================
   MIS DATOS — ZONA PELIGROSA
===================================================== */

.gx-danger-zone {
    margin-top: 24px;
    border: 1.5px solid #fca5a5;
    border-radius: 14px;
    padding: 24px 28px;
    background: #fff8f8;
}

.gx-danger-zone__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #b91c1c;
    margin: 0 0 8px;
}

.gx-danger-zone__text {
    font-size: 0.875rem;
    color: var(--gx-muted, #6b7280);
    margin: 0 0 20px;
    line-height: 1.6;
}

.gx-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.gx-btn-delete:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* Estado confirmado / en proceso */
.gx-deletion-confirmed {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 18px 22px;
}

.gx-deletion-confirmed__icon {
    width: 28px;
    height: 28px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #166534;
    font-weight: 800;
}

.gx-deletion-confirmed__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gx-text, #1f1f1f);
    margin: 0;
}

.gx-deletion-confirmed__text strong {
    color: #166534;
    display: block;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

/* =====================================================
   MODAL — SOLICITUD ELIMINACIÓN
===================================================== */

.gx-delete-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gx-delete-modal.is-open {
    display: flex;
}

.gx-delete-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.gx-delete-modal__card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: gxDeleteModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gxDeleteModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.gx-delete-modal__icon {
    width: 56px;
    height: 56px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #b91c1c;
}

.gx-delete-modal__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gx-text, #1f1f1f);
    text-align: center;
    margin: 0 0 10px;
}

.gx-delete-modal__text {
    font-size: 0.9rem;
    color: var(--gx-muted, #6b7280);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 18px;
}

.gx-delete-modal__warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #92400e;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gx-delete-modal__check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--gx-text, #1f1f1f);
    cursor: pointer;
    margin-bottom: 24px;
    line-height: 1.5;
}

.gx-delete-modal__check-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #b91c1c;
    cursor: pointer;
}

.gx-delete-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.gx-btn-delete-confirm {
    width: 100%;
    padding: 14px;
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.3);
}

.gx-btn-delete-confirm:hover:not(:disabled) {
    background: #991b1b;
}

.gx-btn-delete-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.gx-btn-cancel-delete {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--gx-muted, #6b7280);
    border: 1.5px solid var(--gx-border, #e5e7eb);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.gx-btn-cancel-delete:hover {
    background: #f5f5f5;
    color: var(--gx-text, #1f1f1f);
}

/* =====================================================
   FICHAS TÉCNICAS Y PDFs
===================================================== */

.gx-fichas__intro {
    color: #6b7280;
    font-size: 0.9rem;
    margin: -8px 0 28px;
}

.gx-fichas__empty {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}

.gx-fichas__empty svg {
    display: block;
    margin: 0 auto 12px;
    opacity: .4;
}

.gx-fichas__grupo {
    margin-bottom: 36px;
}

.gx-fichas__cat-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
    margin: 0 0 14px;
}

.gx-fichas__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gx-ficha-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color .15s, box-shadow .15s;
}

.gx-ficha-card:hover {
    border-color: #1a3a6e;
    box-shadow: 0 2px 8px rgba(26,58,110,.08);
}

.gx-ficha-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1a3a6e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-ficha-card__body {
    flex: 1;
    min-width: 0;
}

.gx-ficha-card__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gx-ficha-card__desc {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gx-ficha-card__action {
    flex-shrink: 0;
}

.gx-ficha-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1a3a6e;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: filter .15s;
    white-space: nowrap;
}

.gx-ficha-btn:hover {
    filter: brightness(.88);
    color: #fff;
}

.gx-ficha-btn--disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 480px) {
    .gx-ficha-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    .gx-ficha-card__action {
        width: 100%;
    }
    .gx-ficha-btn {
        width: 100%;
        justify-content: center;
    }
}
