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

:root {
  --purple: #5856D6;
  --purple-light: #7B79E8;
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --text: #FAFAFA;
  --gray: #8a8a8a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  cursor: none;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease;
  mix-blend-mode: difference;
}
.cursor.grow { width: 60px; height: 60px; background: var(--purple-light); }

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--purple);
  z-index: 9998;
  width: 0%;
  transition: width .1s linear;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 30px rgba(0,0,0,0.25);
}
.nav-logo-img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--purple-light);
  transition: width .25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(88, 86, 214, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(88, 86, 214, 0.5);
}
.nav-right { display: flex; align-items: center; gap: 1rem; }
.mobile-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.open span:nth-child(2) { opacity: 0; }
.mobile-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(5,5,8,0.98);
  backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }
.mobile-nav-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.mobile-nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mobile-nav-link:hover { color: var(--purple-light); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-hamburger { display: flex; }
  .mobile-nav-overlay { display: flex; }
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  font-size: 45vw;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  z-index: 0;
  letter-spacing: -0.05em;
  user-select: none;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.92) 75%);
}
.hero-video-placeholder {
  position: absolute;
  inset: -10%;
  background: linear-gradient(120deg, #2a2870, #5856D6, #ff4dd2, #4dd2ff, #7B79E8, #1a1840);
  background-size: 400% 400%;
  animation: heroPan 16s ease infinite;
  opacity: 0.65;
}
@keyframes heroPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 900px) {
  .hero-video-placeholder { animation: none; opacity: 0.4; }
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 2rem;
}
.hero-content { text-align: left; }

.hero-stack {
  position: relative;
  height: 620px;
  display: block;
}
.hero-stack-card {
  position: absolute;
  width: 195px;
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 28px 55px rgba(0,0,0,0.45);
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease, z-index 0s;
}
.hero-stack-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stack-card { cursor: pointer; }

/* VIDEO MODAL */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5,5,8,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  cursor: auto;
}
.video-modal * { cursor: auto; }
.video-modal.open { opacity: 1; pointer-events: all; }
.video-modal-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: background .2s ease;
}
.video-modal-close:hover { background: rgba(255,255,255,0.2); }
.video-modal-frame {
  width: min(90vw, 460px);
  aspect-ratio: 9/16;
  max-height: 85vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.video-modal.open .video-modal-frame { transform: scale(1); }
#videoModalPlayer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stack-play {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}
.hero-stack-1 {
  top: 0; left: 2%;
  background: linear-gradient(150deg, var(--purple) 0%, #2a2870 100%);
  transform: rotate(-9deg);
  z-index: 1;
}
.hero-stack-2 {
  top: 30px; left: 30%;
  background: linear-gradient(150deg, #ff6ec7 0%, #7a2a5c 100%);
  transform: rotate(6deg);
  z-index: 2;
}
.hero-stack-3 {
  top: 80px; left: 58%;
  background: linear-gradient(150deg, #4d9fff 0%, #1e3a6e 100%);
  transform: rotate(-5deg);
  z-index: 3;
}
.hero-stack-4 {
  top: 300px; left: -2%;
  background: linear-gradient(150deg, #48d697 0%, #1e5c42 100%);
  transform: rotate(7deg);
  z-index: 4;
}
.hero-stack-5 {
  top: 270px; left: 28%;
  background: linear-gradient(150deg, #ffb24d 0%, #7a4a12 100%);
  transform: rotate(-6deg);
  z-index: 5;
}
.hero-stack-6 {
  top: 320px; left: 58%;
  background: linear-gradient(150deg, #a78bfa 0%, #4c1d95 100%);
  transform: rotate(4deg);
  z-index: 6;
}
.hero-stack-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.08);
  z-index: 10;
  box-shadow: 0 35px 60px rgba(0,0,0,0.55);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
}
.hero-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.hero-contact-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 0 1.5rem; text-align: center; }
  .hero-content { text-align: center; }
  .hero-contact { justify-content: center; }
  .hero-stack { height: 340px; margin-top: 1rem; }
  .hero-stack-card { width: 100px; }
  .hero-stack-1 { left: 2%; top: 0; }
  .hero-stack-2 { left: 32%; top: 20px; }
  .hero-stack-3 { left: 62%; top: 5px; }
  .hero-stack-4 { left: 15%; top: 180px; }
  .hero-stack-5 { left: 48%; top: 165px; }
  .hero-stack-6 { display: none; }
}

.hero-nglb {
  width: min(85vw, 560px);
  height: auto;
  display: block;
  animation: slideUp 1s cubic-bezier(.4,0,.2,1) both;
}
@media (max-width: 900px) {
  .hero-nglb { margin: 0 auto; }
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }


.hero-sub {
  margin-top: 1.5rem;
  color: var(--gray);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  animation: fadeIn 1s ease .6s both;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: var(--gray);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--purple-light);
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown { to { top: 100%; } }

/* MARQUEE */
.marquee-section {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  animation: marquee 55s linear infinite;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray);
  user-select: none;
  -webkit-user-select: none;
}
.marquee-track span:nth-child(2n) { color: var(--purple-light); }

.brand-logo {
  display: inline-flex;
  align-items: center;
  height: 34px;
}
.brand-logo img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.6);
  transition: filter .3s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.brand-logo img:hover {
  filter: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTION HEAD */
.section-head { padding: 8rem 3rem 3rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
}
.section-head h2, .studio-text h2, .contact-content h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity .8s ease, transform .8s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* WORK */
.work { padding-bottom: 4rem; }
.work-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.work-item.reverse { grid-template-columns: 1fr 1.4fr; }
.work-item.reverse .work-media { order: 2; }
.work-media {
  aspect-ratio: 16/10;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple) 0%, #2a2870 100%);
  transition: transform .5s ease;
}
.work-item:hover .work-media { transform: scale(1.02); }
.work-num { font-size: 0.85rem; color: var(--purple-light); font-weight: 700; letter-spacing: 0.1em; }
.work-meta h3 { font-size: 2.2rem; font-weight: 800; margin: 0.5rem 0; letter-spacing: -0.02em; }
.work-subtag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.8rem;
}
.work-meta p { color: var(--gray); font-size: 1.05rem; line-height: 1.6; }

