/* =========================================================================
   CLUB PURA NATURA — Subscription Page Styles
   ========================================================================= */
:root {
    --sub-red: #E31E24;
    --sub-red-hover: #c41a1f;
    --sub-black: #1A1A1A;
    --sub-beige: #F9F5F0;
    --sub-gray: #6B7280;
    --sub-green: #16a34a;
    --sub-gold: #f59e0b;
    --sub-radius: 12px;
    --sub-page-gutter: 20px;
}

/* ── HERO: dark, minimal, matching site header ── */
.pn-sub-hero {
    background: linear-gradient(135deg, #141414 0%, #1f1f1f 100%);
    color: #fff;
    padding: 50px 30px 45px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}
.pn-sub-hero h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 10px;
    color: #ffffff;
}
.pn-sub-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    font-weight: 500;
}

/* ── BENEFITS BAR ── */
.pn-sub-benefits {
    background: var(--sub-beige);
    padding: 30px 20px;
    border-bottom: 1px solid #e5e0d8;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}
.pn-sub-benefits-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 20px;
}
.pn-sub-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.benefit-icon { font-size: 28px; }
.pn-sub-benefit-card strong {
    font-size: 14px;
    color: var(--sub-black);
}
.pn-sub-benefit-card span:last-child {
    font-size: 12px;
    color: var(--sub-gray);
}

/* ── INFO SECTION ── */
.pn-sub-info {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: clip;
}
.pn-sub-info-inner {
    display: grid;
    /* minmax(0, …) evita que la columna fija imponga ancho mínimo y rompa el viewport */
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
    background: #fff;
    border-radius: var(--sub-radius);
    border: 1px solid #e5e7eb;
    padding: clamp(18px, 4vw, 32px);
    box-sizing: border-box;
}
.pn-sub-info-img img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 440px;
}
.pn-sub-info-text h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--sub-black);
    margin: 0 0 16px;
}
.pn-sub-info-text ol {
    padding-left: 1.25rem;
    margin: 0 0 20px;
    color: #444;
    line-height: 1.8;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.pn-sub-info-text ol li { margin-bottom: 6px; }
.pn-sub-info-conditions {
    background: var(--sub-beige);
    border-radius: 8px;
    padding: 16px 20px;
}
.pn-sub-info-conditions h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--sub-black);
}
.pn-sub-info-conditions ul {
    padding-left: 18px;
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

/* ── MAIN LAYOUT ── */
.pn-sub-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--sub-page-gutter) 80px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: clip;
}
.pn-sub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
    min-width: 0;
}
.pn-sub-left,
.pn-sub-sidebar {
    min-width: 0;
}

