/*
 Theme Name:   IFLUX Child
 Theme URI:    https://ifluxoficial.com/
 Description:  Child theme de IFLUX — Diseño Y2K editorial moderno
 Author:       IFLUX
 Template:     storefront
 Version:      1.0.0
 Text Domain:  iflux-child
*/

/* ════════════════════════════════════════
   VARIABLES GLOBALES
════════════════════════════════════════ */
:root {
  --iflux-black:      #080808;
  --iflux-white:      #F5F0EB;
  --iflux-pink:       #FF2D8B;
  --iflux-pink-light: #FF6BB2;
  --iflux-blue:       #00C8FF;
  --iflux-silver:     #C8D0DC;
  --iflux-holo: linear-gradient(135deg,
    #FF2D8B 0%, #B44FFF 25%,
    #00C8FF 50%, #FF2D8B 75%, #FFD700 100%);
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--iflux-black) !important;
  color: var(--iflux-white) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 300;
}

a { color: var(--iflux-pink); transition: color .2s; }
a:hover { color: var(--iflux-pink-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: .04em;
  color: var(--iflux-white) !important;
}

/* ════════════════════════════════════════
   FUENTES (importar en functions.php)
════════════════════════════════════════ */

/* ════════════════════════════════════════
   HEADER / NAVEGACIÓN
════════════════════════════════════════ */
.site-header,
header.site-header {
  background: rgba(8,8,8,.85) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  position: sticky; top: 0; z-index: 200;
  transition: background .3s;
}

.site-header .site-branding,
.site-title,
.site-title a {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 2rem !important;
  letter-spacing: .25em !important;
  background: linear-gradient(135deg, #FF2D8B, #B44FFF, #00C8FF, #FF2D8B) !important;
  background-size: 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: holoShift 4s linear infinite;
  text-decoration: none !important;
}

/* Nav principal */
.main-navigation ul li a,
.site-header nav ul li a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: .75rem !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: var(--iflux-silver) !important;
  transition: color .2s;
  position: relative;
}
.main-navigation ul li a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--iflux-pink);
  transition: width .3s;
}
.main-navigation ul li a:hover { color: var(--iflux-white) !important; }
.main-navigation ul li a:hover::after { width: 100%; }

/* ════════════════════════════════════════
   CARRITO & BOTONES NAV
════════════════════════════════════════ */
.storefront-handheld-footer-bar,
.site-header .cart-contents,
.site-header a.cart-contents {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: var(--iflux-white) !important;
  font-size: .75rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  transition: border-color .2s, background .2s !important;
}
.site-header a.cart-contents:hover {
  border-color: var(--iflux-pink) !important;
  background: rgba(255,45,139,.08) !important;
}

/* ════════════════════════════════════════
   BOTONES GLOBALES
════════════════════════════════════════ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
button[type="submit"],
.wp-block-button__link,
.elementor-button {
  background: var(--iflux-pink) !important;
  color: var(--iflux-white) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .78rem !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1rem 2.5rem !important;
  transition: background .2s, transform .2s !important;
  cursor: pointer;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.elementor-button:hover,
.wp-block-button__link:hover {
  background: var(--iflux-pink-light) !important;
  transform: translateY(-2px) !important;
}

/* Botón outline alternativo */
.btn-outline-iflux,
.woocommerce a.button.alt-outline {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  color: var(--iflux-white) !important;
}
.btn-outline-iflux:hover {
  border-color: var(--iflux-white) !important;
}

/* ════════════════════════════════════════
   WOOCOMMERCE — TARJETAS DE PRODUCTO
════════════════════════════════════════ */
.woocommerce ul.products,
.woocommerce-page ul.products {
  margin: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #111 !important;
  border: 1px solid rgba(255,255,255,.05) !important;
  border-radius: 0 !important;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  padding: 0 !important;
}
.woocommerce ul.products li.product:hover {
  border-color: rgba(255,45,139,.25) !important;
  transform: translateY(-4px);
}

/* Imagen del producto */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product img {
  border-radius: 0 !important;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94), filter .4s;
  filter: saturate(.9);
  margin-bottom: 0 !important;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
  filter: saturate(1.2);
}

/* Nombre y precio */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: .88rem !important;
  color: var(--iflux-white) !important;
  font-weight: 300 !important;
  padding: 1.2rem 1.2rem .4rem !important;
}
.woocommerce ul.products li.product .price {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.4rem !important;
  color: var(--iflux-white) !important;
  padding: 0 1.2rem 1.2rem !important;
  letter-spacing: .06em;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--iflux-pink) !important;
}

/* Botón añadir carrito en grid */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
  width: calc(100% - 2.4rem) !important;
  margin: 0 1.2rem 1.2rem !important;
  text-align: center !important;
}

/* Badge "Nuevo" / "Oferta" */
.woocommerce span.onsale {
  background: var(--iflux-pink) !important;
  border-radius: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .62rem !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  padding: .25rem .7rem !important;
  min-height: unset !important;
  min-width: unset !important;
  line-height: 1.4 !important;
}

/* ════════════════════════════════════════
   PÁGINA DE PRODUCTO INDIVIDUAL
════════════════════════════════════════ */
.woocommerce div.product .product_title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(2.5rem, 5vw, 5rem) !important;
  letter-spacing: .05em !important;
  color: var(--iflux-white) !important;
  line-height: .95 !important;
}
.woocommerce div.product .price {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 2.2rem !important;
  color: var(--iflux-pink) !important;
  letter-spacing: .06em;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color: rgba(245,240,235,.55) !important;
  font-size: .9rem !important;
  line-height: 1.8 !important;
}
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"],
.woocommerce #review_form #respond textarea {
  background: #111 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: var(--iflux-white) !important;
  border-radius: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Tabs de producto */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--iflux-pink) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: .75rem !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  color: var(--iflux-silver) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--iflux-white) !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  background: transparent !important;
  color: rgba(245,240,235,.55) !important;
}

