/*
Theme Name: LABiAL LAB
Theme URI: https://labiallab.com
Author: LABiAL LAB
Author URI: https://labiallab.com
Description: Tema oficial de LABiAL LAB — kit de pigmentos para crear labiales personalizados. Diseño oscuro con barra arcoíris animada y calculadora de tonos integrada.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: Propietario
Text Domain: labiallab
*/

/* =============================================
   VARIABLES Y RESET
   ============================================= */
:root {
  --ink:       #0E0C0B;
  --ink-2:     #161210;
  --paper:     #F3ECE3;
  --paper-dim: #C9BBA8;
  --line:      #332C27;
  --red:       #C81D3F;
  --yellow:    #E8B12C;
  --blue:      #1E4D8C;
  --black-pig: #1A1512;
  --white-pig: #FBF8F4;
  --gold:      #C99A4F;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; height: auto; }
a   { color: inherit; }
p   { margin: 0 0 1em; }
ul  { margin: 0; padding: 0; list-style: none; }

/* =============================================
   TIPOGRAFÍA
   ============================================= */
h1, h2, h3, h4 {
  font-family: 'Archivo Black', 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 .5em;
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  letter-spacing: .02em;
}

.eyebrow {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

/* =============================================
   LAYOUT
   ============================================= */
.ll-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.ll-section { padding: 60px 0; }

.ll-section-head { margin-bottom: 40px; }
.ll-section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 10px; }
.ll-section-head p  { font-size: 16px; color: var(--paper-dim); line-height: 1.6; margin-top: 12px; max-width: 560px; }
.ll-section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.ll-section-head.center p { margin-left: auto; margin-right: auto; }

/* =============================================
   HEADER / NAV
   ============================================= */
#ll-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 12, 11, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Logo centrado */
.ll-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0 10px;
}
.ll-logo-wrap a { display: flex; align-items: center; }
.ll-logo-wrap img { height: 120px; width: auto; }

/* Barra arcoíris corrida con nav */
.ll-color-nav {
  position: relative;
  width: 100%;
  height: 52px;
  background: linear-gradient(
    90deg,
    #C81D3F 0%, #C81D3F 12%,
    #E8B12C 28%, #E8B12C 38%,
    #1E4D8C 50%, #1E4D8C 62%,
    #D8D0C4 73%, #D8D0C4 80%,
    #1A1512 88%, #1A1512 100%
  );
  background-size: 200% 100%;
  animation: stripe-flow 12s linear infinite;
  overflow: hidden;
}

@keyframes stripe-flow {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

.ll-nav-links {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
}

.ll-nav-links a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  transition: background .15s ease;
  border-right: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
  padding: 0 6px;
}
.ll-nav-links a:last-child { border-right: none; }
.ll-nav-links a:hover  { background: rgba(255,255,255,.15); }
.ll-nav-links a.current-menu-item,
.ll-nav-links a.active { background: rgba(255,255,255,.22); box-shadow: inset 0 -3px 0 rgba(255,255,255,.7); }

.ll-nav-toggle {
  display: none;
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  width: 36px; height: 36px;
  color: #fff; font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
}

/* =============================================
   BOTONES
   ============================================= */
.ll-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease;
  line-height: 1;
}
.ll-btn:hover { transform: translateY(-1px); }
.ll-btn svg   { width: 18px; height: 18px; flex-shrink: 0; }

.ll-btn-green  { background: #25D366; color: #0E0C0B; }
.ll-btn-outline{ background: transparent; border-color: var(--line); color: var(--paper); }
.ll-btn-outline:hover { border-color: var(--gold); }
.ll-btn-gold   { background: var(--gold); color: var(--ink); }

/* =============================================
   DRIP BAR (element decorativo)
   ============================================= */
.ll-drip-bar {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--ink);
}
.ll-drip-bar .rainbow-base {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #1E4D8C, #1E8C7A, #4FAE4A, #E8B12C, #E8842C, #C81D3F, #9C2D6E, #5E2D8C, #1E4D8C);
  background-size: 200% 100%;
  animation: drip-shimmer 14s linear infinite;
}
@keyframes drip-shimmer { to { background-position: -200% 0; } }