/* ── SECTIONS ── */
.pn-sub-section {
    background: #fff;
    border-radius: var(--sub-radius);
    border: 1px solid #e5e7eb;
    padding: clamp(18px, 4vw, 28px);
    margin-bottom: 24px;
    transition: box-shadow 0.3s;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: clip;
}
.pn-sub-section:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.pn-sub-section-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 700;
    color: var(--sub-black);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f3f4f6;
}
.pn-sub-section-title .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--sub-red);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── EMPTY CART ── */
.pn-sub-empty {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: var(--sub-radius);
    border: 1px solid #e5e7eb;
}
.pn-sub-empty h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: var(--sub-black); }
.pn-sub-empty p { color: var(--sub-gray); margin: 0 0 24px; line-height: 1.6; }
.pn-sub-empty-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pn-sub-empty-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-size: 15px;
    transition: all 0.3s;
}
.pn-sub-empty-btn:hover { transform: translateY(-2px); }
.pn-sub-empty-btn--red { background: var(--sub-black); color: #fff; }
.pn-sub-empty-btn--red:hover { background: #fff; color: var(--sub-black); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.pn-sub-empty-btn--dark { background: #fff; color: var(--sub-black); border: 2px solid #e5e7eb; }
.pn-sub-empty-btn--dark:hover { background: var(--sub-black); color: #fff; }

/* ── CART ITEMS ── */
.pn-sub-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    min-width: 0;
}
.pn-sub-cart-item:last-child { border-bottom: none; }
.pn-sub-cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.pn-sub-cart-item-info { flex: 1; min-width: 0; }
.pn-sub-cart-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--sub-black);
    margin: 0 0 4px;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.pn-sub-cart-item-qty { font-size: 12px; color: var(--sub-gray); }
.pn-sub-cart-item-prices {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}
.pn-sub-price-original { text-decoration: line-through; color: #9ca3af; font-size: 12px; display: block; }
.pn-sub-price-sub { color: var(--sub-red); font-weight: 700; font-size: 15px; }

/* Cart item edit controls */
.pn-sub-cart-item-actions { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.pn-sub-qty-btn {
    width: 24px; height: 24px; border: 1px solid #d1d5db; border-radius: 4px;
    background: #fff; color: var(--sub-black); font-size: 14px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; padding: 0; line-height: 1;
}
.pn-sub-qty-btn:hover { border-color: var(--sub-red); color: var(--sub-red); }
.pn-sub-qty-val { font-size: 13px; font-weight: 600; min-width: 20px; text-align: center; color: var(--sub-black); }
.pn-sub-remove-btn {
    background: none; border: none; color: #9ca3af; font-size: 12px;
    cursor: pointer; padding: 2px 4px; margin-left: 6px; transition: color 0.2s;
}
.pn-sub-remove-btn:hover { color: #ef4444; }

/* ── FREQUENCY ── */
.pn-sub-freq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn-sub-freq-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: var(--sub-radius);
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    min-width: 0;
    /* visible: la pastilla «Recomendado» debe poder mostrarse completa */
    overflow: visible;
    box-sizing: border-box;
}
/* Tarjeta con recomendación: espacio superior para la pastilla (sin top negativo) */
.pn-sub-freq-card:has(.freq-recommended) {
    padding-top: 36px;
}
.pn-sub-freq-card:hover { border-color: #d1d5db; background: #fafafa; }
.pn-sub-freq-card.active { border-color: var(--sub-red); background: #fef2f2; box-shadow: 0 0 0 3px rgba(227,30,36,0.1); }
.pn-sub-freq-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pn-sub-freq-card .freq-check {
    position: absolute; top: 12px; right: 12px; width: 22px; height: 22px;
    border-radius: 50%; border: 2px solid #d1d5db; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.pn-sub-freq-card.active .freq-check { border-color: var(--sub-red); background: var(--sub-red); }
.pn-sub-freq-card.active .freq-check::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 800; }
.freq-title { font-size: 16px; font-weight: 700; color: var(--sub-black); margin-bottom: 6px; }
.freq-desc { font-size: 13px; color: var(--sub-gray); line-height: 1.4; overflow-wrap: anywhere; }
.freq-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.freq-badge-free { background: #dcfce7; color: var(--sub-green); }
.freq-badge-cost { background: #fff7ed; color: #ea580c; }
.freq-recommended {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sub-gold);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    max-width: calc(100% - 48px);
    box-sizing: border-box;
    line-height: 1.25;
    z-index: 2;
    text-align: center;
}

/* ── PET CARDS (multi-pet) ── */
.pn-sub-pet-card {
    border: 1px solid #e5e7eb; border-radius: 10px;
    margin-bottom: 14px; overflow: hidden; background: #fafafa;
}
.pn-sub-pet-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb;
}
.pn-sub-pet-card-title { font-weight: 700; font-size: 14px; color: var(--sub-black); }
.pn-sub-pet-remove {
    background: none; border: none; color: #ef4444; font-size: 13px;
    cursor: pointer; font-weight: 600; padding: 4px 8px;
}
.pn-sub-pet-remove:hover { text-decoration: underline; }
.pn-sub-pet-card-body { padding: 16px; }
.pn-sub-pet-type-grid { display: flex; gap: 10px; }
.pn-sub-pet-type-btn {
    flex: 1; padding: 10px; border: 2px solid #e5e7eb; border-radius: 8px;
    background: #fff; cursor: pointer; text-align: center; font-size: 14px;
    font-weight: 600; transition: all 0.3s; color: var(--sub-black);
}
.pn-sub-pet-type-btn:hover { border-color: #d1d5db; }
.pn-sub-pet-type-btn.active { border-color: var(--sub-red); background: #fef2f2; color: var(--sub-red); }
.pn-sub-add-pet-btn {
    display: block; width: 100%; padding: 12px; background: #f9fafb;
    border: 2px dashed #d1d5db; border-radius: 8px; color: var(--sub-gray);
    font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s;
    text-align: center; margin-top: 4px;
}
.pn-sub-add-pet-btn:hover { border-color: var(--sub-red); color: var(--sub-red); background: #fef2f2; }
.pn-sub-field-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--sub-black); margin-bottom: 6px;
}

/* ── FORM FIELDS ── */
.pn-sub-field { margin-bottom: 16px; }
.pn-sub-field label { display: block; font-size: 13px; font-weight: 600; color: var(--sub-black); margin-bottom: 6px; }
.pn-sub-field label .req { color: var(--sub-red); }
.pn-sub-field input, .pn-sub-field select, .pn-sub-field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 14px; color: var(--sub-black); background: #fff; outline: none;
    transition: all 0.3s; font-family: inherit; box-sizing: border-box;
}
.pn-sub-field input:focus, .pn-sub-field select:focus, .pn-sub-field textarea:focus {
    border-color: var(--sub-red); box-shadow: 0 0 0 3px rgba(227,30,36,0.08);
}
.pn-sub-field textarea { resize: vertical; min-height: 80px; }
.pn-sub-field .field-error { font-size: 12px; color: var(--sub-red); margin-top: 4px; display: none; }
.pn-sub-field.has-error input, .pn-sub-field.has-error select { border-color: var(--sub-red); background: #fff5f5; }
.pn-sub-field.has-error .field-error { display: block; }
.pn-sub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── UPSELLS (horizontal cards) ── */
.pn-sub-upsell-grid { display: flex; flex-direction: column; gap: 12px; }
.pn-sub-upsell-card {
    border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
    transition: all 0.3s; background: #fff; display: flex; flex-direction: row;
    align-items: center;
}
.pn-sub-upsell-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.pn-sub-upsell-card img {
    width: 80px; height: 80px; object-fit: cover; display: block;
    flex-shrink: 0; border-right: 1px solid #f3f4f6;
}
.pn-sub-upsell-info {
    padding: 10px 14px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}
.pn-sub-upsell-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--sub-black);
    margin: 0;
    line-height: 1.35;
    flex: 1 1 140px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.pn-sub-upsell-price {
    font-size: 14px; font-weight: 700; color: var(--sub-red);
    white-space: nowrap; margin: 0;
}
.pn-sub-upsell-btn {
    display: inline-block; padding: 6px 14px; background: var(--sub-black); color: #fff;
    border: none; border-radius: 6px; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.3s; text-align: center; text-decoration: none;
    white-space: nowrap; flex-shrink: 0;
}
.pn-sub-upsell-btn:hover { background: var(--sub-red); }

/* ── STICKY SIDEBAR ── */
.pn-sub-sidebar { position: sticky; top: 100px; }
.pn-sub-summary { background: #fff; border: 2px solid #e5e7eb; border-radius: var(--sub-radius); overflow: hidden; }
.pn-sub-summary-header {
    background: linear-gradient(135deg, var(--sub-gold), #f97316);
    color: #000;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: clamp(13px, 3.2vw, 15px);
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}
.pn-sub-summary-body { padding: 20px; }
.pn-sub-summary-items { max-height: 240px; overflow-y: auto; margin-bottom: 16px; padding-right: 4px; }
.pn-sub-summary-items::-webkit-scrollbar { width: 4px; }
.pn-sub-summary-items::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.pn-sub-summary-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 13px; border-bottom: 1px solid #f3f4f6;
}
.pn-sub-summary-item:last-child { border-bottom: none; }
.pn-sub-summary-item-name { flex: 1; color: var(--sub-black); font-weight: 500; padding-right: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-sub-summary-item-price { font-weight: 600; color: var(--sub-black); white-space: nowrap; }
.pn-sub-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 12px;
    flex-wrap: wrap;
    padding: 8px 0;
    font-size: 14px;
    color: var(--sub-gray);
}
.pn-sub-summary-line > span:first-child {
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
    overflow-wrap: anywhere;
}
.pn-sub-summary-line > span:last-child {
    text-align: right;
    white-space: nowrap;
}
.pn-sub-summary-line.discount { color: var(--sub-green); font-weight: 600; }
.pn-sub-summary-line.shipping { border-bottom: 1px solid #e5e7eb; padding-bottom: 14px; margin-bottom: 10px; }
.pn-sub-summary-line.shipping.free { color: var(--sub-green); font-weight: 600; }
.pn-sub-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 12px;
    flex-wrap: wrap;
    padding: 14px 0 4px;
    font-size: clamp(17px, 4vw, 20px);
    font-weight: 800;
    color: var(--sub-black);
}

/* Payment badge */
.pn-sub-payment-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
    min-width: 0;
}
.pn-sub-payment-text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.pn-sub-payment-badge .badge-icon {
    width: 40px; height: 40px; background: var(--sub-green); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pn-sub-payment-badge .badge-icon svg { color: #fff; }
.pn-sub-payment-text strong { display: block; font-size: 14px; color: var(--sub-green); }
.pn-sub-payment-text span { font-size: 12px; color: var(--sub-gray); }

/* Guarantee */
.pn-sub-guarantee {
    display: flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 10px 14px; background: var(--sub-beige); border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--sub-black);
}
.pn-sub-guarantee svg { color: var(--sub-green); flex-shrink: 0; }

/* First-time recommendation */
.pn-sub-first-time {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.pn-sub-first-time a { color: #92400e; font-weight: 700; text-decoration: underline; }

/* Terms checkbox */
.pn-sub-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--sub-gray);
    cursor: pointer;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.pn-sub-terms-check input { width: auto; margin-top: 2px; }
.pn-sub-terms-check.has-error { color: var(--sub-red); }

/* Progress bar */
.pn-sub-progress { margin-top: 14px; }
.pn-sub-progress-label { font-size: 12px; color: var(--sub-gray); margin-bottom: 6px; }
.pn-sub-progress-track {
    width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden;
}
.pn-sub-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--sub-gold), #f97316);
    border-radius: 4px; transition: width 0.4s ease;
}

/* Security widget */
.pn-sub-security {
    margin-top: 16px; padding: 14px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 8px; text-align: center;
}
.pn-sub-security-lock {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--sub-green); margin-bottom: 10px;
}
.pn-sub-security-methods {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 8px;
}
.pn-sub-security-methods span { font-size: 11px; color: var(--sub-gray); }
.pn-sub-security-ssl {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    font-size: 11px; color: var(--sub-gray);
}
.pn-sub-security-ssl svg { color: var(--sub-green); }

/* Submit */
.pn-sub-submit-btn {
    width: 100%; padding: 18px;
    background: linear-gradient(135deg, var(--sub-red) 0%, #B82525 100%);
    color: #fff; border: none; border-radius: 12px; font-size: 18px;
    font-weight: 800; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 20px;
    position: relative; overflow: hidden; letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(217, 49, 49, 0.3);
    text-transform: uppercase;
}
.pn-sub-submit-btn:hover:not(:disabled) { 
    background: linear-gradient(135deg, #E64040 0%, var(--sub-red) 100%);
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(217, 49, 49, 0.4); 
}
.pn-sub-submit-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(217, 49, 49, 0.3); 
}
.pn-sub-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.pn-sub-submit-btn .btn-loader {
    display: none; width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.6s linear infinite; margin: 0 auto;
}
.pn-sub-submit-btn.loading .btn-text { display: none; }
.pn-sub-submit-btn.loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Create account */
.pn-sub-create-account { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--sub-gray); }
.pn-sub-create-account input { width: auto; }

/* Alerts */
.pn-sub-alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; margin-bottom: 16px; display: none; }
.pn-sub-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pn-sub-alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Success screen Modal */
.pn-sub-success { 
    display: none; 
    text-align: center; 
    padding: 60px 40px; 
    width: 90%;
    max-width: 500px; 
    background: #fff;
    border-radius: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 0 0 100vmax rgba(0,0,0,0.6);
}
.pn-sub-success .check-circle {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--sub-green), #22c55e);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; animation: popIn 0.5s ease;
}
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
.pn-sub-success h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; color: var(--sub-black); }
.pn-sub-success p { color: var(--sub-gray); font-size: 15px; line-height: 1.7; margin: 0 0 30px; }
.pn-sub-success a {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--sub-black); color: #fff; padding: 14px 28px;
    border-radius: 8px; text-decoration: none; font-weight: 700; transition: all 0.3s;
}
.pn-sub-success a:hover { background: var(--sub-red); }