/* ════════════════════════════════════════
   CARRITO & CHECKOUT
════════════════════════════════════════ */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  background: var(--iflux-black) !important;
}
.woocommerce table.shop_table {
  background: #0D0D0D !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 0 !important;
}
.woocommerce table.shop_table th {
  font-family: 'Syncopate', sans-serif !important;
  font-size: .65rem !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: rgba(245,240,235,.35) !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  background: transparent !important;
}
.woocommerce table.shop_table td {
  color: var(--iflux-white) !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
.woocommerce .cart-subtotal, .woocommerce .order-total {
  color: var(--iflux-white) !important;
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: .06em;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: #111 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: var(--iflux-white) !important;
  border-radius: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: border-color .2s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--iflux-pink) !important;
  outline: none !important;
}
.woocommerce form .form-row label {
  font-size: .72rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(245,240,235,.45) !important;
}

/* ════════════════════════════════════════
   ELEMENTOR — SECCIONES & WIDGETS
════════════════════════════════════════ */

/* Fondo por defecto en secciones Elementor */
.elementor-section {
  background-color: var(--iflux-black) !important;
}

/* Texto en widgets Elementor */
.elementor-widget-text-editor p,
.elementor-widget-text-editor {
  color: rgba(245,240,235,.55) !important;
  line-height: 1.85 !important;
  font-size: .9rem !important;
}

/* Headings Elementor */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: .04em !important;
  color: var(--iflux-white) !important;
}

/* Divisores */
.elementor-divider-separator {
  border-color: rgba(255,255,255,.1) !important;
}

/* Iconos */
.elementor-icon i,
.elementor-icon svg {
  color: var(--iflux-pink) !important;
  fill: var(--iflux-pink) !important;
}

/* Formularios Elementor */
.elementor-form .elementor-field-group input,
.elementor-form .elementor-field-group textarea,
.elementor-form .elementor-field-group select {
  background: #111 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: var(--iflux-white) !important;
  border-radius: 0 !important;
}
.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group textarea:focus {
  border-color: var(--iflux-pink) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px var(--iflux-pink) !important;
}

/* ════════════════════════════════════════
   BARRA MARQUEE (añadir vía Elementor HTML)
════════════════════════════════════════ */
.iflux-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .8rem 0;
  background: rgba(255,45,139,.04);
}
.iflux-marquee-track {
  display: flex; gap: 3rem;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.iflux-marquee-track span {
  font-family: 'Syncopate', sans-serif;
  font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(245,240,235,.35);
}
.iflux-marquee-track span.accent { color: var(--iflux-pink); font-weight: 700; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer,
footer.site-footer {
  background: #080808 !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  color: rgba(245,240,235,.35) !important;
}
.site-footer a { color: rgba(245,240,235,.5) !important; transition: color .2s; }
.site-footer a:hover { color: var(--iflux-pink) !important; }
.site-footer .widget-title,
.site-footer h3 {
  font-family: 'Syncopate', sans-serif !important;
  font-size: .65rem !important;
  font-weight: 700 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: rgba(245,240,235,.4) !important;
  margin-bottom: 1.5rem !important;
}
.site-info {
  font-size: .72rem !important;
  letter-spacing: .08em !important;
  color: rgba(245,240,235,.2) !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}

/* ════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--iflux-black); }
::-webkit-scrollbar-thumb { background: var(--iflux-pink); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--iflux-pink-light); }

/* ════════════════════════════════════════
   UTILIDADES EXTRA (usar en clases CSS Elementor)
════════════════════════════════════════ */

/* Texto holográfico: añadir clase "text-holo" */
.text-holo {
  background: linear-gradient(135deg, #FF2D8B, #B44FFF, #00C8FF, #FF2D8B, #FFD700);
  background-size: 300%;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: holoShift 4s linear infinite;
}

/* Tarjeta oscura con borde sutil */
.card-dark {
  background: #0D0D0D;
  border: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 2rem;
  transition: border-color .3s;
}
.card-dark:hover { border-color: rgba(255,45,139,.25); }

/* Línea acento superior */
.accent-top-line {
  position: relative; overflow: hidden;
}
.accent-top-line::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #FF2D8B, #B44FFF, #00C8FF);
  background-size: 300%;
  animation: holoShift 3s linear infinite;
}

/* Etiqueta de sección */
.section-label-iflux {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--iflux-pink);
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.section-label-iflux::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--iflux-pink);
}

/* Número decorativo grande */
.deco-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: rgba(255,45,139,.15);
  letter-spacing: .04em;
  line-height: 1;
}

/* ════════════════════════════════════════
   ANIMACIONES
════════════════════════════════════════ */
@keyframes holoShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%       { opacity: .6; transform: scale(1.3) rotate(180deg); }
}

/* Scroll reveal (activado por JS) */
.iflux-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.25,.46,.45,.94),
              transform .8s cubic-bezier(.25,.46,.45,.94);
}
.iflux-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.iflux-reveal.delay-1 { transition-delay: .1s; }
.iflux-reveal.delay-2 { transition-delay: .2s; }
.iflux-reveal.delay-3 { transition-delay: .3s; }
