/* ═══════════════════════════════════════════════════════════════
   OMNICARDS — Lumina Theme Specifics
   Red Prism: creative, bold, vibrant.
   Paleta: rojo (#FF3B30), sky blue (#4FC3F7), ámbar (#FFA502), lima (#2ED573).
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   [1] CUSTOM SCROLLBAR (Red → Sky)
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

[data-theme="lumina"] ::-webkit-scrollbar-track {
  background: #FAFAFA;
}

[data-theme="lumina"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF3B30, #4FC3F7);
  border-radius: 3px;
}

[data-theme="lumina"] ::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

[data-theme="lumina"] * {
  scrollbar-width: thin;
  scrollbar-color: #FF3B30 #FAFAFA;
}

/* ═══════════════════════════════════════════════════════════════
   [2] TEXT SELECTION
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] ::selection {
  background: #FF3B30;
  color: #ffffff;
}

[data-theme="lumina"] ::-moz-selection {
  background: #FF3B30;
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   [3] HERO — Red Prism Light
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .hero::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(255, 59, 48, 0.06) 0%,
    rgba(79, 195, 247, 0.04) 30%,
    rgba(255, 165, 2, 0.02) 60%,
    transparent 80%
  );
  pointer-events: none;
  z-index: -1;
}

/* ═══════════════════════════════════════════════════════════════
   [4] LINK HOVER
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] a {
  text-decoration: none;
  transition: color 0.2s ease;
}

[data-theme="lumina"] a:hover {
  color: #000000;
}

/* ═══════════════════════════════════════════════════════════════
   [5] CARD HEADING UNDERLINE — per-card color on hover
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .card-heading {
  position: relative;
  display: inline-block;
}

[data-theme="lumina"] .card-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: #FF3B30;
  transition: width 0.3s ease;
}

[data-theme="lumina"] #card-philosophy .card-heading::after { background: #FF3B30; }

[data-theme="lumina"] .card-heading:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   [6] MODAL VIDEO
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .modal-video {
  filter: brightness(1.3) hue-rotate(-20deg) saturate(1.2);
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════════
   [7] NEO-BRUTALIST CARDS — Red Prism
   Borde carbón, sombra offset, grid pattern, corner accents.
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .bento-card {
  position: relative;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 20px 20px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 3px solid #000000;
  border-radius: 0;
  box-shadow: 8px 8px 0 #000000;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

[data-theme="lumina"] .bento-card:hover {
  transform: translate(-5px, -5px) scale(1.02);
  border-color: #000000;
  box-shadow: 12px 12px 0 #000000;
}

/* Per-card hover: shadow + texto del color de la card (borde siempre negro) */
[data-theme="lumina"] #card-philosophy:hover { border-color: #000000; box-shadow: 12px 12px 0 #FF3B30; }
[data-theme="lumina"] #card-philosophy:hover .card-heading,
[data-theme="lumina"] #card-philosophy:hover .card-body { color: #FF3B30; }