.ll-drip-bar .drop {
  position: absolute; bottom: 6px;
  width: 16px; height: 22px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  animation: drip-fall 3.2s cubic-bezier(.6,0,.8,.4) infinite;
}
@keyframes drip-fall {
  0%  { transform: translateY(-90px); opacity: 0; }
  8%  { opacity: 1; }
  70% { transform: translateY(0); opacity: 1; }
  85% { transform: translateY(4px) scaleY(.6); opacity: .6; }
  100%{ transform: translateY(4px) scaleY(.6); opacity: 0; }
}
.ll-drip-bar .d1 { left:14%; background: var(--red);       animation-delay: 0s; }
.ll-drip-bar .d2 { left:31%; background: var(--yellow);    animation-delay: .6s; }
.ll-drip-bar .d3 { left:48%; background: var(--blue);      animation-delay: 1.2s; }
.ll-drip-bar .d4 { left:65%; background: var(--white-pig); animation-delay: 1.8s; }
.ll-drip-bar .d5 { left:82%; background: var(--black-pig); animation-delay: 2.4s; }

/* =============================================
   HERO (INICIO)
   ============================================= */
.ll-hero {
  padding: 64px 0 0;
}
.ll-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.ll-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.ll-hero h1 .accent {
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ll-hero .sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--paper-dim);
  line-height: 1.65;
  max-width: 480px;
}
.ll-hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ll-hero-img {
  border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
}

/* =============================================
   STEPS (CÓMO FUNCIONA)
   ============================================= */
.ll-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ll-step-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  background: var(--ink-2);
}
.ll-step-num  { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--gold); margin-bottom: 12px; }
.ll-step-card h3 { font-size: 20px; margin-bottom: 10px; }
.ll-step-card p  { font-size: 14.5px; color: var(--paper-dim); line-height: 1.6; margin: 0; }
.ll-step-drops { display: flex; gap: 6px; margin-bottom: 14px; }
.ll-drop-dot   { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(45deg); }

/* =============================================
   WHY / BENEFICIOS
   ============================================= */
.ll-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.ll-why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ll-why-icon {
  width: 34px; height: 34px;
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,154,79,.12);
  color: var(--gold); font-size: 16px; font-weight: 700;
}
.ll-why-item h4 { font-size: 15.5px; font-weight: 700; margin: 0 0 4px; }
.ll-why-item p  { font-size: 14px; color: var(--paper-dim); line-height: 1.55; margin: 0; }

/* =============================================
   PRODUCT TEASER (INICIO)
   ============================================= */
.ll-product-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ll-product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  background: var(--ink-2);
  text-align: center;
}
.ll-product-card .price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  margin: 10px 0 6px;
}
.ll-product-card p   { font-size: 13.5px; color: var(--paper-dim); margin-bottom: 16px; }
.ll-product-card a   { font-size: 13.5px; font-weight: 700; color: var(--gold); text-decoration: none; }
.ll-product-card a:hover { text-decoration: underline; }

/* =============================================
   TIENDA
   ============================================= */
.ll-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ll-shop-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-2);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ll-shop-card.featured {
  border-color: var(--gold);
  background: linear-gradient(155deg, var(--ink-2), var(--ink));
}
.ll-shop-card.featured::before {
  content: 'Más popular';
  position: absolute; top: -12px; left: 26px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}
.ll-shop-card .swatches { display: flex; gap: 6px; margin-bottom: 18px; }
.ll-shop-card .swatches span {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.ll-shop-card h3 { font-size: 21px; margin-bottom: 8px; }
.ll-shop-card .price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 38px; margin: 6px 0 4px;
}
.ll-shop-card .price-note { font-size: 12.5px; color: var(--paper-dim); margin-bottom: 18px; }
.ll-shop-card ul.includes {
  list-style: none; margin: 0 0 24px; padding: 0;
  font-size: 13.5px; color: var(--paper-dim);
  display: flex; flex-direction: column; gap: 8px; flex-grow: 1;
}
.ll-shop-card ul.includes li { display: flex; gap: 8px; align-items: flex-start; }
.ll-shop-card ul.includes li::before { content: '✓'; color: var(--gold); flex-shrink: 0; }
.ll-shop-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.ll-mkt-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ink);
  color: var(--paper); text-decoration: none; font-weight: 700; font-size: 13.5px;
  transition: border-color .15s ease, transform .12s ease;
}
.ll-mkt-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.ll-mkt-logo { font-family: 'Archivo Black', sans-serif; font-size: 12.5px; letter-spacing: -.02em; }
.ml-yellow { color: #FFE600; }
.amz-orange{ color: #FF9900; }

/* =============================================
   COLORES FAVORITOS
   ============================================= */
.ll-cf-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding-bottom: 60px;
}
.ll-cf-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .12s ease, border-color .15s ease;
}
.ll-cf-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.ll-cf-swatch { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.ll-cf-lip    { width: 70%; height: auto; }
.ll-cf-body   { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ll-cf-name   { font-family: 'Archivo Black', sans-serif; font-size: 15px; font-weight: 900; line-height: 1.1; }
.ll-cf-mood   { font-size: 12px; color: var(--paper-dim); line-height: 1.5; }
.ll-cf-outfits{ font-size: 11.5px; color: var(--gold); font-weight: 600; }
.ll-cf-formula{
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--paper-dim);
  display: flex; flex-wrap: wrap; gap: 4px;
}
.ll-cf-formula .dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; vertical-align: middle;
  border: 1px solid rgba(255,255,255,.15);
}
.ll-cf-formula .part { display: flex; align-items: center; gap: 3px; }

