/* GlixNet Pago — Estilos */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ── Ajustes de layout de la página con el shortcode ── */
.page-id-6796 .content-wrapper {
    padding-top: 20px !important;
    margin-top: 0 !important;
}
.page-id-6796 .content-wrapper-sidebar-position-right .content,
.page-id-6796 .content-wrapper .content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}
.page-id-6796 .sidebar {
    display: none !important;
}

.glixnet-wrap {
    font-family: 'Nunito', sans-serif;
    width: 100% !important;
    max-width: 500px;
    margin: 20px auto !important;
    padding: 0 16px;
    box-sizing: border-box;
    overflow-x: hidden;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* Card */
.glixnet-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    border: 1px solid #eef0f4;
}

.glixnet-card--success {
    text-align: center;
    background: linear-gradient(135deg, #f0fff8 0%, #e6f9ef 100%);
    border-color: #b2e8cc;
}

/* Logo area */
.glixnet-logo-area {
    text-align: center;
    margin-bottom: 28px;
}
.glixnet-logo-area img {
    height: 48px;
    margin-bottom: 12px;
}
.glixnet-logo-area h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.glixnet-logo-area p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Headings inside card */
.glixnet-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 20px;
}
.glixnet-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 16px;
}

/* Fields */
.glixnet-field {
    margin-bottom: 16px;
}
.glixnet-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.glixnet-field input[type="text"],
.glixnet-field input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    color: #1a1a2e !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s;
    box-sizing: border-box;
    outline: none;
}
.glixnet-field input[type="text"]::placeholder,
.glixnet-field input[type="tel"]::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}
.glixnet-field input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.glixnet-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* Botones */
.glixnet-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    margin-top: 8px;
}
.glixnet-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}
.glixnet-btn:active {
    transform: translateY(0);
}
.glixnet-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.glixnet-btn--green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.glixnet-btn--green:hover {
    box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}

/* Volver */
.glixnet-back {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    font-weight: 600;
}
.glixnet-back:hover { color: #f97316; }

/* Info cliente */
.glixnet-cliente-info {
    background: #f0f4ff;
    border: 1px solid #c7d7ff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.glixnet-cliente-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    padding: 4px 0;
    color: #374151;
}
.glixnet-cliente-row:not(:last-child) {
    border-bottom: 1px solid #dde6ff;
    padding-bottom: 8px;
    margin-bottom: 4px;
}
.glixnet-cliente-row span {
    color: #6b7280;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}
.glixnet-cliente-row strong {
    color: #1e293b;
    font-size: 13px;
    text-align: right;
}

/* Conceptos */
.glixnet-conceptos {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.glixnet-concepto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}
.glixnet-concepto-item:last-child { border-bottom: none; }
.glixnet-concepto-item strong { color: #1a1a2e; }

/* Total */
.glixnet-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f4ff;
    color: #1e293b;
    border: 2px solid #c7d7ff;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
}
.glixnet-total-box strong {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
}

/* Saldo a favor */
.glixnet-saldo-favor {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.glixnet-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    cursor: pointer;
}
.glixnet-hint {
    font-size: 12px;
    color: #b45309;
    margin: 6px 0 0;
}

/* Divider */
.glixnet-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}

/* Seguridad */
.glixnet-secure-badge {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

/* Error por campo */
.glixnet-field input.glixnet-input--error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12) !important;
}
.glixnet-field-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 4px;
}

/* Error */
.glixnet-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
}

/* Éxito */
.glixnet-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}
.glixnet-card--success h2 {
    color: #065f46;
}
.glixnet-detalle {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0;
    font-size: 14px;
    color: #374151;
    text-align: left;
}
.glixnet-detalle p {
    margin: 4px 0;
}

/* Card brands */
.glixnet-card-brands {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.glixnet-brands-group {
    flex: 1;
}
.glixnet-brands-sep {
    width: 1px;
    background: #e5e7eb;
    align-self: stretch;
}
.glixnet-brands-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}
.glixnet-brands-logos {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.glixnet-brand-img {
    height: 28px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    object-fit: contain;
}

/* OpenPay badge */
.glixnet-openpay-row {
    display: block;
    text-align: center !important;
    margin-bottom: 4px;
}
.glixnet-openpay-via {
    display: block;
    text-align: center !important;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.glixnet-openpay-img {
    display: block !important;
    margin: 0 auto !important;
    height: 24px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

/* Loader shimmer */
@keyframes glix-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.glixnet-loading {
    animation: glix-pulse 1.2s infinite;
}

@media (max-width: 480px) {
    .glixnet-card { padding: 24px 18px; }
    .glixnet-field-row { grid-template-columns: 1fr; }
}