[data-theme="lumina"] .bento-card--narrow:hover { border-color: #000000; box-shadow: 12px 12px 0 #4FC3F7; }
[data-theme="lumina"] .bento-card--narrow .card-list li::before { background: #4FC3F7; }
[data-theme="lumina"] .bento-card--narrow:hover .card-list li { color: #4FC3F7; }

[data-theme="lumina"] #card-portfolio:hover { border-color: #000000; box-shadow: 12px 12px 0 #FFA502; }
[data-theme="lumina"] #card-portfolio .card-list li::before { background: #FFA502; }
[data-theme="lumina"] #card-portfolio:hover .card-list li { color: #FFA502; }

[data-theme="lumina"] .bento-card--half:has(.contact-row):hover { border-color: #000000; box-shadow: 12px 12px 0 #2ED573; }
[data-theme="lumina"] .bento-card--half:has(.contact-row) .contact-row svg { stroke: #2ED573; }
[data-theme="lumina"] .bento-card--half:has(.contact-row):hover .contact-row { color: #2ED573; }
[data-theme="lumina"] .bento-card--half:has(.contact-row):hover .contact-row svg { stroke: #2ED573; }

[data-theme="lumina"] .bento-card--full:hover { border-color: #000000; box-shadow: 12px 12px 0 #8B5CF6; }
[data-theme="lumina"] .bento-card--full:hover .social-link { border-color: #8B5CF6; color: #8B5CF6; box-shadow: 2px 2px 0 #8B5CF6; }

/* Corner accent ribbon (top-right) — base rojo, se sobrescribe por card */
[data-theme="lumina"] .bento-card::before {
  content: '✦';
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -18px;
  right: -18px;
  width: 60px;
  height: 60px;
  background: #FF3B30;
  transform: rotate(45deg);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  z-index: 2;
  pointer-events: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

/* Per-card ribbon colors */
[data-theme="lumina"] #card-philosophy::before { background: #FF3B30; }
[data-theme="lumina"] .bento-card--narrow::before { background: #4FC3F7; }
[data-theme="lumina"] #card-portfolio::before { background: #FFA502; }
[data-theme="lumina"] .bento-card--half:has(.contact-row)::before { background: #2ED573; }
[data-theme="lumina"] .bento-card--full::before { background: #000000; }

[data-theme="lumina"] .bento-card:hover::before {
  filter: brightness(0.92);
}

/* Corner slice (bottom-left) */
[data-theme="lumina"] .bento-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-right: 3px solid #000000;
  border-top: 3px solid #000000;
  z-index: 2;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   [8] SOCIAL LINKS — Neo-brutalist
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .social-link {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid #000000;
  border-radius: 0;
  color: #000000;
  box-shadow: 4px 4px 0 #000000;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 18px;
  transition: all 0.2s ease;
}

[data-theme="lumina"] .social-link:hover {
  transform: translate(-2px, -2px);
  border-color: #8B5CF6;
  color: #8B5CF6;
  box-shadow: 2px 2px 0 #8B5CF6;
}

[data-theme="lumina"] .social-link svg {
  fill: currentColor;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════
   [9] CONTACT ROWS
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .contact-row {
  color: rgba(44, 44, 44, 0.7);
}

[data-theme="lumina"] .contact-row svg {
  fill: none;
  stroke: #FF3B30;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   [10] MODAL TITLES
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .modal-title {
  color: #FF3B30;
  font-weight: 700;
}

[data-theme="lumina"] .modal-header {
  border-bottom: 1px solid rgba(44, 44, 44, 0.12);
}

[data-theme="lumina"] .modal-name {
  color: #000000;
  font-weight: 700;
}

[data-theme="lumina"] .modal-header .modal-title {
  color: rgba(44, 44, 44, 0.5);
  font-size: 0.8rem;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   [11] CARD TITLE — Per-card colored headers
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .card-title {
  position: relative;
  font-family: var(--font-hanken);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: #FF3B30;
  padding: 14px 32px;
  margin: -32px -32px 20px -32px;
  border-bottom: 3px solid #000000;
  overflow: hidden;
  z-index: 1;
}

/* Per-card title background colors */
[data-theme="lumina"] #card-philosophy .card-title { background: #FF3B30; }
[data-theme="lumina"] .bento-card--narrow .card-title { background: #4FC3F7; }
[data-theme="lumina"] #card-portfolio .card-title { background: #FFA502; }
[data-theme="lumina"] .bento-card--half:has(.contact-row) .card-title { background: #2ED573; }
[data-theme="lumina"] .bento-card--full .card-title { background: #000000; }

/* Striped pattern overlay */
[data-theme="lumina"] .card-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.08) 6px,
    transparent 6px,
    transparent 12px
  );
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  [data-theme="lumina"] .card-title {
    padding: 10px 16px;
    margin: -20px -16px 14px -16px;
    font-size: 11px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   [12] HERO BADGE
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .hero-badge {
  border: 2px solid #000000;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #000000;
  letter-spacing: 0.12em;
  font-weight: 700;
  box-shadow: 4px 4px 0 #000000;
}

/* ═══════════════════════════════════════════════════════════════
   [13] AVATAR GLOW
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .profile-container {
  animation: lumina-name-cycle 12s ease-in-out infinite;
}

[data-theme="lumina"] .profile-glow-ring {
  background: currentColor;
  box-shadow: 0 0 25px color-mix(in srgb, currentColor 30%, transparent), 0 0 50px color-mix(in srgb, currentColor 10%, transparent);
}

[data-theme="lumina"] .profile-glow-bg {
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.15;
}

/* ═══════════════════════════════════════════════════════════════
   [14] BG ORBS — Red + Sky Blue
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

[data-theme="lumina"] .bg-orbs::before,
[data-theme="lumina"] .bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  will-change: transform;
}

[data-theme="lumina"] .bg-orbs::before {
  width: 500px;
  height: 500px;
  top: -15%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.25), transparent 70%);
  animation: lumina-orb-drift 20s ease-in-out infinite alternate;
}

[data-theme="lumina"] .bg-orbs::after {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.18), transparent 70%);
  animation: lumina-orb-drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes lumina-orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════════════
   [15] BUTTONS — Neo-brutalist
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .btn-primary {
  background: #8B5CF6;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: 4px 4px 0 #000000;
  font-family: var(--font-hanken);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  transition: all 0.2s ease;
}

[data-theme="lumina"] .btn-primary:hover {
  background: color-mix(in srgb, #8B5CF6, #000 10%);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 #000000;
}

[data-theme="lumina"] #save-contact-btn {
  background: #8B5CF6;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: 4px 4px 0 #000000;
  font-family: var(--font-hanken);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  transition: all 0.2s ease;
}

[data-theme="lumina"] #save-contact-btn:hover {
  background: color-mix(in srgb, #8B5CF6, #000 10%);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 #000000;
}

/* ═══════════════════════════════════════════════════════════════
   [16] MODAL — Neo-brutalist (matching cards)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   [17] CLIENT NAME + ORB — Cycling colors
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] #client-name {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #FF3B30;
  animation: lumina-name-cycle 12s ease-in-out infinite;
}

[data-theme="lumina"] .orb-trigger svg {
  fill: currentColor;
  stroke: currentColor;
  animation: lumina-name-cycle 12s ease-in-out infinite;
}

/* Orb icon + glow + border follow the color cycle */
[data-theme="lumina"] .orb-trigger {
  animation: lumina-name-cycle 12s ease-in-out infinite;
}

[data-theme="lumina"] .orb-trigger svg {
  fill: currentColor;
  stroke: currentColor;
}

/* Orb glow + border use currentColor from parent animation */
[data-theme="lumina"] .orb-trigger::before {
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.25;
}

[data-theme="lumina"] .orb-trigger {
  border-color: currentColor;
  box-shadow: 0 0 25px currentColor, 0 0 50px color-mix(in srgb, currentColor 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes lumina-name-cycle {
  0%   { color: #FF3B30; }
  10%  { color: #FF3B30; }
  20%  { color: #4FC3F7; }
  30%  { color: #4FC3F7; }
  40%  { color: #FFA502; }
  50%  { color: #FFA502; }
  60%  { color: #2ED573; }
  70%  { color: #2ED573; }
  80%  { color: #8B5CF6; }
  90%  { color: #8B5CF6; }
  100% { color: #FF3B30; }
}

[data-theme="lumina"] .modal-content {
  position: relative;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 20px 20px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 3px solid #000000;
  border-radius: 0;
  box-shadow: 8px 8px 0 #000000;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

[data-theme="lumina"] .modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
  box-shadow: 8px 8px 0 #000000;
}

/* Corner ribbon on modal */
[data-theme="lumina"] .modal-content::before {
  content: '✦';
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #FF3B30;
  transform: rotate(45deg);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  border-left: 2px solid rgba(0, 0, 0, 0.12);
}

/* Corner slice on modal */
[data-theme="lumina"] .modal-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-right: 3px solid #000000;
  border-top: 3px solid #000000;
  z-index: 3;
  pointer-events: none;
}

/* Modal titles with hover underline in card color */
[data-theme="lumina"] .modal-title {
  position: relative;
  display: inline-block;
  color: #FF3B30;
  font-weight: 700;
}

[data-theme="lumina"] .modal-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: #FF3B30;
  transition: width 0.3s ease;
}

[data-theme="lumina"] .modal-title:hover::after {
  width: 100%;
}

/* Portfolio modal — amber accents */
[data-theme="lumina"] #portfolio-modal .modal-title { color: #FFA502; }
[data-theme="lumina"] #portfolio-modal .modal-title::after { background: #FFA502; }
[data-theme="lumina"] #portfolio-modal .modal-content::before { background: #FFA502; }
[data-theme="lumina"] #portfolio-modal .card-list li::before { background: #FFA502; }
[data-theme="lumina"] #portfolio-modal .modal-body:hover,
[data-theme="lumina"] #portfolio-modal .card-list li:hover { color: #FFA502; }

[data-theme="lumina"] #modal-philosophy-title,
[data-theme="lumina"] #modal-portfolio-title {
  color: #FF3B30;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Contact modal — colores específicos */
[data-theme="lumina"] #contact-modal .modal-content::before { background: #FF3B30; }
[data-theme="lumina"] #contact-modal .modal-content::-webkit-scrollbar { width: 6px; }
[data-theme="lumina"] #contact-modal .modal-content::-webkit-scrollbar-track { background: #FAFAFA; }
[data-theme="lumina"] #contact-modal .modal-content::-webkit-scrollbar-thumb { background: #FFA502 !important; }
[data-theme="lumina"] #contact-modal .modal-content { scrollbar-color: #FFA502 #FAFAFA; }
[data-theme="lumina"] #contact-modal .qr-label { color: #000000; }
[data-theme="lumina"] #contact-modal .contact-row svg { stroke: #4FC3F7; opacity: 0.8; }
[data-theme="lumina"] #contact-modal .modal-name { color: #2ED573; }

[data-theme="lumina"] .modal-header {
  border-bottom: 1px solid rgba(44, 44, 44, 0.12);
}

[data-theme="lumina"] .modal-name {
  color: #000000;
  font-weight: 700;
}

[data-theme="lumina"] .modal-header .modal-title {
  color: rgba(44, 44, 44, 0.5);
  font-size: 0.8rem;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   END OF LUMINA.CSS
   ══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   [18] SOUND TOGGLE — Pixel art (zl306 style)
   OFF: rojo (#FF3B30) · ON: lima vivo (#2ED573)
   ═══════════════════════════════════════════════════════════════ */

[data-theme="lumina"] .sound-toggle-track {
  width: 60px;
  height: 26px;
  image-rendering: pixelated;
  background-color: #FF3B30;
  background-image:
    linear-gradient(45deg, rgba(0,0,0,0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.12) 75%);
  background-size: 4px 4px;
  background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
  border: 2px solid #000000;
  transition: background-color 0.3s ease;
  overflow: visible;
}

/* Thumb — pixel block light color */
[data-theme="lumina"] .sound-toggle-thumb {
  width: 28px;
  height: 32px;
  top: auto;
  left: -2px;
  bottom: -2px;
  border-radius: 0;
  image-rendering: pixelated;
  background: #E8E8E8;
  background-image:
    linear-gradient(90deg, #ccc 1px, transparent 1px),
    linear-gradient(to bottom, #f5f5f5 2px, #ddd 2px, #ddd 6px, #f0f0f0 6px);
  background-size: 4px 32px, 28px 8px;
  border: 2px solid #000000;
  transition: transform 0.25s ease;
  transform: none;
  box-shadow: none;
}

[data-theme="lumina"] .sound-toggle.active .sound-toggle-track {
  background-color: #2ED573;
}

[data-theme="lumina"] .sound-toggle.active .sound-toggle-thumb {
  transform: translateX(32px);
}