/* =============================================
   CONTACTO
   ============================================= */
.ll-contact-hero {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 0;
}
.ll-contact-hero h1 { font-size: clamp(28px, 6vw, 50px); max-width: 680px; margin: 0 auto 16px; }
.ll-contact-hero p  { font-size: 16px; color: var(--paper-dim); max-width: 480px; margin: 0 auto 36px; line-height: 1.6; }

/* =============================================
   CALCULADORA (embed)
   ============================================= */
.ll-calc-intro { padding: 48px 0 8px; text-align: center; }
.ll-calc-intro h1 { font-size: clamp(28px, 5vw, 46px); max-width: 680px; margin: 0 auto 14px; }
.ll-calc-intro p  { font-size: 15.5px; color: var(--paper-dim); max-width: 540px; margin: 0 auto; line-height: 1.6; }
.ll-calc-embed { padding: 32px 0 64px; }

/* =============================================
   FAQ
   ============================================= */
.ll-faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.ll-faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.ll-faq-item summary::-webkit-details-marker { display: none; }
.ll-faq-item summary::after { content: '+'; font-size: 20px; color: var(--gold); margin-left: 16px; transition: transform .2s; }
.ll-faq-item[open] summary::after { transform: rotate(45deg); }
.ll-faq-item p { margin: 14px 0 0; font-size: 14.5px; color: var(--paper-dim); line-height: 1.6; }

/* =============================================
   FOOTER
   ============================================= */
#ll-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
}
#ll-footer img { height: 44px; margin: 0 auto 14px; }
#ll-footer p   { font-size: 12px; color: var(--paper-dim); margin: 4px 0; }
.ll-foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.ll-foot-links a { font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--paper-dim); }
.ll-foot-links a:hover { color: var(--gold); }
.ll-legal { font-size: 11px; color: var(--line); margin-top: 14px; }

/* =============================================
   CTA FINAL
   ============================================= */
.ll-final-cta { text-align: center; padding: 72px 0 90px; }
.ll-final-cta h2 { font-size: clamp(26px, 5vw, 44px); max-width: 640px; margin: 0 auto 16px; }
.ll-final-cta p  { color: var(--paper-dim); font-size: 16px; margin-bottom: 32px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .ll-hero-grid     { grid-template-columns: 1fr; gap: 32px; }
  .ll-steps         { grid-template-columns: 1fr; }
  .ll-shop-grid     { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .ll-product-teaser{ grid-template-columns: 1fr; }
  .ll-cf-grid       { grid-template-columns: repeat(3, 1fr); }
  .ll-color-nav     { height: auto; min-height: 52px; }
  .ll-nav-links     { position: static; flex-direction: column; display: none; }
  .ll-nav-links.open{ display: flex; }
  .ll-nav-links a   { height: 46px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .ll-nav-toggle    { display: flex; }
}

@media (max-width: 600px) {
  .ll-logo-wrap img  { height: 88px; }
  .ll-hero h1        { font-size: 34px !important; }
  .ll-hero .sub      { font-size: 15px; }
  .ll-hero-ctas      { flex-direction: column; }
  .ll-hero-ctas .ll-btn { width: 100%; justify-content: center; }
  .ll-why-grid       { grid-template-columns: 1fr; }
  .ll-cf-grid        { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ll-nav-links a    { font-size: 11px; }
  .ll-foot-links     { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ll-drip-bar .drop,
  .ll-color-nav      { animation: none; }
  .ll-drip-bar .rainbow-base { animation: none; background-position: 0 0; }
}