@media (max-width: 900px) {
  .work-item, .work-item.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .work-item.reverse .work-media { order: 0; }
  .work-media { aspect-ratio: 16/10; }
  .work-meta h3 { font-size: 1.7rem; }
}

/* SERVICES */
.services { padding-bottom: 6rem; }

.ios-switch {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 0 auto 3.5rem;
  padding: 5px;
  border-radius: 100px;
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 24px rgba(0,0,0,0.2);
}
.ios-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(50% - 5px);
  border-radius: 100px;
  background: var(--purple);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s ease,
              box-shadow 0.4s ease;
  z-index: 0;
}
.ios-switch.ai-active .ios-thumb {
  transform: translateX(100%);
  background: linear-gradient(135deg, #ff4dd2 0%, var(--purple) 100%);
  box-shadow: 0 0 25px rgba(255, 77, 210, 0.5);
}
.ios-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border: none;
  background: transparent;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.ios-option.active { color: #fff; }
.ai-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff4dd2;
  box-shadow: 0 0 6px #ff4dd2;
  transition: background .3s ease, box-shadow .3s ease;
}
.ios-option.active .ai-dot { background: #fff; box-shadow: 0 0 6px #fff; }
@media (max-width: 480px) {
  .ios-switch { width: 100%; }
  .ios-option { flex: 1; padding: 0.75rem 1rem; font-size: 0.85rem; }
}

.service-list { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
.service-list[hidden] { display: none; }

.ai-row {
  border-color: rgba(255, 77, 210, 0.2) !important;
}
.ai-row:hover {
  background: linear-gradient(90deg, rgba(255,77,210,0.1), rgba(88,86,214,0.08)) !important;
}
.ai-row .service-name {
  background: linear-gradient(135deg, #ff8de0, var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai-row .service-arrow { color: #ff4dd2; }
.ai-list.ai-list { border-radius: 16px; }

.service-tag-soon {
  justify-self: end;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 40px;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.service-row:hover {
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(88,86,214,0.1));
  border-color: rgba(88,86,214,0.35);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 14px 34px rgba(88,86,214,0.18);
}
.service-index { color: var(--gray); font-weight: 700; }
.service-name { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.service-desc { color: var(--gray); font-size: 1rem; }
.service-arrow {
  font-size: 1.5rem;
  color: var(--purple-light);
  transform: rotate(-45deg);
  transition: transform .3s ease;
  justify-self: end;
}
.service-row:hover .service-arrow { transform: rotate(0deg); }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 40px 1fr; grid-template-areas: "i n" ". d" ". a"; }
  .service-desc { grid-column: 2; }
}

/* STUDIO */
.studio {
  position: relative;
  padding: 10rem 3rem;
  background: var(--bg-alt);
  overflow: hidden;
}
.studio-bg-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40vw;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.05em;
  z-index: 0;
  user-select: none;
  white-space: nowrap;
}

.studio-intro {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}
.studio-kicker {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.studio-intro-text h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 1rem 0 1.8rem;
}
.accent-highlight { color: var(--purple-light); }
.studio-intro-text p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 480px;
}
.studio-emphasis {
  margin-top: 1.5rem;
  font-size: 1.3rem !important;
  font-weight: 700;
  font-style: italic;
  color: var(--text) !important;
  border-left: 3px solid var(--purple);
  padding-left: 1.2rem;
}

/* stack de tarjetas superpuestas, estilo "mazo desparramado" */
.studio-stack {
  position: relative;
  height: 380px;
}
.stack-card {
  position: absolute;
  width: 210px;
  padding: 1.6rem 1.4rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease, z-index 0s;
  cursor: default;
}
.stack-num { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.stack-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.85); }
.stack-card-1 {
  top: 0; left: 5%;
  background: linear-gradient(150deg, var(--purple) 0%, #2a2870 100%);
  transform: rotate(-8deg);
  z-index: 1;
}
.stack-card-2 {
  top: 40px; left: 32%;
  background: linear-gradient(150deg, #ff6ec7 0%, #7a2a5c 100%);
  transform: rotate(5deg);
  z-index: 2;
}
.stack-card-3 {
  top: 10px; left: 58%;
  background: linear-gradient(150deg, #4d9fff 0%, #1e3a6e 100%);
  transform: rotate(-4deg);
  z-index: 3;
}
.stack-card-4 {
  top: 170px; left: 20%;
  background: linear-gradient(150deg, #48d697 0%, #1e5c42 100%);
  transform: rotate(7deg);
  z-index: 4;
}
.stack-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.06);
  z-index: 10;
  box-shadow: 0 30px 55px rgba(0,0,0,0.5);
}
@media (max-width: 900px) {
  .studio-intro { grid-template-columns: 1fr; gap: 3rem; }
  .studio-kicker { flex-direction: column; gap: 0.5rem; }
  .studio-stack {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stack-card { position: static; transform: none !important; width: auto; }
}

.studio-structure {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 6rem auto 0;
  padding-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.structure-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 40px;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: background .3s ease, padding-left .3s ease;
  cursor: default;
}
.studio-structure .structure-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.structure-row:hover {
  background: rgba(88,86,214,0.08);
  padding-left: 1.5rem;
}
.structure-num { color: var(--gray); font-weight: 700; }
.structure-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.structure-desc { color: var(--gray); font-size: 0.98rem; }
.structure-arrow {
  font-size: 1.3rem;
  color: var(--purple-light);
  transform: rotate(-45deg);
  transition: transform .3s ease;
  justify-self: end;
}
.structure-row:hover .structure-arrow { transform: rotate(0deg); }
@media (max-width: 900px) {
  .structure-row { grid-template-columns: 40px 1fr; grid-template-areas: "n t" ". d"; row-gap: 0.5rem; }
  .structure-num { grid-area: n; }
  .structure-name { grid-area: t; }
  .structure-desc { grid-area: d; grid-column: 2; }
  .structure-arrow { display: none; }
}

/* PROCESS — panel de terminal en vivo */
.process { padding-bottom: 8rem; }
.terminal {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0d0d12;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  background: #16161d;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot--red { background: #ff5f56; }
.terminal-dot--yellow { background: #ffbd2e; }
.terminal-dot--green { background: #27c93f; }
.terminal-title {
  margin: 0 auto;
  transform: translateX(-18px);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--gray);
}
.terminal-body {
  padding: 2rem 1.8rem 2.2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 2;
}
.terminal-line {
  color: #d8d8e2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.terminal-line.t-visible { opacity: 1; transform: translateY(0); }
.t-prompt { color: var(--purple-light); font-weight: 700; }
.t-cmd { color: #fff; }
.t-comment { color: #6b6b80; margin-top: 0.6rem; display: block; }
.t-ok { color: #48d697; }
.t-accent { color: #ff6ec7; font-weight: 700; }
.t-sub {
  display: block;
  color: var(--gray);
  font-size: 0.82rem;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}
.t-cursor {
  color: var(--purple-light);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) {
  .terminal { margin: 0 1.2rem; }
  .terminal-body { padding: 1.5rem 1.2rem; font-size: 0.8rem; }
}

/* CONTACT */
.contact {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #150f33 100%);
}
.contact-cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--purple-light);
  text-decoration: none;
  border-bottom: 2px solid var(--purple-light);
  padding-bottom: 0.3rem;
  transition: opacity .2s ease;
}
.contact-cta:hover { opacity: 0.7; }
.contact-sub { margin-top: 1.5rem; color: var(--gray); }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 3rem;
  color: var(--gray);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
