/*
Theme Name: JS Baby Boutique
Theme URI: https://jsbabybutique.com/
Description: Tema a medida para JS Baby Boutique (Cali y Palmira). Compatible con WooCommerce.
Version: 1.0.11
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jsbaby
WC requires at least: 7.0
*/

:root {
	--jsb-navy: #12228C;
	--jsb-navy-dark: #0B1660;
	--jsb-red: #E3101E;
	--jsb-green: #5BB318;
	--jsb-sky: #1EBEF0;
	--jsb-yellow: #FFC90A;
	--jsb-text: #1F2937;
	--jsb-muted: #5B6472;
	--jsb-line: #E3EAF3;
	--jsb-soft: #E6F7FD;
	--jsb-radius: 22px;
	--jsb-display: "Fredoka", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--jsb-text); background: #fff; font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--jsb-navy); }
a:hover { color: var(--jsb-navy-dark); }
h1, h2, h3 { font-family: var(--jsb-display); font-weight: 600; color: var(--jsb-navy); line-height: 1.15; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.jsb-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.jsb-skip:focus { left: 8px; }
.jsb-wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.jsb-muted { color: var(--jsb-muted); }

/* Barra superior animada */
.jsb-topbar { background: var(--jsb-navy); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 1px; padding: 11px 0; overflow: hidden; }
.jsb-marquee { display: flex; width: max-content; animation: jsb-marquee 28s linear infinite; }
.jsb-marquee:hover { animation-play-state: paused; }
.jsb-marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; flex: none; }
.jsb-marquee__group span { white-space: nowrap; }
.jsb-marquee__group i { width: 6px; height: 6px; border-radius: 999px; background: var(--jsb-yellow); flex: none; }
@keyframes jsb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .jsb-marquee { animation: none; } }
.jsb-stripe { display: flex; height: 6px; }
.jsb-stripe span { flex: 1; }
.jsb-stripe span:nth-child(1) { background: var(--jsb-red); }
.jsb-stripe span:nth-child(2) { background: var(--jsb-green); }
.jsb-stripe span:nth-child(3) { background: var(--jsb-sky); }
.jsb-stripe span:nth-child(4) { background: var(--jsb-yellow); }

/* Encabezado */
.jsb-header { border-bottom: 1px solid var(--jsb-line); background: #fff; }
.jsb-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 12px; padding-bottom: 12px; }
.jsb-logo img { display: block; height: 104px; width: auto; }
.jsb-search { flex: 0 1 380px; margin-left: auto; display: flex; align-items: center; gap: 6px; background: #F4F9FE; border: 1px solid #D9E3EF; border-radius: 999px; padding: 3px 3px 3px 16px; }
.jsb-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 8px 0; outline: none; color: var(--jsb-text); }
.jsb-search button { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--jsb-navy); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.jsb-icons { display: flex; gap: 4px; }
.jsb-icons a { position: relative; width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--jsb-navy); }
.jsb-icons a:hover { background: var(--jsb-soft); }
.jsb-cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--jsb-red); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.jsb-cart-count[hidden] { display: none; }
.jsb-nav { padding-bottom: 12px; }
.jsb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 700; }
.jsb-nav__list a { text-decoration: none; display: inline-block; padding: 6px 0; }
.jsb-nav__list .sub-menu { display: none; }

