/* Fuente pixel monogram */
@font-face {
  font-family: 'monogram';
  src: url('font/monogram-extended.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#0b0d10;
  --panel:#0f1316;
  --muted:#9aa7b0;
  --accent:#00d2ff;
  --glass: rgba(255, 255, 255, 0);
  --radius:12px;
  --maxw:1200px;
  font-family: 'monogram', sans-serif;
}

*{box-sizing:border-box}
html,body,#app{height:100%}

body{
  margin:0;
  background:var(--bg);
  color:#e6eef2;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:center;
  justify-content:center;
}



html, body {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  touch-action: none; /* evita scroll táctil */
}




/* Contenedor general */
.app{
  width:100%;
  height:100vh;
  display:flex;
  flex-direction:column;
}

/* Topbar */
.topbar{
  height:72px;
  display:flex;
  align-items:center;
  padding:0 24px;
  border-bottom:1px solid rgba(255,255,255,0.03);
  z-index:5;
}
.logo{display:flex;align-items:center;gap:14px}
.logo-img{
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,210,255,0.04), inset 0 -6px 20px rgba(0,0,0,0.5);
  background: none; /* elimina el fondo*/
}
.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text{display:flex;flex-direction:column;line-height:1}
.logo-text .glitch{font-size:42px;font-weight:800;letter-spacing:1px}

/* Main layout */
.main{
  display:flex;
  flex:1;
  max-width:var(--maxw);
  margin:20px auto;
  width:calc(100% - 40px);
  gap:20px;
}

/* Sidebar */
.sidebar{
  width:220px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:var(--radius);
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.sidebar ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.nav-btn{
  background:transparent;border:0;color:var(--muted);text-align:left;padding:12px;border-radius:8px;font-weight:600;
  cursor:pointer;transition:all .18s;font-family: 'monogram', sans-serif;font-size:28px;
}
.nav-btn:hover{color:#fff;background:rgba(255,255,255,0.02);transform:translateX(6px)}
.nav-btn.active{color:var(--accent);box-shadow: inset 3px 0 0 var(--accent);background:rgba(0,210,255,0.03)}

/* Socials */
.socials{display:flex;gap:8px;justify-content:flex-start}
.socials a{font-size:18px;color:var(--muted);text-decoration:none;padding:6px 8px;border-radius:6px}
.socials a:hover{color:#fff}

/* Content */
.content{
  flex:1;
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  min-height:520px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  display:flex;
}

/* animated veins background */
.veins{
  position:absolute;inset:0;z-index:0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(0,210,255,0.04) 0%, transparent 20%),
    linear-gradient(90deg, rgba(0,210,255,0.02) 0%, transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.01), transparent 60%);
  filter:blur(20px);
}
.veins::after{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(45deg, rgba(0,210,255,0.06) 0 2px, transparent 2px 4px);
  mix-blend-mode:screen;
  background-size: 140px 140px;
  transform: translateY(-10px);
  animation: veins-move 8s linear infinite;
}
@keyframes veins-move{
  0%{transform:translateY(-8px)}
  50%{transform:translateY(8px)}
  100%{transform:translateY(-8px)}
}

/* Panel wrapper */
.panel-wrapper{position:relative;
  z-index:2;
  flex:1;
  padding:28px;
  overflow:hidden}
.panel{position:absolute;
  inset:28px;opacity:
  0;transform:translateX(20px);
  transition:all .35s;pointer-events:
  none;overflow:auto;
  padding:24px;
  border-radius:10px;
  /* background:linear-gradient(180deg, rgba(10,12,14,0.6), rgba(10,12,14,0.2));
  backdrop-filter: blur(6px) */
}
.panel.active{opacity:1;transform:none;pointer-events:auto}

/* Featured (inicio) */
.featured{display:flex;gap:20px;align-items:center}
.hero{width:420px;height:240px;object-fit:cover;border-radius:10px;box-shadow: 0 10px 30px rgba(0,0,0,0.6)}
.meta h2{margin:0 0 8px 0}
.meta p{color:var(--muted);margin:0 0 16px 0;max-width:540px}

/* --- Carrusel horizontal --- */
.cards-carousel{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:60px;
  scroll-snap-type:x mandatory;
  scrollbar-color: var(--accent) rgba(255,255,255,0.06);
}

.cards-carousel::-webkit-scrollbar {
  height:10px;
}

.cards-carousel::-webkit-scrollbar-track {
  background:rgba(0,0,0,0.4);
  border-radius:10px;
}

.cards-carousel::-webkit-scrollbar-thumb {
  background:linear-gradient(90deg,#0094ff,#00d2ff);
  border-radius:10px;
  box-shadow:0 0 12px #00d2ffaa;
}

/* Cards uniformes para carrusel */
.cards-carousel .card{
  min-width:252px;
  max-width:252px;
  flex:0 0 auto;
  scroll-snap-align:start;
}

.cards-carousel .card img{
  height:200px;
  object-fit:cover;
}

/* Cards */
.cards{display:grid;
  grid-template-columns:
  repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
  margin-top:12px}
.card{
  background:var(--glass);
  padding:0px;border-radius:10px;border:1px solid rgba(255,255,255,0.03);
  display:flex;flex-direction:column;gap:10px;min-height:140px;
  cursor:pointer;transition:transform .18s, box-shadow .18s;
}
.card:hover{transform:translateY(-6px);box-shadow:0 20px 50px rgba(0,0,0,0.6)}

.card img{width:100%;height:100px;
  object-fit:contain;border-radius:8px}

.card .title{font-weight:700}
.card .tags{font-size:20px;color:var(--muted)}

/* Files list */
.files{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:8px}
.files li{background:rgba(255,255,255,0.02);padding:10px;border-radius:8px;display:flex;justify-content:space-between;align-items:center}

/* Contact */
.contact-form{display:flex;flex-direction:column;gap:10px;max-width:520px}
.contact-form label{display:flex;flex-direction:column;font-size:30px;color:var(--muted)}
.contact-form input, .contact-form textarea{padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:inherit}

/* Buttons */
.btn{padding:10px 14px;border-radius:8px;border:1px solid rgba(255,255,255,0.03);background:transparent;color:inherit;cursor:pointer;font-family: "monogram", sans-serif;font-size: px;}
.btn.primary{background:linear-gradient(90deg,var(--accent), #0084ff);border:0;color:#02121a;font-weight:700}
.btn.ghost{background:transparent;border:1px dashed rgba(255,255,255,0.04)}

/* small helpers */
h2{margin:0 0 12px 0}
@media (max-width:900px){
  .main{flex-direction:column;padding:10px}
  .sidebar{width:100%;display:flex;flex-direction:row;gap:10px;overflow:auto}
  .panel{position:relative;inset:auto;min-height:320px}
  .hero{width:100%;height:180px}
}


/* Forzar modo horizontal en móviles */
@media screen and (orientation: portrait) {
  body {
    transform: rotate(90deg);
    transform-origin: left top;
    width: 100vh;
    height: 100vw;
    overflow: hidden;
  }

  #app {
    width: 100vh;
    height: 100vw;
  }
}
