/* ========================================================
   CUAKDESIGN STUDIO — LANDING PAGE ESTILOS
   Paleta: Creative Studio Light (#f8fafc), Amber (#d97706), Cyan (#0284c7), Fuchsia (#db2777)
   ======================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --border-subtle: #e2e8f0;
  --border-cyan: rgba(2, 132, 199, 0.3);
  --border-amber: rgba(245, 158, 11, 0.45);
  --border-fuchsia: rgba(236, 72, 153, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-cyan: #0284c7;
  --accent-cyan-dark: #0369a1;
  --accent-fuchsia: #db2777;
  --accent-pink: #e11d48;
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-emerald: #059669;

  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-main);
  background-image: 
    /* 1. Resplandor superior cálido y suave de estudio */
    radial-gradient(ellipse 90% 650px at 50% -80px, rgba(254, 243, 199, 0.75) 0%, rgba(255, 237, 213, 0.45) 45%, transparent 80%),
    /* 2. Suave toque de color lateral */
    radial-gradient(ellipse 60% 500px at 90% 800px, rgba(254, 240, 138, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 55% 500px at 10% 1600px, rgba(254, 215, 170, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 70% 600px at 50% 2600px, rgba(254, 243, 199, 0.35) 0%, transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% auto;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   EFECTO BLANCO Y NEGRO INTERACTIVO (CUAK-BW)
   ======================================================== */
.cuak-bw {
  filter: grayscale(100%) contrast(1.15) !important;
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
  position: relative;
}

.cuak-bw::after {
  content: 'B&N';
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* Elementos seleccionables con cursor interactivo */
.cuak-selectable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cuak-selectable:hover {
  outline: 1px dashed rgba(56, 189, 248, 0.4);
  outline-offset: 3px;
}

/* ========================================================
   OVERLAY DE SELECCIÓN CON HORMIGAS MARCHANTES (MARCHING ANTS)
   ======================================================== */
@keyframes marchingAnts {
  0% {
    background-position: 0 0, 0 100%, 0 0, 100% 0;
  }
  100% {
    background-position: 40px 0, -40px 100%, 0 -40px, 100% 40px;
  }
}

.cuak-selection-box {
  position: absolute;
  pointer-events: none;
  z-index: 9998;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  
  /* Borde animado de hormigas marchantes usando gradientes discontinuos */
  background-image: 
    linear-gradient(90deg, #38bdf8 50%, transparent 50%),
    linear-gradient(90deg, #38bdf8 50%, transparent 50%),
    linear-gradient(0deg, #38bdf8 50%, transparent 50%),
    linear-gradient(0deg, #38bdf8 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size: 12px 2px, 12px 2px, 2px 12px, 2px 12px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  animation: marchingAnts 0.8s linear infinite;
}

/* 8 Tiradores de transformación estilo CuakDesign */
.cuak-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background-color: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.handle-tl { top: -5px; left: -5px; }
.handle-tc { top: -5px; left: calc(50% - 4.5px); }
.handle-tr { top: -5px; right: -5px; }
.handle-ml { top: calc(50% - 4.5px); left: -5px; }
.handle-mr { top: calc(50% - 4.5px); right: -5px; }
.handle-bl { bottom: -5px; left: -5px; }
.handle-bc { bottom: -5px; left: calc(50% - 4.5px); }
.handle-br { bottom: -5px; right: -5px; }

/* Etiqueta del overlay */
.cuak-selection-tag {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #0ea5e9;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
}

.cuak-selection-tag .tag-hint {
  opacity: 0.85;
  font-weight: 400;
  font-family: var(--font-mono);
}

/* Toolbar flotante */
.floating-selection-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 22, 29, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  padding: 10px 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.2);
  z-index: 9999;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.floating-selection-bar .bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-selection-bar .btn-action {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.floating-selection-bar .btn-action:hover {
  background: var(--accent-cyan);
  color: #000000;
}

/* ========================================================
   ESTILOS GENERALES Y LAYOUT
   ======================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Barra interactiva superior */
.interactive-topbar {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 16px;
  font-size: 13px;
  position: relative;
  z-index: 1000;
}

.interactive-topbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.topbar-text {
  color: #e2e8f0;
}

kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-topbar {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-topbar:hover {
  background: #38bdf8;
  color: #000;
}

.btn-close-topbar {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.btn-close-topbar:hover { color: #fff; }

/* Cabecera del sitio */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 500;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-name-img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-item:hover { color: #0f172a; }

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
}

/* Botones universales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}
.btn-outline:hover {
  background: rgba(245, 158, 11, 0.15);
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
/* Foco cenital ámbar de lámpara de estudio */
.hero-glow-1 {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(254, 243, 199, 0.85) 0%, rgba(255, 237, 213, 0.4) 50%, transparent 80%);
  filter: blur(100px);
  opacity: 0.95;
}
/* Sutil dispersión cálida artesanal */
.hero-glow-2 {
  top: 120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.5) 0%, transparent 75%);
  filter: blur(110px);
  opacity: 0.85;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.badge-text {
  color: #92400e;
  font-weight: 600;
}

.badge-tag {
  background: #fef3c7;
  color: #b45309;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.text-gradient {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 45%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-hero-download {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hero-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.55);
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-weight: 700;
  font-size: 15px;
}

.btn-sub-label {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-hero-secondary:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: var(--border-fuchsia);
  color: #ec4899;
}

.hero-features-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* ========================================================
   MOCKUP INTERACTIVO DEL ESTUDIO
   ======================================================== */
.studio-window {
  background: #14161d;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
  overflow: hidden;
}

.window-titlebar {
  background: #101217;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-buttons {
  display: flex;
  gap: 6px;
}

.w-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.w-close { background: #ef4444; }
.w-min { background: #f59e0b; }
.w-max { background: #10b981; }

.window-title {
  font-size: 12px;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.window-status-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.window-body {
  display: grid;
  grid-template-columns: 46px 1fr 140px;
  height: 380px;
  background: #0e1015;
}

.window-toolbar {
  background: #12151c;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
}

.tool-btn {
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.tool-btn.active, .tool-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.window-canvas-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image: 
    linear-gradient(45deg, #0e1320 25%, transparent 25%), 
    linear-gradient(-45deg, #0e1320 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #0e1320 75%), 
    linear-gradient(-45deg, transparent 75%, #0e1320 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  position: relative;
}

.canvas-artboard {
  width: 260px;
  height: 300px;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.mockup-art-img {
  width: 130px;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.artboard-stamp {
  position: absolute;
  bottom: 45px;
  right: 15px;
}

.mockup-seal-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.artboard-badges {
  display: flex;
  gap: 6px;
}

.art-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}
.tag-dtf { background: #0284c7; color: #fff; }
.tag-dpi { background: #ec4899; color: #fff; }
.tag-cm { background: #1e293b; color: #94a3b8; }

.window-layers-panel {
  background: #12151c;
  border-left: 1px solid var(--border-subtle);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layers-header {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
}
.layer-row.active {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.layer-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-blend {
  font-size: 9px;
  opacity: 0.6;
}

/* ========================================================
   BANNER INTERACTIVO
   ======================================================== */
.interaction-explainer {
  padding: 20px 0;
}

.explainer-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
}

.explainer-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explainer-text h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #78350f;
  margin-bottom: 6px;
}

.explainer-text p {
  font-size: 14px;
  color: #92400e;
}

.explainer-cta {
  flex-shrink: 0;
}

/* ========================================================
   SECCIONES: HEADERS Y CARDS
   ======================================================== */
.section-header {
  margin-bottom: 50px;
}
.section-header.text-center { text-align: center; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 12px;
}
.section-tag.text-pink { color: var(--accent-fuchsia); }

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.12);
}

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.bg-cyan { background: #e0f2fe; color: #0284c7; }
.bg-fuchsia { background: #fce7f3; color: #db2777; }
.bg-amber { background: #fef3c7; color: #d97706; }
.bg-emerald { background: #d1fae5; color: #059669; }

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.card-highlight {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d97706;
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Módulos Textiles */
.modules-section {
  padding: 80px 0;
  background: #ffffff;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.module-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.module-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-fuchsia);
  margin-bottom: 12px;
}

.module-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.module-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.module-features-list {
  list-style: none;
  font-size: 13px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* ========================================================
   SECCIÓN DE DESCARGA
   ======================================================== */
.download-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.download-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.download-box-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 28px;
}

.download-app-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.release-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.download-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}

.download-subtitle {
  font-size: 15px;
  color: #475569;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.spec-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.spec-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.download-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.55);
}

.download-note {
  font-size: 13px;
  color: #10b981;
}

.installation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.step-col {
  position: relative;
  padding-left: 44px;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 50%;
  color: #b45309;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.step-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.step-col p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========================================================
   SECCIÓN DE DONACIONES
   ======================================================== */
.donations-section {
  padding: 80px 0;
  background: #ffffff;
}

.donations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.donate-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.donate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.card-kofi {
  border: 1px solid rgba(114, 164, 242, 0.35);
  box-shadow: 0 10px 30px rgba(114, 164, 242, 0.1);
}
.card-paypal {
  border: 1px solid rgba(0, 112, 186, 0.35);
  box-shadow: 0 10px 30px rgba(0, 112, 186, 0.1);
}
.card-cafecito {
  border: 1px solid rgba(42, 157, 143, 0.35);
  box-shadow: 0 10px 30px rgba(42, 157, 143, 0.1);
}

.donate-card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}
.card-kofi .donate-card-badge { background: rgba(114, 164, 242, 0.2); color: #72a4f2; }
.card-paypal .donate-card-badge { background: rgba(0, 112, 186, 0.2); color: #38bdf8; }
.card-cafecito .donate-card-badge { background: rgba(42, 157, 143, 0.2); color: #34d399; }

.donate-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.donate-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.donate-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex: 1;
}

.btn-donate {
  width: 100%;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.btn-kofi { background: #72a4f2; color: #ffffff; }
.btn-kofi:hover { background: #5a8fe3; }
.btn-paypal { background: #0070ba; color: #ffffff; }
.btn-paypal:hover { background: #005a96; }
.btn-cafecito { background: #2a9d8f; color: #ffffff; }
.btn-cafecito:hover { background: #228075; }

/* ========================================================
   SECCIÓN DE AUTOR
   ======================================================== */
.author-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.author-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.author-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.author-badge-verified {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #f59e0b;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #ffffff;
}

.author-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.author-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 700px;
}

.author-links {
  display: flex;
  gap: 12px;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 60px 0 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-nav-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.footer-nav-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
.footer-nav-col a:hover {
  color: #0f172a;
}

/* ========================================================
   GRID DE DESCARGA DUAL & CÓDIGO QR
   ======================================================== */
.download-options-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}



.download-mirrors-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mirror-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.mirror-primary {
  border-color: #fde68a;
  background: linear-gradient(145deg, #fffdf7 0%, #fffbeb 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}

.mirror-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.mirror-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mirror-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.secondary-icon {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}

.mirror-info {
  flex: 1;
}

.mirror-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.mirror-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.btn-download-mega {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  padding: 15px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.btn-download-mega:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.55);
}

.mirror-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mirror-check {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
}

.copy-mega-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-mega-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.local-actions {
  display: flex;
  gap: 12px;
}

.btn-download-local {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-download-local:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ========================================================
   TARJETA CÓDIGO QR
   ======================================================== */
.download-qr-col {
  display: flex;
}

.qr-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.qr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.qr-card-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qr-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.qr-scanner-box {
  width: 180px;
  height: 180px;
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Scanner Corner Brackets */
.corner-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #f59e0b;
  border-style: solid;
  pointer-events: none;
}
.corner-bracket.top-left {
  top: -4px;
  left: -4px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 6px;
}
.corner-bracket.top-right {
  top: -4px;
  right: -4px;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 6px;
}
.corner-bracket.bottom-left {
  bottom: -4px;
  left: -4px;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 6px;
}
.corner-bracket.bottom-right {
  bottom: -4px;
  right: -4px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 6px;
}

/* Subtle Laser Scan Effect */
.scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), transparent);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  animation: laserScan 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes laserScan {
  0% { top: 6px; opacity: 0.3; }
  50% { opacity: 0.9; }
  100% { top: calc(100% - 8px); opacity: 0.3; }
}

.qr-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-instruction {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 260px;
}

.qr-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #b45309;
  text-decoration: none;
  transition: all 0.2s;
}

.qr-link-badge:hover {
  background: #fef3c7;
  border-color: #fde68a;
  color: #78350f;
}


.brand-navbar-img {
  height: 42px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.brand-navbar-img:hover {
  transform: scale(1.02);
}


/* Mockup Canvas Ampliado con Cuak Pato */
.canvas-artboard {
  width: 320px;
  height: 330px;
  background: radial-gradient(circle at center, rgba(22, 25, 33, 0.95) 0%, rgba(12, 14, 18, 0.98) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(56, 189, 248, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px;
  overflow: hidden;
}

.mockup-art-img {
  width: 95%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.7));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.mockup-art-img:hover {
  transform: scale(1.03);
}

.artboard-badges {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* ========================================================
   EFECTOS APLICABLES POR LA PALETA DE ARTISTA
   ======================================================== */

/* 1. Modo Costura / Bordado Textil (con bordes de letras tipo pespunte) */
.cuak-stitch {
  outline: 3px dashed #f59e0b !important;
  outline-offset: -3px !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 14px rgba(245, 158, 11, 0.4), 0 4px 10px rgba(0,0,0,0.7) !important;
  position: relative;
  -webkit-text-stroke: 1px #f59e0b !important;
  text-shadow: 2px 2px 0px #78350f, -1px -1px 0px #92400e !important;
}
.cuak-stitch * {
  -webkit-text-stroke: 0.9px #f59e0b !important;
  text-shadow: 1.5px 1.5px 0px #78350f, -1px -1px 0px #92400e !important;
}

/* 2. Borrar Fondo / Relleno Transparente (hace transparente el fondo Y el relleno de letras) */
.cuak-no-bg {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1.5px dashed rgba(56, 189, 248, 0.7) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.2px #38bdf8 !important;
}
.cuak-no-bg * {
  background-color: transparent !important;
  background-image: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1.2px #38bdf8 !important;
}

/* 3. DTF Neón & Brillo Foil */
.cuak-dtf-glow {
  filter: drop-shadow(0 0 14px #10b981) drop-shadow(0 0 28px #06b6d4) brightness(125%) contrast(120%) !important;
  border-color: #10b981 !important;
}

/* Eliminar barra flotante antigua */
.floating-selection-bar {
  display: none !important;
}

/* ========================================================
   WIDGET FLOTANTE: PALETA DE ARTISTA (CORNER DOCKED)
   ======================================================== */
.artist-palette-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none; /* children enable pointer events */
}

/* Botón disparador con imagen de la paleta */
.palette-trigger-btn {
  pointer-events: auto;
  position: relative;
  width: 76px;
  height: 84px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
}

.palette-trigger-btn:hover {
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.7));
}

.palette-btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.palette-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  opacity: 0.7;
  animation: palettePulse 2.2s infinite;
  pointer-events: none;
}

@keyframes palettePulse {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

.palette-status-badge {
  position: absolute;
  bottom: -4px;
  right: -2px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #031024;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.4);
}

/* Panel expandido de la paleta */
.palette-studio-panel {
  pointer-events: auto;
  width: 290px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 35px rgba(245, 158, 11, 0.1);
  backdrop-filter: blur(16px);
  margin-bottom: 14px;
  animation: panelSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.palette-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.palette-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.palette-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: dotBlink 1.5s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.palette-panel-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0f172a;
}

.palette-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.palette-min-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  line-height: 1;
}

.palette-min-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.1);
}

.palette-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.palette-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  transform: scale(1.1);
}

.palette-instructions {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 14px;
}

.palette-instructions strong {
  color: #d97706;
}

/* Lienzo de la paleta con las pinturas posicionadas */
.palette-interactive-canvas {
  position: relative;
  width: 220px;
  height: 254px;
  margin: 0 auto 14px auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}

.palette-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Botones sobre cada gota de pintura */
.paint-spot-btn {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  z-index: 5;
}

.paint-spot-btn .spot-icon {
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  transition: transform 0.2s ease;
}

.paint-spot-btn:hover {
  transform: translate(-50%, -50%) scale(1.22);
}

.paint-spot-btn:hover .spot-icon {
  transform: scale(1.15);
}

.paint-spot-btn.active {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 18px currentColor, inset 0 0 8px currentColor;
  border-color: #ffffff;
}

/* Coordenadas precisas sobre layer-artist-palette.png */
.spot-blue {
  top: 20%;
  left: 31%;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.6);
}
.spot-blue.active {
  box-shadow: 0 0 20px #38bdf8;
}

.spot-red {
  top: 18%;
  left: 63%;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.6);
}
.spot-red.active {
  box-shadow: 0 0 20px #ef4444;
}

.spot-yellow {
  top: 38%;
  left: 79%;
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.6);
}
.spot-yellow.active {
  box-shadow: 0 0 20px #f59e0b;
}

.spot-green {
  top: 66%;
  left: 67%;
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.6);
}
.spot-green.active {
  box-shadow: 0 0 20px #10b981;
}

.spot-cyan {
  top: 77%;
  left: 37%;
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.6);
}
.spot-cyan.active {
  box-shadow: 0 0 20px #06b6d4;
}

.spot-thumb {
  top: 40%;
  left: 19%;
  width: 32px;
  height: 32px;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
}
.spot-thumb:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Barra de estado de herramienta activa */
.palette-active-tool-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-status-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.tool-status-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #d97706;
}

/* Acciones rápidas de la paleta */
.palette-quick-actions {
  display: flex;
  gap: 8px;
}

.btn-palette-reset {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-palette-reset:hover {
  background: #e2e8f0;
}

.btn-palette-help {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: default;
}


/* ========================================================
   DOCK FLOTANTE COMPACTO: MODO INTERACTIVO RESPONSIVE
   ======================================================== */
.palette-compact-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 20px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(18px);
  animation: dockSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 20px);
  user-select: none;
}

@keyframes dockSlideUp {
  from { opacity: 0; transform: translate(-50%, 25px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.dock-badge-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #fef3c7;
  border-radius: 9999px;
  border: 1px solid #fde68a;
  margin-right: 2px;
}

.dock-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: dotBlink 1.5s infinite;
  flex-shrink: 0;
}

.dock-active-tag {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}

.dock-tools-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dock-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
}

.dock-tool-btn .dock-emoji {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.dock-tool-btn:hover {
  transform: scale(1.15);
  background: #fef3c7;
  border-color: #f59e0b;
}

.dock-tool-btn:hover .dock-emoji {
  transform: scale(1.12);
}

.dock-tool-btn.active {
  background: #fde68a;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  transform: scale(1.1);
}

.dock-sep {
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  margin: 0 4px;
}

.dock-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dock-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
}

.dock-action-btn .dock-emoji {
  font-size: 14px;
}

.dock-action-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: scale(1.12);
}

.dock-action-btn.dock-btn-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
}

.mirror-footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mirror-alt-link {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.mirror-alt-link:hover {
  color: #38bdf8;
}

.interactive-topbar { display: none !important; }


/* ========================================================
   SISTEMA RESPONSIVE INTEGRAL (DESKTOP, TABLETS Y MÓVILES)
   ======================================================== */

/* ── 1. NOTEBOOKS & TABLETS HORIZONTALES (max-width: 1024px) ── */
@media (max-width: 1024px) {
  .hero-container {
    gap: 36px;
  }
  .hero-title {
    font-size: 38px;
  }
  .features-grid,
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 2. TABLETS & PHABLETS (max-width: 900px) ── */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-features-chips {
    justify-content: center;
  }
  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
  .download-options-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .author-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .author-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 3. TABLETS EN VERTICAL & CELULARES GRANDES (max-width: 768px) ── */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .site-header {
    padding: 0;
  }
  .header-container {
    padding: 12px 18px;
  }
  .brand-navbar-img {
    height: 36px;
    max-width: 170px;
  }
  .section-title {
    font-size: 28px;
  }
  .section-lead {
    font-size: 14px;
  }
  .features-grid,
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .donations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .window-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .window-toolbar,
  .window-layers-panel {
    display: none !important;
  }
  .canvas-artboard {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
    min-height: 240px;
    max-height: 300px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
  .mockup-art-img {
    max-width: 90%;
    max-height: 80%;
  }
  .window-title {
    font-size: 11px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ── 4. CELULARES ESTÁNDAR (max-width: 640px) ── */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.2;
  }
  .hero-description {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .btn-hero-download,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .btn-hero-download {
    padding: 12px 16px;
  }
  .btn-caption {
    font-size: 10px;
  }
  .btn-title {
    font-size: 14px;
  }
  .hero-features-chips {
    gap: 8px;
  }
  .chip {
    font-size: 11px;
    padding: 4px 10px;
  }
  .download-box {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .download-box-header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
  .download-app-icon {
    width: 64px;
    height: 64px;
  }
  .download-title {
    font-size: 22px;
  }
  .download-subtitle {
    font-size: 13px;
  }
  .mirror-card {
    padding: 20px 16px;
  }
  .mirror-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .btn-download-mega {
    font-size: 13.5px;
    padding: 13px 18px;
    text-align: center;
  }
  .mirror-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mirror-footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .qr-card {
    padding: 24px 16px;
  }
  .qr-scanner-box {
    width: 150px;
    height: 150px;
  }
  .qr-instruction {
    font-size: 12px;
  }
  .qr-link-badge {
    font-size: 10px;
    padding: 5px 10px;
    max-width: 100%;
    word-break: break-all;
  }
  .feature-card,
  .module-card,
  .donate-card {
    padding: 22px 18px;
  }
  .author-card {
    padding: 24px 16px;
  }
  .author-avatar-img {
    width: 88px;
    height: 88px;
  }
  .author-name {
    font-size: 20px;
  }
  .author-role {
    font-size: 12.5px;
  }
  .author-bio {
    font-size: 13px;
  }
  .footer-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-logo {
    margin: 0 auto 12px auto;
  }
  .footer-copy {
    text-align: center;
  }
}

/* ── 5. CELULARES COMPACTOS (max-width: 480px) ── */
@media (max-width: 480px) {
  .header-container {
    padding: 10px 14px;
  }
  .brand-navbar-img {
    height: 30px;
    max-width: 135px;
  }
  #btn-header-download {
    padding: 7px 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .hero-title {
    font-size: 25px;
  }
  .hero-badge {
    font-size: 10.5px;
    padding: 4px 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .spec-item {
    padding: 10px 12px;
  }
  .canvas-artboard {
    min-height: 200px;
    max-height: 250px;
    padding: 8px;
  }
  .artboard-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  .art-tag {
    font-size: 9px;
    padding: 2px 6px;
  }
  .window-status-pill {
    display: none;
  }
  .window-title {
    font-size: 10px;
    max-width: 160px;
  }
  .artist-palette-widget {
    right: 12px;
    bottom: 12px;
  }
  .palette-trigger-btn {
    width: 62px;
    height: 70px;
  }
  .palette-pulse-ring {
    width: 66px;
    height: 66px;
  }
  .palette-studio-panel {
    position: fixed !important;
    bottom: 14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 24px) !important;
    max-width: 305px !important;
    max-height: calc(100vh - 30px) !important;
    overflow-y: auto !important;
    padding: 14px 14px 10px !important;
    border-radius: 18px !important;
    margin-bottom: 0 !important;
    z-index: 100000 !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.3) !important;
  }
  .palette-interactive-canvas {
    width: 160px !important;
    height: 185px !important;
    margin: 4px auto !important;
  }
  .paint-spot-btn {
    width: 29px !important;
    height: 29px !important;
  }
  .paint-spot-btn .spot-icon {
    font-size: 13px !important;
  }
  .palette-instructions {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .palette-active-tool-bar {
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
  }
  .tool-status-name {
    font-size: 12px !important;
  }
  .palette-quick-actions {
    gap: 6px !important;
  }
  .palette-quick-actions .btn-sm {
    padding: 6px 8px !important;
    font-size: 10.5px !important;
  }
  .palette-compact-dock {
    bottom: 12px;
    padding: 5px 10px;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .dock-badge-box {
    display: none;
  }
  .palette-compact-dock {
    padding: 5px 8px;
    gap: 4px;
    bottom: 10px;
  }
  .dock-tool-btn {
    width: 34px;
    height: 34px;
  }
  .dock-tool-btn .dock-emoji {
    font-size: 15px;
  }
  .dock-action-btn {
    width: 32px;
    height: 32px;
  }
  .dock-action-btn .dock-emoji {
    font-size: 13px;
  }
}


/* ── FIX RESPONSIVE: EXPLAINER CARD (Evita que el texto se aplaste en columnas estrechas) ── */
@media (max-width: 900px) {
  .explainer-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 24px 20px !important;
  }
  .explainer-icon {
    margin: 0 auto;
    width: 50px;
    height: 50px;
  }
  .explainer-text {
    width: 100%;
    text-align: center;
  }
  .explainer-text h3 {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .explainer-text p {
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 540px;
    margin: 0 auto;
  }
  .explainer-cta {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .explainer-cta .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .explainer-card {
    padding: 20px 14px !important;
    gap: 14px !important;
    border-radius: 14px !important;
  }
  .explainer-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .explainer-icon svg {
    width: 24px;
    height: 24px;
  }
  .explainer-text h3 {
    font-size: 15.5px;
  }
  .explainer-text p {
    font-size: 12.5px;
  }
  .explainer-cta .btn {
    font-size: 12.5px;
    padding: 9px 16px;
  }
}

/* ========================================================
   SECCIÓN DE CAPTURAS: ESTILOS DE GALERÍA Y SHOWCASE
   ======================================================== */
.gallery-section {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 350px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.text-cyan {
  color: #0284c7 !important;
}

/* Filtros de la Galería */
.gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-tab .tab-icon {
  font-size: 15px;
}

.filter-tab:hover {
  color: #0f172a;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.15);
}

.filter-tab.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

/* Grilla de Capturas */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

/* Card General */
.gallery-card {
  grid-column: span 6;
  background: #13161f;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

/* Cards Destacadas Grandes */
.gallery-card.card-featured {
  grid-column: span 12;
}

@media (min-width: 1024px) {
  .gallery-card.card-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }

  .gallery-card.card-featured .gallery-window {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .gallery-card.card-featured .gallery-img-wrap {
    height: 100%;
    min-height: 380px;
  }
}

.gallery-card:not(.card-featured) {
  grid-column: span 6;
}

@media (min-width: 1200px) {
  .gallery-card:not(.card-featured) {
    grid-column: span 4;
  }
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.22), 0 0 30px rgba(56, 189, 248, 0.12);
}

.gallery-card.is-hidden {
  display: none !important;
}

/* Ventana estilo Studio CuakDesign */
.gallery-window {
  background: #0f1118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #11131a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
}

.bar-dots {
  display: flex;
  gap: 5px;
}

.bar-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.bar-title {
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.bar-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bar-badge.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.bar-badge.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.bar-badge.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.bar-badge.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.bar-badge.badge-pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

/* Imagen dentro de la ventana */
.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #090a0f;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.035);
}

/* Overlay al pasar el cursor */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.btn-expand-gallery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid #38bdf8;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.3);
}

.gallery-card:hover .btn-expand-gallery {
  transform: translateY(0);
}

.btn-expand-gallery:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: scale(1.05);
}

/* Contenido de la Card */
.gallery-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.gallery-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-fuchsia {
  background: rgba(219, 39, 119, 0.15);
  color: #f472b6;
  border: 1px solid rgba(219, 39, 119, 0.3);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.card-specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
  line-height: 1.3;
}

.gallery-card.card-featured .gallery-card-title {
  font-size: 24px;
}

.gallery-card-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.g-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Banner CTA inferior de la galería */
.gallery-cta-banner {
  margin-top: 30px;
  background: linear-gradient(135deg, #13161f 0%, #1e1b4b 50%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(56, 189, 248, 0.15);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-banner-icon {
  font-size: 38px;
  flex-shrink: 0;
}

.cta-banner-text h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.cta-banner-text p {
  font-size: 14px;
  color: #94a3b8;
  max-width: 650px;
}

.cta-banner-action {
  flex-shrink: 0;
}

/* ========================================================
   MODAL LIGHTBOX FULLSCREEN
   ======================================================== */
.cuak-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cuak-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(14px);
}

.lightbox-container {
  position: relative;
  z-index: 1;
  width: 94vw;
  max-width: 1480px;
  height: 92vh;
  background: #11131c;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lightboxPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
  0% { transform: scale(0.96) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Header del Lightbox */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #0d0f17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
  flex-shrink: 0;
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  white-space: nowrap;
}

.lightbox-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.lb-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.lb-zoom-level {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94a3b8;
  min-width: 44px;
  text-align: center;
}

.lb-btn-close {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  margin-left: 6px;
}

.lb-btn-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Área central de imagen */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #08090e;
  cursor: grab;
}

.lightbox-stage.is-dragging {
  cursor: grabbing;
}

.lightbox-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Flechas de navegación */
.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.lb-nav-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.5);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* Pie del Lightbox */
.lightbox-footer {
  padding: 12px 22px;
  background: #0d0f17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.lightbox-caption p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Tira de Miniaturas */
.lightbox-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
}

.lb-thumb-item {
  width: 68px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: #000000;
}

.lb-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(56, 189, 248, 0.5);
}

.lb-thumb-item.active {
  opacity: 1;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transform: scale(1.08);
}

/* ========================================================
   RESPONSIVE: GALERÍA Y LIGHTBOX
   ======================================================== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-card,
  .gallery-card:not(.card-featured),
  .gallery-card.card-featured {
    grid-column: span 1 !important;
  }
  .gallery-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .cta-banner-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 60px 0;
  }
  .gallery-filters {
    gap: 8px;
  }
  .filter-tab {
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .gallery-card-content {
    padding: 18px;
  }
  .gallery-card-title {
    font-size: 17px !important;
  }
  .lightbox-container {
    width: 98vw;
    height: 96vh;
    border-radius: 12px;
  }
  .lightbox-header {
    padding: 10px 14px;
  }
  .lightbox-title {
    display: none;
  }
  .lb-nav-btn {
    width: 38px;
    height: 38px;
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lightbox-thumbs {
    display: none;
  }
}

