/* ==========================================================
   UFOcamping Ecuador® — Equipos V4
   Diseño full-width + responsive
   ========================================================== */

.ufoeq-v3-fullwidth-wrap{
    clear:both;
    width:100%;
    margin:34px 0 26px;
}
.ufoeq-v3-fullwidth-inner{
    width:min(100%, 1380px);
    margin:0 auto;
}
.ufoeq-v3-fullwidth-inner form.cart{
    display:block!important;
    width:100%!important;
    float:none!important;
    margin:0!important;
}

.ufoeq-v3-box{
    --ufo-navy:#101d3c;
    --ufo-magenta:#b10e56;
    --ufo-magenta-soft:#fff3f8;
    --ufo-line:#e6e8ef;
    --ufo-muted:#667085;
    --ufo-green:#1b8a46;
    --ufo-green-bg:#eaf8ee;
    --ufo-red:#b42318;
    --ufo-red-bg:#fff0ef;
    position:relative;
    width:100%;
    box-sizing:border-box;
    padding:28px;
    border:1px solid #eceef4;
    border-radius:22px;
    background:#fff;
    box-shadow:0 12px 38px rgba(16,29,60,.08);
    color:var(--ufo-navy);
}
.ufoeq-v3-box *{box-sizing:border-box}

.ufoeq-v3-heading{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.ufoeq-v3-heading-icon{
    width:58px;height:58px;display:grid;place-items:center;flex:0 0 58px;
    border:1px solid var(--ufo-line);border-radius:50%;background:#fff;font-size:27px;
}
.ufoeq-v3-heading h2{margin:0 0 4px!important;font-size:29px!important;line-height:1.15!important;color:var(--ufo-navy)!important}
.ufoeq-v3-heading p{margin:0!important;color:var(--ufo-muted);font-size:15px}

.ufoeq-v3-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
.ufoeq-v3-mode-card{
    position:relative;display:grid;grid-template-columns:52px 1fr 24px;align-items:center;gap:14px;
    min-height:132px;padding:20px;border:1.5px solid var(--ufo-line);border-radius:16px;background:#fff;
    cursor:pointer;transition:.22s ease;box-shadow:0 5px 16px rgba(16,29,60,.025);
}
.ufoeq-v3-mode-card:hover{transform:translateY(-2px);border-color:#cfd4df;box-shadow:0 8px 20px rgba(16,29,60,.06)}
.ufoeq-v3-mode-card:has(input:checked){border-color:var(--ufo-magenta);box-shadow:0 0 0 2px rgba(177,14,86,.05),0 10px 24px rgba(177,14,86,.08)}
.ufoeq-v3-mode-card input{position:absolute;opacity:0;pointer-events:none}
.ufoeq-v3-mode-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#f5f7fb;font-size:25px}
.ufoeq-v3-mode-card:has(input:checked) .ufoeq-v3-mode-icon{background:var(--ufo-magenta-soft)}
.ufoeq-v3-mode-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.ufoeq-v3-mode-copy strong{font-size:16px;line-height:1.22;color:var(--ufo-navy)}
.ufoeq-v3-mode-copy small{font-size:13px;line-height:1.45;color:var(--ufo-muted)}
.ufoeq-v3-radio-dot{width:22px;height:22px;border:1.5px solid #aeb5c2;border-radius:50%;position:relative}
.ufoeq-v3-mode-card:has(input:checked) .ufoeq-v3-radio-dot{border-color:var(--ufo-magenta)}
.ufoeq-v3-mode-card:has(input:checked) .ufoeq-v3-radio-dot:after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--ufo-magenta)}

.ufoeq-v3-subpanel{
    margin-top:16px;padding:22px;border:1.5px solid rgba(177,14,86,.72);border-radius:18px;background:linear-gradient(180deg,#fff,#fffbfd);
}
.ufoeq-v3-subpanel[hidden]{display:none!important}
.ufoeq-v3-subpanel-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.ufoeq-v3-subpanel-icon{width:50px;height:50px;display:grid;place-items:center;flex:0 0 50px;border:1px solid rgba(177,14,86,.35);border-radius:50%;background:#fff5f9;font-size:23px}
.ufoeq-v3-subpanel-head h3{margin:0 0 3px!important;font-size:21px!important;line-height:1.2!important;color:var(--ufo-navy)!important}
.ufoeq-v3-subpanel-head p{margin:0!important;color:var(--ufo-muted);font-size:14px}

.ufoeq-v3-package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ufoeq-v3-package-card{
    display:flex;flex-direction:column;min-height:285px;padding:18px;border:1px solid var(--ufo-line);border-radius:16px;background:#fff;
    box-shadow:0 7px 18px rgba(16,29,60,.035);transition:.2s ease;
}
.ufoeq-v3-package-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(16,29,60,.07)}
.ufoeq-v3-package-card.is-soldout{opacity:.6}
.ufoeq-v3-package-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.ufoeq-v3-package-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fff1f6;font-size:20px}
.ufoeq-v3-stock{display:inline-flex;align-items:center;white-space:nowrap;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:700}
.ufoeq-v3-stock.is-available{color:var(--ufo-green);background:var(--ufo-green-bg)}
.ufoeq-v3-stock.is-unavailable{color:var(--ufo-red);background:var(--ufo-red-bg)}
.ufoeq-v3-package-card h4{margin:0 0 5px!important;font-size:19px!important;color:var(--ufo-navy)!important}
.ufoeq-v3-package-price{margin-bottom:8px;color:var(--ufo-magenta);font-size:27px;font-weight:800;line-height:1}
.ufoeq-v3-package-price .woocommerce-Price-amount{color:inherit!important}
.ufoeq-v3-package-card p{margin:0 0 16px!important;color:var(--ufo-muted);font-size:13px;line-height:1.5;flex:1}
.ufoeq-v3-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:13px;border-top:1px dashed #e4e6eb;color:#344054;font-size:12px}

.ufoeq-v3-stepper{display:grid;grid-template-columns:32px 44px 32px;align-items:center;border:1px solid #d8dce5;border-radius:9px;overflow:hidden;background:#fff}
.ufoeq-v3-stepper button{height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:var(--ufo-navy)!important;font-size:19px!important;font-weight:600!important;box-shadow:none!important}
.ufoeq-v3-stepper button:hover{background:#f6f7fa!important}
.ufoeq-v3-stepper input{
    width:44px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:0!important;border-left:1px solid #edf0f4!important;border-right:1px solid #edf0f4!important;border-radius:0!important;background:#fff!important;text-align:center!important;color:var(--ufo-navy)!important;font-weight:700!important;-moz-appearance:textfield;
}
.ufoeq-v3-stepper input::-webkit-outer-spin-button,.ufoeq-v3-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.ufoeq-v3-coupon{display:grid;grid-template-columns:48px 1fr minmax(220px,330px);align-items:center;gap:14px;margin-top:18px;padding:16px;border:1px dashed rgba(177,14,86,.45);border-radius:14px;background:#fff7fa}
.ufoeq-v3-coupon.is-expired{opacity:.72}
.ufoeq-v3-coupon-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:22px}
.ufoeq-v3-coupon-copy{display:flex;flex-direction:column;gap:2px}
.ufoeq-v3-coupon-copy strong{color:var(--ufo-navy);font-size:14px}
.ufoeq-v3-coupon-copy span,.ufoeq-v3-coupon-copy small{color:var(--ufo-muted);font-size:12px}
.ufoeq-v3-coupon-entry{display:grid;grid-template-columns:1fr auto;gap:8px}
.ufoeq-v3-coupon-entry input{width:100%!important;min-height:42px!important;margin:0!important;border:1px solid #d8dce5!important;border-radius:9px!important;padding:8px 11px!important;background:#fff!important}
.ufoeq-v3-coupon-entry button{min-height:42px!important;margin:0!important;padding:0 15px!important;border:0!important;border-radius:9px!important;background:var(--ufo-navy)!important;color:#fff!important;font-weight:700!important}
.ufoeq-v3-coupon-status{grid-column:2 / -1;font-size:12px;font-weight:600;min-height:15px}
.ufoeq-v3-coupon-status.is-success{color:var(--ufo-green)}
.ufoeq-v3-coupon-status.is-error{color:var(--ufo-red)}

.ufoeq-v3-total-card{display:flex;align-items:center;gap:15px;margin-top:18px;padding:16px 18px;border:1px solid var(--ufo-line);border-radius:14px;background:#fff}
.ufoeq-v3-total-icon{width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--ufo-line);border-radius:50%;font-size:21px}
.ufoeq-v3-total-card>div:last-child{display:flex;flex-direction:column;gap:2px}
.ufoeq-v3-total-card span{font-size:13px;color:var(--ufo-muted)}
.ufoeq-v3-total-card strong{font-size:27px;line-height:1;color:var(--ufo-navy)}
.ufoeq-v3-total-card small{color:var(--ufo-green);font-weight:700}

.ufoeq-v3-buy-panel{border-color:#d8dce5;background:#fbfcfe}
.ufoeq-v3-provider-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:45px;padding:0 18px;border-radius:10px;background:var(--ufo-navy);color:#fff!important;text-decoration:none!important;font-weight:700}
.ufoeq-v3-provider-button:hover{opacity:.9;color:#fff!important}
.ufoeq-v3-warning{padding:13px 15px;border-radius:10px;background:#fff5db;color:#7a5a00;font-size:13px}

/* Formulario de compra debajo del bloque */
.ufoeq-v3-fullwidth-inner form.cart>.quantity,
.ufoeq-v3-fullwidth-inner form.cart>button.single_add_to_cart_button,
.ufoeq-v3-fullwidth-inner form.cart>.single_add_to_cart_button{
    margin-top:18px!important;
}
.ufoeq-v3-fullwidth-inner form.cart>.quantity{display:inline-flex!important;vertical-align:middle;margin-right:10px!important}
.ufoeq-v3-fullwidth-inner form.cart>.quantity .qty{min-height:52px!important;width:78px!important;border:1px solid #d8dce5!important;border-radius:11px!important}
.ufoeq-v3-fullwidth-inner form.cart .single_add_to_cart_button{
    min-height:52px!important;padding:0 34px!important;border-radius:11px!important;background:#b10e56!important;color:#fff!important;font-weight:800!important;font-size:16px!important;box-shadow:0 8px 18px rgba(177,14,86,.20)!important;
}
.ufoeq-v3-fullwidth-inner form.cart .single_add_to_cart_button:hover{filter:brightness(.94)}

@media (max-width:1100px){
    .ufoeq-v3-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ufoeq-v3-mode-grid{grid-template-columns:1fr}
    .ufoeq-v3-mode-card{min-height:auto}
}

@media (max-width:767px){
    .ufoeq-v3-fullwidth-wrap{margin:22px 0 18px}
    .ufoeq-v3-box{padding:17px;border-radius:16px}
    .ufoeq-v3-heading{align-items:flex-start}
    .ufoeq-v3-heading-icon{width:48px;height:48px;flex-basis:48px;font-size:22px}
    .ufoeq-v3-heading h2{font-size:23px!important}
    .ufoeq-v3-heading p{font-size:13px}
    .ufoeq-v3-mode-grid{gap:10px}
    .ufoeq-v3-mode-card{grid-template-columns:44px 1fr 22px;padding:15px;gap:11px;border-radius:13px}
    .ufoeq-v3-mode-icon{width:44px;height:44px;font-size:21px}
    .ufoeq-v3-mode-copy strong{font-size:14px}.ufoeq-v3-mode-copy small{font-size:12px}
    .ufoeq-v3-subpanel{padding:14px;border-radius:14px}
    .ufoeq-v3-subpanel-head{align-items:flex-start}.ufoeq-v3-subpanel-icon{width:42px;height:42px;flex-basis:42px;font-size:19px}
    .ufoeq-v3-subpanel-head h3{font-size:18px!important}.ufoeq-v3-subpanel-head p{font-size:12px}
    .ufoeq-v3-package-grid{grid-template-columns:1fr;gap:11px}
    .ufoeq-v3-package-card{min-height:0;padding:15px}
    .ufoeq-v3-package-price{font-size:24px}
    .ufoeq-v3-coupon{grid-template-columns:42px 1fr;padding:13px}
    .ufoeq-v3-coupon-entry{grid-column:1/-1;grid-template-columns:1fr auto}
    .ufoeq-v3-coupon-status{grid-column:1/-1}
    .ufoeq-v3-total-card strong{font-size:24px}
    .ufoeq-v3-fullwidth-inner form.cart>.quantity{width:30%!important;margin-right:2%!important}
    .ufoeq-v3-fullwidth-inner form.cart>.quantity .qty{width:100%!important}
    .ufoeq-v3-fullwidth-inner form.cart .single_add_to_cart_button{width:68%!important;padding:0 12px!important;font-size:14px!important}
}

@media (max-width:420px){
    .ufoeq-v3-card-footer{align-items:flex-end}
    .ufoeq-v3-coupon-entry{grid-template-columns:1fr}
    .ufoeq-v3-coupon-entry button{width:100%}
    .ufoeq-v3-fullwidth-inner form.cart>.quantity,
    .ufoeq-v3-fullwidth-inner form.cart .single_add_to_cart_button{width:100%!important;margin-right:0!important}
}


/* ==========================================================
   V4 - POSICIONAMIENTO ROBUSTO CON TEMAS GRID/FLEX
   ========================================================== */
.single-product .product.ufoeq-v3-product-layout{
    flex-wrap:wrap!important;
}
.single-product .product.ufoeq-v3-product-layout > .ufoeq-v3-fullwidth-wrap{
    width:100%!important;
    max-width:100%!important;
    flex:0 0 100%!important;
    grid-column:1 / -1!important;
    clear:both!important;
    float:none!important;
    order:50;
    box-sizing:border-box!important;
    margin:36px 0 30px!important;
}
.single-product .ufoeq-v3-fullwidth-wrap form.cart{
    width:100%!important;
    max-width:100%!important;
    display:block!important;
    float:none!important;
    margin:0!important;
    padding:0!important;
}
.single-product .ufoeq-v3-fullwidth-wrap .ufoeq-v3-box{
    width:100%!important;
    max-width:none!important;
}
.single-product .ufoeq-v3-fullwidth-wrap + .woocommerce-tabs,
.single-product .ufoeq-v3-fullwidth-wrap + .wc-tabs-wrapper{
    clear:both!important;
    width:100%!important;
    flex:0 0 100%!important;
    grid-column:1 / -1!important;
}

/* Proveedor */
.ufoeq-v3-provider-card{
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    padding:20px;
    box-shadow:0 8px 24px rgba(16,29,60,.06);
}
.ufoeq-v3-provider-badge{
    display:inline-flex;
    margin-bottom:14px;
    padding:6px 10px;
    border-radius:999px;
    background:#f3f0ff;
    color:#5b21b6;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.ufoeq-v3-provider-main{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:16px;
}
.ufoeq-v3-provider-avatar{
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    flex:0 0 54px;
    border-radius:15px;
    background:#f7f8fb;
    font-size:27px;
}
.ufoeq-v3-provider-main h4{
    margin:0 0 3px!important;
    color:#101d3c!important;
    font-size:19px!important;
}
.ufoeq-v3-provider-main p{
    margin:0!important;
    color:#667085!important;
    font-size:13px!important;
}
.ufoeq-v3-provider-actions{
    display:flex;
    align-items:stretch;
    gap:12px;
    flex-wrap:wrap;
}
.ufoeq-v3-whatsapp-button{
    display:grid!important;
    grid-template-columns:46px 1fr 24px;
    align-items:center;
    gap:12px;
    flex:1 1 360px;
    min-height:68px;
    padding:10px 16px!important;
    border-radius:14px!important;
    background:#25D366!important;
    color:#062d17!important;
    text-decoration:none!important;
    box-shadow:0 10px 24px rgba(37,211,102,.24)!important;
    transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ufoeq-v3-whatsapp-button:hover{
    transform:translateY(-2px);
    filter:brightness(.98);
    box-shadow:0 14px 30px rgba(37,211,102,.30)!important;
    color:#062d17!important;
}
.ufoeq-v3-wa-icon{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#fff;
    color:#128C7E;
    font-size:24px;
    font-weight:900;
}
.ufoeq-v3-whatsapp-button > span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
.ufoeq-v3-whatsapp-button strong{font-size:15px;line-height:1.15;color:#062d17!important}
.ufoeq-v3-whatsapp-button small{font-size:11px;line-height:1.25;color:rgba(6,45,23,.78)!important}
.ufoeq-v3-wa-arrow{font-size:24px;font-weight:700}
.ufoeq-v3-store-link{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    min-height:68px;
    padding:0 20px!important;
    border:1px solid #d8dce5!important;
    border-radius:14px!important;
    background:#fff!important;
    color:#101d3c!important;
    text-decoration:none!important;
    font-weight:800!important;
}
.ufoeq-v3-store-link:hover{border-color:#b10e56!important;color:#b10e56!important}

/* Cuando se mantiene en columna derecha: 1 tarjeta por fila para no apretar el contenido */
.summary .ufoeq-v3-box[data-layout="right"] .ufoeq-v3-mode-grid,
.summary .ufoeq-v3-box[data-layout="right"] .ufoeq-v3-package-grid{
    grid-template-columns:1fr!important;
}
.summary .ufoeq-v3-box[data-layout="right"]{
    padding:20px!important;
}

@media (max-width:767px){
    .single-product .product.ufoeq-v3-product-layout > .ufoeq-v3-fullwidth-wrap{
        margin:22px 0!important;
    }
    .ufoeq-v3-provider-card{padding:16px}
    .ufoeq-v3-provider-actions{display:block}
    .ufoeq-v3-whatsapp-button{width:100%;grid-template-columns:42px 1fr 20px}
    .ufoeq-v3-store-link{width:100%;min-height:50px;margin-top:10px}
}
