

:root {
  --bg: hsl(0 0% 2%);
}

.arup{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  list-style-type: none;
  text-align: justify;
}

ul {
  
  grid-template-columns: repeat(2, 1fr);
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 1rem;
  list-style-type: none;
  text-align: justify;
}

ul::after {
  border-radius: 1rem;
  content: "";
  position: absolute;
  background: hsl(0 0% 10%);
  pointer-events: none;
  z-index: -2;
  inset:
    calc(var(--top) * 1px)
    calc(100% - (var(--right) * 1px))
    calc(100% - (var(--bottom) * 1px))
    calc(var(--left) * 1px);
  transition: inset 0.2s;
}

ul[data-enhanced]:hover {
  --active: 1;
}
ul[data-enhanced]::after {
  opacity: var(--active, 0);
  transition: opacity 0.2s, inset 0.2s 0.2s;
}
ul[data-enhanced]:hover::after {
  transition: opacity 0.2s 0.2s, inset 0.2s;
}

@supports(anchor-name: --anchor) {
  li:nth-of-type(1) article { anchor-name: --develop; }
  li:nth-of-type(2) article { anchor-name: --preview; }
  li:nth-of-type(3) article { anchor-name: --ship; }
  li:nth-of-type(4) article { anchor-name: --profit; }

  :root { --anchor: --develop; }
  :root:has(li:nth-of-type(1):hover) { --anchor: --develop; }
  :root:has(li:nth-of-type(2):hover) { --anchor: --preview; }
  :root:has(li:nth-of-type(3):hover) { --anchor: --ship; }
  :root:has(li:nth-of-type(4):hover) { --anchor: --profit; }  

  ul::after {
    inset:
      anchor(var(--anchor) top)
      anchor(var(--anchor) right)
      anchor(var(--anchor) bottom)
      anchor(var(--anchor) left);
  }

  ul:has(li:hover) {
    --active: 1;
  }
  ul::after {
    opacity: var(--active, 0);
    transition: opacity 0.2s, inset 0.2s 0.2s;
  }
  ul:hover::after {
    transition: opacity 0.2s 0.2s, inset 0.2s;
  }
  
  article::after {
    content: unset;
    display: none;
  }
}

ul:not([data-enhanced]) article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: hsl(0 0% 10%);
  border-radius: 1rem;
  opacity: var(--li-active, 0);
  transition: opacity 0.2s;
}

article {
  color: hsl(0 0% 80%);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  position: relative;
}

article::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--bg) 0 2px, transparent 2px 38px) -20px -20px / 40px 40px,
    linear-gradient(90deg, var(--bg) 0 2px, transparent 2px 38px) -20px -20px / 40px 40px;
  mask: linear-gradient(-35deg, var(--bg) 0%, transparent 45%);
  z-index: -1;
  opacity: var(--li-active, 0);
  transition: opacity 0.2s;
}

li:hover {
  --li-active: 1;
}

article h3 {
  margin: 0;
  font-weight: 120;
}

article p {
  margin: 0;
  text-wrap: pretty;
  
  background-clip: text;
  font-weight: 80;
}

article svg {
  width: 44px;
}

article svg path {
  stroke-width: 0.75;
  stroke: hsl(var(--hue, 30) calc(var(--li-active, 0) * 60%) 60%);
  transition: stroke 0.2s;
}

li:nth-of-type(1) { --hue: 30; }
li:nth-of-type(2) { --hue: 280; }
li:nth-of-type(3) { --hue: 210; }
li:nth-of-type(4) { --hue: 120; }








body{background-color:#1A1919;}

.placeholder{
  display:inline-block;
  position:relative;
  width:1250px;
  height:1250px;
  overflow:hidden;
  box-sizing:border-box;
  margin-top:100px;
}

.gridContainer{
  width:100%;
  height:100%;
}

.gridTile
{
  position:absolute;
  top:0px;
  left:0px;
  width:100%;
  height:100%;
  background-size:cover;
  background-repeat:no-repeat;
  background-origin:center;
}

/* Header transparente -> translúcido al scrollear */
.contenedor-header{
  background: transparent !important;
  backdrop-filter: none;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
body.scrolled .contenedor-header{
  background: rgba(var(--header-rgba), .65) !important;
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* UL del menú con “glass pill” sutil */
.contenedor-header header ul{
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
html[data-theme="light"] .contenedor-header header ul{
  background: rgba(0,0,0,.05);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

/* Links del menú */
.contenedor-header header nav ul li a{
  color: var(--text) !important;
  padding: 8px 12px;
  border-radius: 10px;
  position: relative;
  transition: color .2s ease, background .2s ease;
  text-decoration: none;
}

/* Subrayado neon usando .ink (ya creada en tu JS) */
.contenedor-header header nav{
  position: relative;
  --underline-left: 0px;
  --underline-width: 0px;
}
.contenedor-header header nav .ink{
  position: absolute;
  bottom: 2px; height: 2px;
  left: var(--underline-left); width: var(--underline-width);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(255,94,196,.5);
  transition: left .25s ease, width .25s ease, background .25s ease;
}

/* Estado activo con pill suave + subrayado */
.contenedor-header header nav ul li a.active{
  background: rgba(255,94,196,.12);
  box-shadow: 0 0 0 1px rgba(255,94,196,.25) inset;
}

/* Switch de tema look */
.theme-switch-wrap{ margin-left: 10px; }
.theme-switch input{ display:none; }
.theme-switch .track{
  position: relative;
  width: 56px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 0 8px; gap: 6px;
  background: rgba(var(--header-rgba), .35);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.theme-switch .track .fa-moon, .theme-switch .track .fa-sun{ font-size: 13px; opacity: .9; color: var(--text); }
.theme-switch .thumb{
  position: absolute; top: 4px; left: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(255,94,196,.45);
  transition: transform .18s ease;
}
.theme-switch input:checked + .track .thumb{ transform: translateX(26px); }
