/*
Theme Name: ART LAB Theme
Theme URI: https://artcocoyrodo.com/
Author: Cocó & Rodo — ART LAB
Description: Tema propio y liviano para ART LAB. Diseñado para WordPress + WooCommerce, sin dependencia de Divi.
Version: 1.16
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: artlab-theme
*/

:root {
  --al-rosa-petalo: #FDF0F7;
  --al-rosa-medio: #F5C8E8;
  --al-rosa-card: #FCE4F2;
  --al-fucsia: #CC00A3;
  --al-fucsia-hover: #A80081;
  --al-tinta: #1A0010;
  --al-ciruela: #6B3A55;
  --al-gris-rosa: #7A5A6B;
  --al-blanco: #FFFFFF;
  --al-borde: rgba(204,0,163,.10);
  --al-sombra: 0 10px 34px rgba(26,0,16,.08);
  --al-sombra-suave: 0 3px 16px rgba(26,0,16,.06);
  --al-max: 1180px;
  --al-r-lg: 28px;
  --al-r-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  color: var(--al-tinta);
  background: var(--al-rosa-petalo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--al-fucsia); outline-offset: 3px; }

.artlab-shell { width: min(var(--al-max), calc(100% - 40px)); margin-inline: auto; }
.artlab-site-main { min-height: 60vh; }
.artlab-content-wrap { width: min(1000px, calc(100% - 40px)); margin: 40px auto 72px; }
.artlab-content-card { background: #fff; border: 1px solid var(--al-borde); border-radius: var(--al-r-lg); padding: 40px; box-shadow: var(--al-sombra-suave); }

/* Header global público */
.artlab-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,0,16,.05);
}
.admin-bar .artlab-global-header { top: 32px; }
.artlab-nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.artlab-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.artlab-brand img { height: 38px; width: auto; display: block; flex: 0 0 auto; }
.artlab-brand-lockup-text { display:flex; flex-direction:column; line-height:1; white-space:nowrap; }
.artlab-brand-lockup-text strong { font-family:'Cormorant Garamond',serif; font-size:20px; font-weight:600; color:var(--al-fucsia); }
.artlab-brand-lockup-text small { margin-top:5px; font-family:'Outfit',sans-serif; font-size:8px; font-weight:800; letter-spacing:2.6px; color:var(--al-tinta); }
.artlab-brand-text { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 18px; color: var(--al-fucsia); line-height: 1; }
.artlab-brand-text span { display: block; margin-top: 4px; font-family: 'Outfit', sans-serif; font-size: 8px; letter-spacing: 2px; color: var(--al-tinta); font-weight: 800; }
.artlab-nav-links { display: flex; align-items: center; gap: 30px; }
.artlab-nav-links a { font-size: 13px; font-weight: 700; text-decoration: none; color: #5c354c; }
.artlab-nav-links a:hover, .artlab-nav-links a[aria-current="page"] { color: var(--al-fucsia); }
.artlab-nav-actions { display: flex; align-items: center; gap: 10px; }
.artlab-global-language { display:flex; align-items:center; justify-content:center; }
.artlab-global-language-mobile { display:none; }
.artlab-global-language .artlab-language-switcher { z-index:10020; }
.artlab-global-language .artlab-language-menu { z-index:10030; }
.artlab-login-button, .artlab-pill-button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; padding: 13px 24px; text-decoration: none; font-size: 13px; font-weight: 800;
  border: 1.5px solid transparent; background: var(--al-fucsia); color: #fff !important;
  box-shadow: 0 8px 24px rgba(204,0,163,.20); transition: .18s ease;
}
.artlab-login-button:hover, .artlab-pill-button:hover { background: var(--al-fucsia-hover); transform: translateY(-1px); }
.artlab-cart-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; text-decoration: none; color: var(--al-tinta); }
.artlab-cart-count { position: absolute; top: 0; right: -1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--al-fucsia); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.artlab-mobile-cart-shortcut { display:none; }
.artlab-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--al-rosa-petalo); color: var(--al-tinta); cursor: pointer; font-size: 21px; }
.artlab-mobile-menu { display: none; background: #fff; border-top: 1px solid rgba(26,0,16,.05); padding: 15px 20px 22px; }
.artlab-mobile-menu.is-open { display: block; }
.artlab-mobile-menu a { display: block; padding: 12px 2px; text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 1px solid #f6edf2; }
.artlab-mobile-menu .artlab-login-button { margin-top:14px; width:100%; border-bottom:0; display:flex !important; align-items:center; justify-content:center; text-align:center; padding:13px 24px; }

/* Fondo público común */
body:not(.artlab-shell-page) .artlab-site-main { position: relative; overflow: hidden; }
body:not(.artlab-shell-page) .artlab-site-main::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -140px; top: -160px; background: var(--al-rosa-medio); opacity: .5; pointer-events: none; z-index: 0;
}
body:not(.artlab-shell-page) .artlab-site-main > * { position: relative; z-index: 1; }

/* El Inicio ya trae header/footer internos dentro del shortcode. Al usar este tema,
   mostramos el header/footer globales y ocultamos solo los duplicados del shortcode. */
body.home #artlab-inicio > .site-header,
body.home #artlab-inicio > footer { display: none !important; }

/* Neutraliza restos de estructura Divi si quedaran clases guardadas en páginas antiguas. */
.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner, .et_pb_module.et_pb_code {
  max-width: none;
}

/* Footer global */
.artlab-global-footer { background: #fff; border-top: 1px solid rgba(26,0,16,.06); padding: 40px 0; }
.artlab-footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; color: #8f687e; font-size: 11px; flex-wrap: wrap; }
.artlab-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.artlab-footer-links a { text-decoration: none; }
.artlab-footer-links a:hover { color: var(--al-fucsia); }

/* WordPress genérico */
.entry-title, .page-title { font-size: clamp(32px,5vw,52px); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 24px; color: var(--al-tinta); }
.entry-content { color: var(--al-gris-rosa); }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--al-tinta); }
.entry-content h2 { font-size: clamp(26px,4vw,38px); }
.entry-content a { color: var(--al-fucsia); }

@media (max-width: 980px) {
  .artlab-nav-links, .artlab-nav-actions { display: none; }
  .artlab-nav { gap:10px; }
  .artlab-brand { min-width:0; margin-right:auto; }
  .artlab-global-language-mobile { display:flex; flex:0 0 auto; }
  .artlab-global-language-mobile .artlab-language-current {
    min-width:58px;
    height:44px;
    padding:0 10px;
  }
  .artlab-mobile-cart-shortcut { display:inline-flex; flex:0 0 44px; }
  .artlab-menu-toggle { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; }
}
@media (max-width: 782px) { .admin-bar .artlab-global-header { top: 46px; } }
@media (max-width: 640px) {
  .artlab-shell { width: min(100% - 32px, var(--al-max)); }
  .artlab-content-wrap { width: calc(100% - 32px); margin-top: 24px; }
  .artlab-content-card { padding: 24px 20px; border-radius: 22px; }
  .artlab-brand img { height:30px; }
  .artlab-brand-lockup-text strong { font-size:16px; }
  .artlab-brand-lockup-text small { font-size:7px; letter-spacing:2px; margin-top:4px; }
  .artlab-nav { min-height:72px; }
}
@media (max-width: 390px) {
  .artlab-shell { width:calc(100% - 24px); }
  .artlab-brand { gap:7px; }
  .artlab-brand img { height:27px; }
  .artlab-brand-lockup-text strong { font-size:14px; }
  .artlab-brand-lockup-text small { font-size:6px; letter-spacing:1.7px; }
  .artlab-nav { gap:8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
