/* ==========================================================================
   Bike City — modo claro
   Se activa con <html data-theme="light"> (botón sol/luna del header).
   Redefine la paleta y corrige las reglas que usan colores fijos del modo oscuro.
   ========================================================================== */

/* ---------- Botón sol/luna (ambos modos) ---------- */
.bc-theme-toggle .is-sun { display: block; }
.bc-theme-toggle .is-moon { display: none; }
[data-theme="light"] .bc-theme-toggle .is-sun { display: none; }
[data-theme="light"] .bc-theme-toggle .is-moon { display: block; }
.bc-theme-toggle .bc-icon { transition: transform .4s ease; }
.bc-theme-toggle:hover .bc-icon { transform: rotate(25deg); }

/* Imagen del hero según el modo */
.bc-hero__bg--light { display: none; }
[data-theme="light"] .bc-hero__bg--light { display: block; }
[data-theme="light"] .bc-hero__bg--dark { display: none; }

/* ---------- Paleta ---------- */
[data-theme="light"] {
	color-scheme: light;
	--bc-bg: #f7f3ff;
	--bc-bg-2: #efe8fd;
	--bc-surface: #ffffff;
	--bc-surface-2: #fbf8ff;
	--bc-pink: #e3138f;
	--bc-pink-2: #c40f7b;
	--bc-magenta: #b10c7e;
	--bc-cyan: #0091ad;
	--bc-cyan-2: #007a92;
	--bc-orange: #f08a1c;
	--bc-text: #1f1338;
	--bc-muted: #5a4a7c;
	--bc-dim: #85779f;
	--bc-border: rgba(227, 19, 143, .25);
	--bc-border-soft: rgba(90, 74, 124, .16);
	--bc-glow-pink: 0 0 14px rgba(227, 19, 143, .35);
	--bc-glow-cyan: 0 0 14px rgba(0, 145, 173, .3);
	--bc-heading: #1a0f33;
}

[data-theme="light"] body {
	background-image:
		radial-gradient(1200px 600px at 85% -10%, rgba(255, 99, 201, .14), transparent 60%),
		radial-gradient(900px 500px at -10% 30%, rgba(0, 200, 230, .08), transparent 60%);
}