/* Honeypot */
.pn-hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Comuna coverage warning */
.pn-sub-comuna-warn {
    margin-top: 6px; padding: 8px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 600; line-height: 1.4;
}
.pn-sub-comuna-warn.warn-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.pn-sub-comuna-warn.warn-no { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .pn-sub-layout { grid-template-columns: minmax(0, 1fr); }
    .pn-sub-sidebar { position: static; order: 10; }
    .pn-sub-info-inner { grid-template-columns: 1fr; }
    .pn-sub-info-img img { max-height: 240px; width: 100%; }
}
@media (max-width: 640px) {
    :root { --sub-page-gutter: 16px; }
    .pn-sub-hero { padding: 36px var(--sub-page-gutter) 32px; }
    .pn-sub-benefits { padding: 22px var(--sub-page-gutter); }
    .pn-sub-info { margin: 28px auto; padding: 0 var(--sub-page-gutter); }
    .pn-sub-freq-grid { grid-template-columns: 1fr; }
    .pn-sub-cart-item-info { flex: 1 1 0; min-width: 0; }
    .pn-sub-cart-item-prices { margin-left: auto; }
    .pn-sub-summary-item {
        align-items: flex-start;
        gap: 6px;
    }
    .pn-sub-summary-item-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        padding-right: 8px;
    }
    /* Upsells “Complementa…”: una fila, inline, miniatura pequeña pegada a la izquierda */
    .pn-sub-upsell-card {
        flex-direction: row;
        align-items: center;
    }
    .pn-sub-upsell-card img {
        width: 64px;
        height: 64px;
        object-fit: cover;
        object-position: center;
        flex-shrink: 0;
        border-right: 1px solid #f3f4f6;
        border-bottom: none;
    }
    .pn-sub-upsell-info {
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
        padding: 8px 10px;
    }
    .pn-sub-upsell-name {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pn-sub-upsell-price {
        flex-shrink: 0;
        font-size: 13px;
        margin-left: 0;
    }
    .pn-sub-upsell-btn {
        flex-shrink: 0;
        width: auto;
        padding: 8px 10px;
        font-size: 11px;
    }
    .freq-recommended {
        max-width: calc(100% - 56px);
    }
}
@media (max-width: 480px) {
    .pn-sub-row { grid-template-columns: 1fr; }
    .pn-sub-pet-type-grid { flex-direction: column; }
    .pn-sub-payment-badge {
        flex-wrap: wrap;
    }
    .pn-sub-success {
        width: min(calc(100vw - 32px), 500px);
        padding: 40px 20px;
        box-sizing: border-box;
    }
}