/* Botones */
.jsb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jsb-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--jsb-navy); color: #fff !important; font-weight: 800; text-decoration: none; border: 2px solid var(--jsb-navy); }
.jsb-btn:hover { background: var(--jsb-navy-dark); border-color: var(--jsb-navy-dark); }
.jsb-btn--ghost { background: #fff; color: var(--jsb-navy) !important; }
.jsb-btn--ghost:hover { background: var(--jsb-soft); }
.jsb-btn--green { background: #1F8A5B; border-color: #1F8A5B; }
.jsb-btn--green:hover { background: #18704A; border-color: #18704A; }
.jsb-btn--red { background: #D50F1C; border-color: #D50F1C; }
.jsb-btn--red:hover { background: #B00C17; border-color: #B00C17; }
.jsb-btn--sm { min-height: 46px; padding: 0 18px; }

/* Portada */
.jsb-hero { background: var(--jsb-soft); }
.jsb-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.jsb-hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.jsb-hero__text h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; }
.jsb-hero__text p { margin: 0; font-size: 19px; color: #3E4756; max-width: 520px; }
.jsb-pill { align-self: flex-start; background: #fff; color: var(--jsb-navy); font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 8px 14px; border-radius: 999px; }
.jsb-hero__media { flex: 1 1 420px; }
.jsb-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; }
.jsb-hero__media img.jsb-hero__banner { aspect-ratio: 16 / 10; object-position: 72% center; box-shadow: 0 18px 40px rgba(18,34,140,.12); }

.jsb-section { padding-top: 56px; padding-bottom: 16px; }
.jsb-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.jsb-section__head h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.jsb-section__head a { font-weight: 800; }

.jsb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.jsb-cat { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--jsb-radius); text-decoration: none; color: var(--jsb-text) !important; min-height: 148px; transition: transform .15s ease; }
.jsb-cat:hover { transform: translateY(-3px); }
.jsb-cat__icon { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; }
.jsb-cat__name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.jsb-cat--0 { background: #FDE7E8; } .jsb-cat--0 .jsb-cat__icon { color: #C40E1A; }
.jsb-cat--1 { background: #EAF6DF; } .jsb-cat--1 .jsb-cat__icon { color: #3E7F12; }
.jsb-cat--2 { background: #E2F6FD; } .jsb-cat--2 .jsb-cat__icon { color: #0A78A8; }
.jsb-cat--3 { background: #FFF6D6; } .jsb-cat--3 .jsb-cat__icon { color: #9A6B00; }

.jsb-banner { border-radius: 32px; background: #FFF3CC; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.jsb-banner h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); }
.jsb-banner p { margin: 0; font-size: 18px; color: #3E4756; }

.jsb-sedes { background: var(--jsb-soft); margin-top: 56px; padding: 64px 0; }
.jsb-sedes h2 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 38px); }
.jsb-sedes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; margin-top: 24px; }
.jsb-sede { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.jsb-sede img { width: 100%; height: 280px; object-fit: cover; object-position: center 35%; display: block; }
.jsb-sede__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.jsb-sede__body h3 { margin: 0; font-size: 28px; }
.jsb-sede__body p { margin: 0; color: #3E4756; }
.jsb-sede__city { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--jsb-muted); }
.jsb-sede .jsb-actions { margin-top: 8px; }

/* Páginas */
.jsb-page { padding-top: 32px; padding-bottom: 64px; }
.jsb-page__title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 24px; }
.jsb-entry { margin-bottom: 32px; }

/* Pie */
.jsb-footer { background: var(--jsb-navy); color: #E6EDF7; }
.jsb-footer__row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
.jsb-footer__row > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.jsb-footer__row h2 { font-family: "Nunito", sans-serif; font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.jsb-footer a { color: #E6EDF7; }
.jsb-footer a:hover { color: #fff; }
.jsb-footer__brand { flex-basis: 280px !important; }
.jsb-footer__logo { align-self: flex-start; background: #fff; border-radius: 18px; padding: 10px 16px; }
.jsb-footer__logo img { display: block; height: 64px; width: auto; }
.jsb-footer__legal { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #2E3FA6; font-size: 14px; color: #C9D6EA; }
.jsb-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 60px; height: 60px; border-radius: 999px; background: #1F8A5B; color: #fff !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ---------- WooCommerce ---------- */
.jsb-shop .woocommerce-breadcrumb { font-size: 14px; color: var(--jsb-muted); margin-bottom: 12px; }
.jsb-shop .woocommerce-products-header__title, .jsb-shop .product_title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.woocommerce .woocommerce-result-count { color: var(--jsb-muted); }
.woocommerce .woocommerce-ordering select { height: 44px; border: 1px solid #D9E3EF; border-radius: 12px; padding: 0 12px; font: inherit; background: #fff; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; margin: 0 0 32px !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; border: 1px solid var(--jsb-line); border-radius: var(--jsb-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; padding: 0 0 18px !important; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; text-decoration: none; color: var(--jsb-text); flex: 1; }
.woocommerce ul.products li.product a img { margin: 0 0 14px !important; aspect-ratio: 1 / 1; object-fit: contain; background: #F0F0F0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 16px !important; line-height: 1.3; color: var(--jsb-text); padding: 0 16px !important; margin: 0 0 8px; }
.woocommerce ul.products li.product .price { font-family: var(--jsb-display); font-weight: 600; font-size: 22px !important; color: var(--jsb-navy) !important; padding: 0 16px; margin: 6px 0 12px !important; display: block; }
.woocommerce ul.products li.product .price del { font-size: 15px; color: var(--jsb-muted); opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .jsb-badge { margin: 0 16px; align-self: flex-start; }
.woocommerce ul.products li.product .button { margin: auto 16px 0 !important; }
.woocommerce ul.products li.product .star-rating { margin: 0 16px 6px; }
.woocommerce span.onsale { background: var(--jsb-red); border-radius: 999px; min-height: 0; min-width: 0; line-height: 1; padding: 8px 12px; font-weight: 800; top: 12px; left: 12px; right: auto; margin: 0; }
.jsb-badge { display: inline-block; font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.jsb-badge--ok { background: #E3F4EA; color: #1D6B45; }
.jsb-badge--low { background: #FDF0D9; color: #8A5300; }
.jsb-badge--out { background: #EEF0F3; color: #4B5563; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	background: var(--jsb-navy) !important; color: #fff !important; border-radius: 999px !important; font-family: inherit; font-weight: 800 !important; padding: 12px 22px !important; min-height: 44px; border: 0; line-height: 1.3;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--jsb-navy-dark) !important; }
.woocommerce a.added_to_cart { margin: 8px 16px 0; font-weight: 800; }

.woocommerce div.product { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce div.product div.images { flex: 1 1 460px; }
.woocommerce div.product div.summary { flex: 1 1 420px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { flex: 1 1 100%; }
.woocommerce div.product div.images img { border-radius: 24px; background: #F0F0F0; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 14px; border: 3px solid transparent; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { border-color: var(--jsb-navy); }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-family: var(--jsb-display); font-weight: 600; font-size: 34px; color: var(--jsb-navy); }
.woocommerce div.product .stock { font-weight: 800; }
.woocommerce div.product .stock.in-stock { color: #1D6B45; }
.woocommerce div.product .stock.out-of-stock { color: #4B5563; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce .quantity .qty { height: 52px; width: 80px; border: 1px solid #D9E3EF; border-radius: 999px; font: inherit; font-weight: 800; text-align: center; }
.woocommerce div.product form.cart .button { min-height: 52px; font-size: 16px; }
.jsb-wa-product { margin-top: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 12px 12px 0 0; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { border-radius: 14px; border-top-color: var(--jsb-navy); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--jsb-navy); }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 999px; min-width: 44px; padding: 12px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--jsb-navy); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid #D9E3EF; border-radius: 12px; padding: 10px 12px; font: inherit; }

@media (max-width: 700px) {
	.jsb-logo img { height: 76px; }
	.jsb-search { flex: 1 1 100%; order: 3; margin-left: 0; }
	.jsb-icons { margin-left: auto; }
	.jsb-nav__list { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
	.jsb-hero__row { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
	.jsb-banner { padding: 28px; }
	.jsb-sede img { height: 220px; }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; padding: 0 10px !important; }
	.woocommerce ul.products li.product .price { font-size: 18px !important; padding: 0 10px; }
	.woocommerce ul.products li.product .jsb-badge { margin: 0 10px; font-size: 12px; }
	.woocommerce ul.products li.product .button { margin: auto 10px 0 !important; padding: 10px 12px !important; font-size: 14px; }
}

/* ---------- Carrusel principal a pantalla completa ---------- */
.jsb-slider { position: relative; height: clamp(500px, 82vh, 880px); overflow: hidden; background: #0B1660; color: #fff; }
.jsb-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.jsb-slide.is-active { opacity: 1; visibility: visible; }
.jsb-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transform: scale(1.08); transition: transform 7s ease-out; }
.jsb-slide.is-active img { transform: scale(1); }
.jsb-slide__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,22,96,.92) 0%, rgba(11,22,96,.72) 30%, rgba(11,22,96,.15) 58%, rgba(11,22,96,0) 70%); }
.jsb-slide__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.jsb-slide__content > * { max-width: 620px; opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.jsb-slide.is-active .jsb-slide__content > * { opacity: 1; transform: none; }
.jsb-slide.is-active .jsb-slide__content > :nth-child(2) { transition-delay: .15s; }
.jsb-slide.is-active .jsb-slide__content > :nth-child(3) { transition-delay: .3s; }
.jsb-slide.is-active .jsb-slide__content > :nth-child(4) { transition-delay: .45s; }
.jsb-slide__kicker { background: var(--jsb-yellow); color: #2A2000; font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 18px; border-radius: 999px; }
.jsb-slide__title { margin: 0; color: #fff; font-size: clamp(40px, 5.8vw, 84px); line-height: 1.02; letter-spacing: -.5px; text-shadow: 0 6px 28px rgba(0,0,0,.28); }
.jsb-slide__text { margin: 0; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.45; font-weight: 600; color: #EEF3FF; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.jsb-btn--yellow { background: var(--jsb-yellow); border-color: var(--jsb-yellow); color: #12228C !important; }
.jsb-btn--yellow:hover { background: #FFD84A; border-color: #FFD84A; }
.jsb-btn--light { background: rgba(255,255,255,.12); border-color: #fff; color: #fff !important; backdrop-filter: blur(4px); }
.jsb-btn--light:hover { background: #fff; color: #12228C !important; border-color: #fff; }
.jsb-slider__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px; border: 0; background: rgba(255,255,255,.22); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); }
.jsb-slider__nav:hover { background: rgba(255,255,255,.4); }
.jsb-slider__prev { left: 18px; }
.jsb-slider__next { right: 18px; }
.jsb-slider__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.jsb-slider__dot { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid #fff; background: transparent; cursor: pointer; transition: width .3s, background .3s; }
.jsb-slider__dot[aria-current="true"] { width: 34px; background: var(--jsb-yellow); border-color: var(--jsb-yellow); }
@media (max-width: 700px) {
	.jsb-slider { height: max(540px, calc(100svh - 150px)); }
	.jsb-slide img { object-position: var(--pos-m, center); }
	.jsb-slide__overlay { background: linear-gradient(0deg, rgba(11,22,96,.95) 0%, rgba(11,22,96,.78) 38%, rgba(11,22,96,.1) 68%, rgba(11,22,96,0) 80%); }
	.jsb-slide__content { justify-content: flex-end; padding-bottom: 64px; gap: 14px; }
	.jsb-slide__kicker { font-size: 12px; padding: 7px 14px; }
	.jsb-slider__nav { display: none; }
	.jsb-slide__content .jsb-btn { min-height: 48px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.jsb-slide, .jsb-slide img, .jsb-slide__content > * { transition: none !important; }
	.jsb-slide img { transform: none; }
}

/* Carrusel: texto pegado a la izquierda para no tapar la foto */
@media (min-width: 701px) {
	.jsb-slide__content { max-width: none; padding-left: clamp(24px, 5vw, 110px); padding-right: 24px; }
	.jsb-slide__content > * { max-width: min(520px, 34vw); }
	.jsb-slide__title { font-size: clamp(36px, 4.3vw, 70px); }
	.jsb-slide__text { font-size: clamp(16px, 1.35vw, 21px); }
	.jsb-slide__overlay { background: linear-gradient(90deg, rgba(11,22,96,.9) 0%, rgba(11,22,96,.7) 24%, rgba(11,22,96,.12) 42%, rgba(11,22,96,0) 52%); }
	.jsb-slider__prev { left: 10px; }
}

/* Carrusel en celular: foto arriba, texto abajo sobre azul */
@media (max-width: 700px) {
	.jsb-slider { height: max(600px, calc(100svh - 150px)); background: #12228C; }
	.jsb-slide img { height: 46%; bottom: auto; }
	.jsb-slide__overlay { top: auto; height: 62%; background: linear-gradient(180deg, rgba(18,34,140,0) 0%, #12228C 22%, #12228C 100%); }
	.jsb-slide__content { padding-bottom: 58px; }
	.jsb-slide__kicker { letter-spacing: 1px; }
	.jsb-slide__title { font-size: clamp(32px, 9vw, 44px); }
	.jsb-slide__text { font-size: 16px; }
}

/* Celular: solo la imagen completa, como en el escritorio */
.jsb-slide__link { display: none; }
@media (max-width: 700px) {
	.jsb-slider { height: auto; aspect-ratio: 1978 / 795; background: #fff; }
	.jsb-slide img { height: 100%; bottom: 0; object-fit: cover; object-position: center; }
	.jsb-slide__overlay, .jsb-slide__content { display: none; }
	.jsb-slide__link { display: block; position: absolute; inset: 0; z-index: 2; }
	.jsb-slider__dots { bottom: 8px; gap: 6px; }
	.jsb-slider__dot { width: 8px; height: 8px; border-width: 1.5px; }
	.jsb-slider__dot[aria-current="true"] { width: 22px; }
}

/* Celular: banners verticales propios */
@media (max-width: 700px) {
	.jsb-slider.jsb-slider--has-mobile { aspect-ratio: 1122 / 1402; height: auto; }
	.jsb-slider--has-mobile .jsb-slide img { object-position: center; }
	.jsb-slider--has-mobile .jsb-slider__dots { bottom: 14px; gap: 8px; }
	.jsb-slider--has-mobile .jsb-slider__dot { width: 10px; height: 10px; }
	.jsb-slider--has-mobile .jsb-slider__dot[aria-current="true"] { width: 28px; }
}

/* ---------- Feed de Instagram en carrusel ---------- */
.jsb-ig { padding: 56px 0 16px; }
.jsb-ig__source { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jsb-ig__viewport { overflow: hidden; padding: 4px 0 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.jsb-ig__track { display: flex; gap: 16px; width: max-content; }
.jsb-ig.is-ready .jsb-ig__track { animation: jsb-ig-scroll 45s linear infinite; }
.jsb-ig__viewport:hover .jsb-ig__track, .jsb-ig__viewport:focus-within .jsb-ig__track { animation-play-state: paused; }
@keyframes jsb-ig-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.jsb-ig__card { flex: none; width: clamp(200px, 22vw, 300px); aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #F0F0F0; box-shadow: 0 8px 22px rgba(18,34,140,.10); transition: transform .3s ease; }
.jsb-ig__card:hover { transform: translateY(-4px) scale(1.02); }
.jsb-ig__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jsb-ig:not(.is-ready) .jsb-ig__viewport { display: none; }
@media (max-width: 700px) { .jsb-ig__card { width: 62vw; border-radius: 16px; } .jsb-ig.is-ready .jsb-ig__track { animation-duration: 32s; } }
@media (prefers-reduced-motion: reduce) { .jsb-ig.is-ready .jsb-ig__track { animation: none; } .jsb-ig__viewport { overflow-x: auto; } }

/* ---------- Popup cupón de bienvenida ---------- */
.jsb-pop { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.jsb-pop[hidden] { display: none; }
.jsb-pop__backdrop { position: absolute; inset: 0; background: rgba(11,22,96,.55); opacity: 0; transition: opacity .25s; }
.jsb-pop__card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 26px; padding: 30px 28px 24px; box-shadow: 0 30px 80px rgba(11,22,96,.35); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .3s ease, opacity .3s ease; border-top: 8px solid var(--jsb-yellow); }
.jsb-pop.is-open .jsb-pop__backdrop { opacity: 1; }
.jsb-pop.is-open .jsb-pop__card { transform: none; opacity: 1; }
html.jsb-pop-open { overflow: hidden; }
.jsb-pop__x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #F1F4FA; color: #12228C; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.jsb-pop__badge { display: inline-block; background: var(--jsb-red); color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.jsb-pop h2 { margin: 12px 0 8px; font-size: 28px; line-height: 1.1; }
.jsb-pop__head p, .jsb-pop__done p { margin: 0 0 14px; color: #3E4756; font-size: 15px; }
.jsb-pop__form { display: flex; flex-direction: column; gap: 10px; }
.jsb-pop__form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: #1F2937; }
.jsb-pop__form input[type=text], .jsb-pop__form input[type=email], .jsb-pop__form input[type=tel] { height: 46px; border: 1px solid #D9E3EF; border-radius: 12px; padding: 0 14px; font: inherit; font-weight: 400; }
.jsb-pop__form input:focus { outline: 2px solid #12228C; outline-offset: 1px; }
.jsb-pop__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 12.5px !important; color: #3E4756 !important; line-height: 1.4; }
.jsb-pop__check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: #12228C; }
.jsb-pop__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.jsb-pop__msg { margin: 0; min-height: 1em; color: #B00C17; font-size: 14px; font-weight: 700; }
.jsb-pop__submit { justify-content: center; width: 100%; font-size: 17px; cursor: pointer; }
.jsb-pop__submit[disabled] { opacity: .7; cursor: wait; }
.jsb-pop__later { border: 0; background: none; color: #5B6472; text-decoration: underline; font: inherit; font-size: 14px; padding: 8px; cursor: pointer; }
.jsb-pop__done { text-align: center; }
.jsb-pop__code { display: block; width: 100%; margin: 6px 0 4px; padding: 16px; font-family: var(--jsb-display); font-size: 26px; letter-spacing: 2px; color: #12228C; background: #FFF6D6; border: 2px dashed #12228C; border-radius: 16px; cursor: pointer; }
.jsb-pop__copied { font-size: 13px !important; color: #5B6472 !important; }
.jsb-remind-opt { margin: 8px 0 14px !important; font-size: 14px; }
@media (max-width: 700px) {
	.jsb-pop { align-items: flex-end; padding: 0; }
	.jsb-pop__card { border-radius: 24px 24px 0 0; max-height: 92vh; padding: 26px 20px 20px; }
	.jsb-pop h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .jsb-pop__card, .jsb-pop__backdrop { transition: none; } }

/* Instagram: íconos y efecto al pasar el mouse */
.jsb-ig__card { position: relative; }
.jsb-ig__badge { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; }
.jsb-ig__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, rgba(18,34,140,.55), rgba(227,16,30,.45)); opacity: 0; transition: opacity .3s; }
.jsb-ig__card:hover .jsb-ig__hover, .jsb-ig__card:focus-visible .jsb-ig__hover { opacity: 1; }

/* Instagram: fila siempre llena (4 copias) */
.jsb-ig.is-ready .jsb-ig__track { animation-duration: 90s; }
@media (max-width: 700px) { .jsb-ig.is-ready .jsb-ig__track { animation-duration: 70s; } }

/* Celular con banner vertical: texto y botones encima de la imagen */
@media (max-width: 700px) {
	.jsb-slider--has-mobile .jsb-slide__overlay { display: block; top: 0; height: 100%; background: linear-gradient(180deg, rgba(11,22,96,.88) 0%, rgba(11,22,96,.62) 26%, rgba(11,22,96,0) 50%); }
	.jsb-slider--has-mobile .jsb-slide--m-bottom .jsb-slide__overlay { background: linear-gradient(0deg, rgba(11,22,96,.92) 0%, rgba(11,22,96,.65) 30%, rgba(11,22,96,0) 54%); }
	.jsb-slider--has-mobile .jsb-slide__content { display: flex; justify-content: flex-start; padding: 22px 20px 0; gap: 10px; pointer-events: none; }
	.jsb-slider--has-mobile .jsb-slide--m-bottom .jsb-slide__content { justify-content: flex-end; padding: 0 20px 46px; }
	.jsb-slider--has-mobile .jsb-slide__content > * { max-width: 100%; }
	.jsb-slider--has-mobile .jsb-slide__content .jsb-actions, .jsb-slider--has-mobile .jsb-slide__content a { pointer-events: auto; }
	.jsb-slider--has-mobile .jsb-slide__kicker { font-size: 11px; padding: 6px 12px; letter-spacing: 1px; }
	.jsb-slider--has-mobile .jsb-slide__title { font-size: clamp(26px, 7.6vw, 34px); line-height: 1.05; }
	.jsb-slider--has-mobile .jsb-slide__text { display: none; }
	.jsb-slider--has-mobile .jsb-actions { gap: 8px; flex-wrap: nowrap; }
	.jsb-slider--has-mobile .jsb-slide__content .jsb-btn { min-height: 44px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
	.jsb-slider--has-mobile .jsb-slide--m-top .jsb-slider__dots { bottom: 14px; }
}
@media (max-width: 360px) { .jsb-slider--has-mobile .jsb-slide__content .jsb-btn { padding: 0 12px; font-size: 13px; } }