/* Títulos y textos que en oscuro son blancos */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6,
[data-theme="light"] .bc-perks strong,
[data-theme="light"] .bc-footer h3,
[data-theme="light"] .bc-post-card h2 a,
[data-theme="light"] .wp-block-details summary,
[data-theme="light"] .bc-cat-list a:hover, [data-theme="light"] .bc-cat-list .is-current a,
[data-theme="light"] .bc-menu .sub-menu a:hover,
[data-theme="light"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
[data-theme="light"] .price, [data-theme="light"] .woocommerce-Price-amount,
[data-theme="light"] .woocommerce .price, [data-theme="light"] .woocommerce div.product p.price,
[data-theme="light"] .woocommerce div.product span.price,
[data-theme="light"] .woocommerce div.product form.cart .variations label,
[data-theme="light"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
[data-theme="light"] .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
[data-theme="light"] .woocommerce table.shop_attributes th,
[data-theme="light"] .woocommerce table.shop_table .product-name a,
[data-theme="light"] .woocommerce-order-overview strong,
[data-theme="light"] .woocommerce-MyAccount-navigation .is-active a,
[data-theme="light"] .woocommerce-MyAccount-navigation a:hover,
[data-theme="light"] .bc-shop-sidebar .widget-title, [data-theme="light"] .bc-shop-sidebar h2,
[data-theme="light"] .nav-links .current, [data-theme="light"] .nav-links a:hover,
[data-theme="light"] .woocommerce nav.woocommerce-pagination ul li span.current,
[data-theme="light"] .woocommerce nav.woocommerce-pagination ul li a:hover {
	color: var(--bc-heading);
}
[data-theme="light"] .woocommerce .price ins { color: var(--bc-pink); text-shadow: none; }
[data-theme="light"] .bc-installments strong { color: var(--bc-cyan-2); }
[data-theme="light"] .bc-page-title { text-shadow: none; }

/* ---------- Botones ---------- */
[data-theme="light"] .bc-btn--primary,
[data-theme="light"] .button,
[data-theme="light"] button.button,
[data-theme="light"] input[type="submit"] {
	box-shadow: 0 6px 20px -8px rgba(227, 19, 143, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
[data-theme="light"] .bc-btn--ghost {
	color: var(--bc-heading); background: rgba(255, 255, 255, .75);
	box-shadow: 0 0 0 1px rgba(0, 145, 173, .15), 0 6px 18px -10px rgba(0, 145, 173, .6);
}
[data-theme="light"] .bc-btn--ghost:hover { color: var(--bc-heading); background: #fff; box-shadow: 0 8px 24px -10px rgba(0, 145, 173, .7); }
[data-theme="light"] .wp-block-button.is-style-outline .wp-block-button__link { color: var(--bc-heading); box-shadow: none; }

/* ---------- Formularios ---------- */
[data-theme="light"] input[type="text"], [data-theme="light"] input[type="email"], [data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="url"], [data-theme="light"] input[type="password"], [data-theme="light"] input[type="search"],
[data-theme="light"] input[type="number"], [data-theme="light"] input[type="date"], [data-theme="light"] select, [data-theme="light"] textarea,
[data-theme="light"] .select2-container--default .select2-selection--single {
	background-color: #fff; border-color: rgba(90, 74, 124, .25);
}
[data-theme="light"] select option { background: #fff; }
[data-theme="light"] input:focus, [data-theme="light"] select:focus, [data-theme="light"] textarea:focus { box-shadow: 0 0 0 3px rgba(227, 19, 143, .14); }
[data-theme="light"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230091ad' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
[data-theme="light"] .bc-header::before { background: rgba(255, 255, 255, .82); }
[data-theme="light"] .bc-header { box-shadow: 0 6px 24px -18px rgba(60, 20, 120, .5); }
[data-theme="light"] .bc-header__logo .bc-logo__img { filter: drop-shadow(0 2px 8px rgba(227, 19, 143, .18)); }
[data-theme="light"] .bc-menu .sub-menu { background: #fff; box-shadow: 0 24px 50px -16px rgba(60, 20, 120, .35); }
[data-theme="light"] .bc-search-panel { background: rgba(255, 255, 255, .97); }
[data-theme="light"] .bc-icon-btn:hover { background: rgba(227, 19, 143, .08); }
[data-theme="light"] .bc-cart-count.is-empty { background: var(--bc-bg-2); color: var(--bc-muted); }

/* ---------- Hero ---------- */
[data-theme="light"] .bc-hero__shade {
	background: linear-gradient(90deg, rgba(247, 243, 255, .94) 0%, rgba(247, 243, 255, .78) 30%, rgba(247, 243, 255, .2) 52%, rgba(247, 243, 255, 0) 65%),
	            linear-gradient(0deg, var(--bc-bg) 0%, rgba(247, 243, 255, 0) 20%);
}
[data-theme="light"] .bc-hero__kicker,
[data-theme="light"] .bc-hero__subtitle { color: var(--bc-heading); }
[data-theme="light"] .bc-hero__text { color: var(--bc-muted); }
[data-theme="light"] .bc-hero__title .is-cyan { color: #00a6c4; text-shadow: 0 2px 0 rgba(0, 90, 110, .15), 0 0 22px rgba(0, 200, 230, .35); }
[data-theme="light"] .bc-hero__title .is-pink { color: #ec1597; text-shadow: 0 2px 0 rgba(120, 0, 70, .15), 0 0 22px rgba(255, 60, 170, .3); }
[data-theme="light"] .bc-hero__search .search-field { background: rgba(255, 255, 255, .85); }

/* ---------- Beneficios ---------- */
[data-theme="light"] .bc-perks {
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 20px 44px -24px rgba(60, 20, 120, .45);
}
[data-theme="light"] .bc-perks .bc-icon,
[data-theme="light"] .bc-perks li:nth-child(even) .bc-icon { filter: none; }

/* ---------- Secciones ---------- */
[data-theme="light"] .bc-section--alt { background: linear-gradient(180deg, transparent, rgba(239, 232, 253, .9) 20%, rgba(239, 232, 253, .9) 80%, transparent); }
[data-theme="light"] .bc-section-title::after { box-shadow: none; }
[data-theme="light"] .bc-kicker { text-shadow: none; }

/* Tarjetas de categoría */
[data-theme="light"] .bc-cat-card {
	background: radial-gradient(120% 90% at 80% 10%, rgba(255, 99, 201, .18), transparent 55%),
	            radial-gradient(90% 80% at 0% 100%, rgba(0, 200, 230, .12), transparent 60%),
	            linear-gradient(160deg, #ffffff, #f3ecff);
	color: var(--bc-heading);
}
[data-theme="light"] .bc-cat-card:hover { color: var(--bc-heading); box-shadow: 0 18px 36px -18px rgba(227, 19, 143, .45); }
[data-theme="light"] .bc-cat-card::after { display: none; }
/* Con foto: el texto sigue sobre una franja oscura para leerse sobre cualquier imagen */
[data-theme="light"] .bc-cat-card.has-image { color: #fff; }
[data-theme="light"] .bc-cat-card.has-image:hover { color: #fff; }
[data-theme="light"] .bc-cat-card.has-image .bc-cat-card__count { color: rgba(255, 255, 255, .85); }
[data-theme="light"] .bc-cat-card.has-image::before { background: linear-gradient(0deg, rgba(31, 19, 56, .85), rgba(31, 19, 56, 0) 60%); }
[data-theme="light"] .bc-cat-card__icon .bc-icon,
[data-theme="light"] .bc-cat-card:nth-child(3n+2) .bc-cat-card__icon .bc-icon { filter: none; }

/* Banner taller y CTA */
[data-theme="light"] .bc-service-banner {
	background: radial-gradient(70% 120% at 100% 0%, rgba(255, 99, 201, .2), transparent 60%),
	            radial-gradient(60% 100% at 0% 100%, rgba(0, 200, 230, .14), transparent 60%),
	            linear-gradient(140deg, #ffffff, #f4edff);
}
[data-theme="light"] .bc-plan { background: rgba(255, 255, 255, .85); }
[data-theme="light"] .bc-plan.is-featured { box-shadow: 0 10px 30px -16px rgba(227, 19, 143, .55); }
[data-theme="light"] .bc-cta-final__box {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 99, 201, .14)),
	            repeating-linear-gradient(90deg, rgba(227, 19, 143, .1) 0 1px, transparent 1px 60px),
	            repeating-linear-gradient(0deg, rgba(227, 19, 143, .07) 0 1px, transparent 1px 60px),
	            #ffffff;
}

/* Páginas internas */
[data-theme="light"] .bc-page-hero {
	background: radial-gradient(60% 140% at 85% 0%, rgba(255, 99, 201, .18), transparent 60%),
	            linear-gradient(180deg, #ece3ff, var(--bc-bg));
}
[data-theme="light"] .bc-entry__content blockquote { background: rgba(227, 19, 143, .05); }
[data-theme="light"] .bc-404__code { filter: drop-shadow(0 6px 20px rgba(227, 19, 143, .25)); }

/* Footer */
[data-theme="light"] .bc-footer { background: linear-gradient(180deg, transparent, #ece3ff); }
[data-theme="light"] .bc-footer__glow { box-shadow: none; }
[data-theme="light"] .bc-social a:hover { box-shadow: none; }

/* Menú mobile */
@media (max-width: 960px) {
	[data-theme="light"] .bc-nav { background: var(--bc-bg); }
	[data-theme="light"] .bc-hero__shade { background: linear-gradient(0deg, rgba(247, 243, 255, .97) 0%, rgba(247, 243, 255, .72) 48%, rgba(247, 243, 255, .35) 100%); }
}

/* ---------- WooCommerce ---------- */
[data-theme="light"] .woocommerce ul.products li.product {
	background: #fff;
	box-shadow: 0 10px 30px -22px rgba(60, 20, 120, .5);
}
[data-theme="light"] .woocommerce ul.products li.product:hover { box-shadow: 0 18px 36px -18px rgba(227, 19, 143, .45); }
[data-theme="light"] .woocommerce div.product div.images { box-shadow: 0 18px 40px -24px rgba(60, 20, 120, .5); }
[data-theme="light"] .woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: rgba(255, 255, 255, .9); color: var(--bc-heading); }
[data-theme="light"] .woocommerce table.shop_table th { background: var(--bc-bg-2); }
[data-theme="light"] .woocommerce-checkout #payment ul.payment_methods li { background: var(--bc-surface-2); }
[data-theme="light"] .woocommerce-checkout #order_review { box-shadow: 0 18px 40px -24px rgba(60, 20, 120, .45); }
[data-theme="light"] .woocommerce-message, [data-theme="light"] .woocommerce-info { background: rgba(0, 145, 173, .07); border-color: rgba(0, 145, 173, .35); }
[data-theme="light"] .woocommerce-error { background: rgba(227, 19, 143, .06); }
[data-theme="light"] .star-rating::before { color: rgba(90, 74, 124, .25); }
[data-theme="light"] .star-rating span::before { text-shadow: none; }
[data-theme="light"] .bc-sidebar-cta { background: linear-gradient(160deg, rgba(255, 99, 201, .12), rgba(0, 200, 230, .06)), #fff !important; }
[data-theme="light"] .woocommerce ul.products li.product .button.bc-btn--consult { color: var(--bc-heading); box-shadow: none; }
[data-theme="light"] .select2-dropdown { background: #fff; }
[data-theme="light"] .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }
[data-theme="light"] .wc-block-components-text-input input,
[data-theme="light"] .wc-block-components-combobox .wc-block-components-combobox-control input,
[data-theme="light"] .wc-blocks-components-select__select { background: #fff !important; }

/* ==========================================================================
   Transición entre modos: anochecer (→ oscuro) y amanecer (→ claro)
   Usa la View Transitions API: el estado nuevo se revela con una máscara
   degradada que baja (noche) o sube (día), mientras el estado viejo se tiñe
   con la luz del atardecer o del alba.
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

/* Anochecer: la oscuridad cae desde arriba */
[data-theme-transition="to-dark"]::view-transition-new(root) {
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
	mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
	-webkit-mask-size: 100% 300%;
	mask-size: 100% 300%;
	animation: bc-night-falls 1.8s cubic-bezier(.4, 0, .3, 1) both;
}
[data-theme-transition="to-dark"]::view-transition-old(root) {
	animation: bc-golden-hour 1.8s ease-in-out both;
}

/* Amanecer: la luz sube desde abajo */
[data-theme-transition="to-light"]::view-transition-new(root) {
	-webkit-mask-image: linear-gradient(to top, #000 40%, transparent 60%);
	mask-image: linear-gradient(to top, #000 40%, transparent 60%);
	-webkit-mask-size: 100% 300%;
	mask-size: 100% 300%;
	animation: bc-day-breaks 1.8s cubic-bezier(.4, 0, .3, 1) both;
}
[data-theme-transition="to-light"]::view-transition-old(root) {
	animation: bc-dawn-glow 1.8s ease-in-out both;
}

@keyframes bc-night-falls {
	from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
	to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}
@keyframes bc-day-breaks {
	from { -webkit-mask-position: 0 0;    mask-position: 0 0; }
	to   { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}
/* El día que se va: luz dorada, después más tenue */
@keyframes bc-golden-hour {
	0%   { filter: none; }
	45%  { filter: sepia(.35) saturate(1.5) hue-rotate(-18deg) brightness(.95); }
	100% { filter: sepia(.5) saturate(1.6) hue-rotate(-30deg) brightness(.55); }
}
/* La noche que se va: se aclara con un brillo rosado */
@keyframes bc-dawn-glow {
	0%   { filter: none; }
	50%  { filter: brightness(1.35) saturate(1.3) hue-rotate(-12deg); }
	100% { filter: brightness(1.8) saturate(1.1) hue-rotate(-20deg); }
}

/* Mientras dura la transición, el botón gira */
[data-theme-transition] .bc-theme-toggle .bc-icon { transform: rotate(360deg); transition: transform 1.6s ease; }

/* Respaldo sin View Transitions: los colores se funden */
.bc-theme-fading,
.bc-theme-fading *,
.bc-theme-fading *::before,
.bc-theme-fading *::after {
	transition: background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease, box-shadow 1.5s ease, fill 1.5s ease, stroke 1.5s ease, filter 1.5s ease !important;
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-old(root),
	::view-transition-new(root) { animation: none !important; }
}
