@font-face {
  font-family: 'Acumin Variable Concept';
  src: url('../fonts/Acumin Variable Concept.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #282826;
  --bg-deep: #1e1e1c;
  --text: #dad3c1;
  --text-dim: #8a857a;
  --accent: #61727a;
  --accent-bright: #ffce00;
  --border: rgba(218, 211, 193, 0.12);
  --nav-bg: rgba(40, 40, 38, 0.6);
  --logo-filter: none;
}

html.light {
  --bg: #f0ebe0;
  --bg-deep: #e4ddd0;
  --text: #282826;
  --text-dim: #6b6560;
  --accent: #ffce00;
  --accent-bright: #ffce00;
  --border: rgba(40, 40, 38, 0.12);
  --nav-bg: rgba(240, 235, 224, 0.85);
  --logo-filter: none;
}

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

html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Acumin Variable Concept', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  backdrop-filter: blur(14px);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover { opacity: 0.75; }

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
  filter: var(--logo-filter);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #0c0c0a;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffce00;
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-social {
  display: flex;
  gap: 1.85rem;
  align-items: center;
  justify-content: flex-end;
}

.nav-social a {
  color: #0c0c0a;
  text-decoration: none;
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.nav-social a:hover { opacity: 1; color: #ffce00; }

.nav-social a i {
  font-size: 1.8rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #0c0c0a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
}

.hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0c0c0a;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open .hamburger-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mobile-menu ul li a {
  color: #0c0c0a;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.mobile-menu ul li a:hover { color: #ffce00; }

.cta-button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover { background: var(--text); color: var(--bg); }
.cta-button::after { content: '→'; transition: transform 0.3s; }
.cta-button:hover::after { transform: translateX(4px); }

/* ===== HERO ===== */
.hero {
  height: 220vh;
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 8rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  z-index: 0;
  will-change: inset;
}

.hero-bg { position: absolute; inset: 0; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-bright);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent-bright);
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-line.visible { opacity: 1; transform: translateY(0); }

.hero-line-small {
  font-size: clamp(1.2rem, 2.4vw, 2.4rem);
  color: var(--accent-bright);
  font-style: normal;
}

.hero-line-large { font-size: clamp(2.5rem, 5.5vw, 6rem); }

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: 900px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-meta.visible { opacity: 1; transform: translateY(0); }

.meta-item-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.meta-item-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  position: relative;
  top: -30px;
}

/* El botón vive DENTRO del recuadro del video (.hero-frame),
   por eso al achicarse el frame en el scroll, el botón lo acompaña. */
.scroll-indicator {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scroll-indicator.visible { opacity: 1; }

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffce00;
  color: #282826;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.hero-cta-btn:hover { opacity: 0.85; }

.hero-cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-cta-btn:hover .hero-cta-arrow { transform: translateX(4px); }

/* ===== SECTIONS ===== */
section {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-bright);
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
  max-width: 20ch;
}

.section-title em { color: var(--accent-bright); font-style: italic; }

/* ===== DESAFÍO ===== */
.challenge {
  padding: 4rem 3rem 4.5rem;
  background: #ffffff;
  max-width: none;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.challenge-shape {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 90%;
  width: auto;
  pointer-events: none;
  user-select: none;
}

.challenge-shape-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 90%;
  width: auto;
  pointer-events: none;
  user-select: none;
  filter: brightness(0);
}

.challenge-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: none;
  margin: 0;
}

.challenge-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.challenge-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.challenge-inner .section-label { justify-content: center; color: #282826; }
.challenge-inner .section-label::before { background: #282826; }

.challenge-inner .section-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 3rem;
  max-width: 100%;
}

.challenge-right p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.challenge-statement {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== PROCESO (cards antiguas, mantenidas por compatibilidad) ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.process-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.4s ease;
  cursor: default;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.process-card:hover { background: var(--bg-deep); }

.process-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.process-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent-bright);
  transition: transform 0.4s ease, color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-card:hover .process-icon { transform: rotate(12deg) scale(1.1); }
.service-item:hover .process-icon { color: #0c0c0a; }

.process-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.process-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; margin-top: auto; }

/* ===== TRABAJOS ===== */
.works {
  background: #ffffff;
  padding: 6rem 0 8rem;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  position: relative;
}

.works-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 320px 260px;
  gap: 0.6rem;
  padding: 0 3rem;
  margin-top: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.works-grid .work-item:nth-child(1) { grid-column: 1 / 4; }
.works-grid .work-item:nth-child(2) { grid-column: 4 / 5; }
.works-grid .work-item:nth-child(3) { grid-column: 5 / 6; }
.works-grid .work-item:nth-child(4) { grid-column: 6 / 7; }
.works-grid .work-item:nth-child(5) { grid-column: 1 / 2; }
.works-grid .work-item:nth-child(6) { grid-column: 2 / 3; }
.works-grid .work-item:nth-child(7) { grid-column: 3 / 4; }
.works-grid .work-item:nth-child(8) { grid-column: 4 / 5; }
.works-grid .work-item:nth-child(9) { grid-column: 5 / 7; }

.works-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 95;
}

.works-backdrop.active { opacity: 1; pointer-events: auto; }

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
  z-index: 2;
  background: #111;
}

.work-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.work-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  z-index: 1;
  transition: opacity 0.35s ease;
}

.work-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.85rem;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.work-item-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.2rem;
}

.work-item-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}

.work-item-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-item:hover .work-item-play { transform: translate(-50%, -50%) scale(1.12); }

@keyframes workZoomIn {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
  to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

.work-item.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(90vw, calc(90vh * 9 / 16));
  height: min(90vh, calc(90vw * 16 / 9));
  z-index: 99;
  transform: translate(-50%, -50%);
  animation: workZoomIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.work-item.zoomed .work-item-info { opacity: 0; }
.work-item.zoomed .work-item-play { opacity: 0; pointer-events: none; }

.work-item-play svg { width: 16px; height: 16px; fill: #fff; margin-left: 3px; }

/* ===== VIDEO CONTROLS ===== */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0.75rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.work-item.zoomed .video-controls { opacity: 1; pointer-events: auto; }

.vc-playpause {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.vc-playpause:hover { opacity: 1; }
.vc-playpause svg { width: 13px; height: 13px; fill: currentColor; display: block; }

.vc-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  touch-action: none;
  transition: height 0.15s ease;
}

.vc-bar:hover { height: 4px; }

.vc-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #ffce00;
  border-radius: 2px;
  pointer-events: none;
}

.vc-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffce00;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform 0.15s ease;
}

.vc-bar:hover .vc-thumb { transform: translate(-50%, -50%) scale(1); }

.vc-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  line-height: 1;
  min-width: 2.2ch;
}

/* ===== SERVICIOS ===== */
.services {
  padding: 10rem 3rem;
  background: #ffffff;
  max-width: none;
  margin: 0;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.services-header { position: sticky; top: 6rem; }

.services-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 40ch;
  margin-top: 2rem;
}

.services-header .section-title { margin-bottom: 2rem; }

.service-item {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  position: relative;
  transition: padding 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:last-child { border-bottom: 1px solid var(--border); }
.service-item:hover { padding-left: 0.75rem; }

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover::before { width: 100%; }

.service-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  transition: color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover .service-number { color: #0c0c0a; }

.service-content { transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-item:hover .service-content { transform: translateX(6px); }

.service-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  transition: color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover .service-content h3 { color: var(--accent-bright); }

.service-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 50ch;
  transition: color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover .service-content p { color: var(--text); }

/* ===== CONTACTO / CTA ===== */
.contact {
  background: #0c0c0a;
  padding: 10rem 3rem 6rem;
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.contact-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 6.4vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  max-width: 12ch;
  color: #ffffff;
}

.contact h2 em { font-style: italic; color: #ffce00; }

.contact .section-label { color: #ffce00; }
.contact .section-label::before { background: #ffce00; }

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #ffce00;
  color: #0c0c0a;
  text-decoration: none;
  border-radius: 0;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-bottom: 5rem;
}

.contact-cta:hover { background: #ffffff; color: #0c0c0a; }

.contact-cta span { transition: transform 0.3s; }
.contact-cta:hover span { transform: translateX(4px); }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.info-block h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.info-block h4 i {
  color: #565656;
  display: inline-block;
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.info-block h4:hover i { transform: scale(1.1); color: #ffce00; }

.info-block p, .info-block a {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.5;
  display: block;
  transition: color 0.3s;
}

.info-block a:hover { color: #ffce00; }

/* ===== MOBILE SOCIAL BAR ===== */
.mobile-social-bar { display: none; }

/* ===== FOOTER ===== */
footer {
  padding: 2rem 3rem;
  background: #0c0c0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* margen derecho para no pisarse con el botón flotante de WhatsApp */
.footer-social-icons { display: flex; gap: 1.25rem; align-items: center; margin-right: 4.5rem; }

.footer-social-icons a {
  color: #ffce00;
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-social-icons a:hover { opacity: 1; }
.footer-social-icons a i { font-size: 1.6rem; display: flex; align-items: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .logo { grid-column: 2; }
  .nav-right { grid-column: 3; }
  section, .services, .contact { padding-left: 1.5rem; padding-right: 1.5rem; }
  .works-container { padding: 0 1.5rem; }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    padding: 0 1rem;
    gap: 0.4rem;
  }
  .works-grid .work-item:nth-child(1),
  .works-grid .work-item:nth-child(2),
  .works-grid .work-item:nth-child(3),
  .works-grid .work-item:nth-child(4),
  .works-grid .work-item:nth-child(5),
  .works-grid .work-item:nth-child(6),
  .works-grid .work-item:nth-child(7),
  .works-grid .work-item:nth-child(8) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .works-grid .work-item:nth-child(9) { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
  .process-grid { grid-template-columns: 1fr; }
  .services-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-header { position: static; }
  .service-item { grid-template-columns: 40px 1fr; gap: 1rem; padding: 2rem 0; }
  .service-content h3 { font-size: 1.5rem; }
  footer { flex-direction: column; gap: 1.25rem; text-align: center; }
  .footer-social-icons { display: none; }
  .mobile-social-bar {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    background: #0c0c0a;
    padding: 1.5rem 3rem;
  }
  .mobile-social-bar a {
    color: #ffce00;
    text-decoration: none;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s;
  }
  .mobile-social-bar a:hover { opacity: 1; }
  .mobile-social-bar a i { font-size: 1.8rem; }
  .nav-social { display: none; }
  .hamburger { display: flex; }
  .challenge-shape, .challenge-shape-right { height: 35%; }
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== LIGHT MODE OVERRIDES ===== */
html.light body::before { opacity: 0.02; }
html.light .hero-line-large { color: #ffffff; }
html.light .hero-line-small { color: rgba(255, 255, 255, 0.85); }
html.light .hero .hero-label { color: rgb(255, 255, 255); }
html.light .hero .hero-label::before { background: rgb(255, 255, 255); }
html.light .hero .hero-meta { color: rgb(255, 255, 255); }

/* ===== RESULTADO BOX ===== */
.resultado-box {
  position: relative;
  padding: 8rem 3rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.resultado-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.resultado-box p {
  position: relative;
  z-index: 1;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  color: #ffffff;
}

.resultado-box p em { font-style: italic; color: var(--accent-bright); }

@media (max-width: 900px) {
  .resultado-box { padding: 3rem 1.5rem; }
  .resultado-box p { font-size: 1.6rem; }
}

/* ===== PHONE CARDS ===== */
.phone-cards-section {
  padding: calc(8rem - 35px) 0;
  background: #0c0c0a;
}

.phone-cards-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.phone-cards-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem calc(4rem - 35px);
}

.phone-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.phone-card {
  background: #0c0c0a;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  cursor: pointer;
  transition: background 0.3s ease, padding-left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-card:hover {
  background: #ffce00;
  padding-left: 1.5rem;
}

.phone-card:hover .phone-card-title,
.phone-card:hover .phone-card-body,
.phone-card:hover .phone-card-label { color: #0c0c0a; }

.phone-card:hover .phone-card-dash { background: #0c0c0a; }

.phone-card:hover .phone-card-tag { color: #0c0c0a; border-color: rgba(12, 12, 10, 0.35); }

.phone-card-content {
  flex: 1;
  padding: 2.75rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: transparent;
  gap: 0.75rem;
}

.phone-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.phone-card-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(calc(2rem - 20px), calc(3.2vw - 20px), calc(3.5rem - 20px));
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.phone-card-dash {
  width: 28px;
  height: 1px;
  background: #ffffff;
  opacity: 0.7;
}

.phone-card-body {
  font-family: 'Acumin Variable Concept', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 60ch;
}

.phone-card:hover .phone-card-body { color: #0c0c0a; }

.phone-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.phone-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.phone-cards-section .section-label { color: #ffce00; }
.phone-cards-section .section-label::before { background: #ffce00; }
.services .section-label { color: #0c0c0a; }
.services .section-label::before { background: #0c0c0a; }
.works .section-label { color: #0c0c0a; }
.works .section-label::before { background: #0c0c0a; }
.phone-cards-section .section-title { color: #ffffff; }
.phone-cards-section .section-title em { color: #ffce00; }

@media (max-width: 900px) {
  .phone-cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .phone-cards-wrap { padding: 0 1.5rem; }
  .phone-card-title { font-size: 0.95rem; }
  .phone-card-content { padding: 2rem 1.5rem; }
  .phone-cards-header { padding: 0 1.5rem calc(4rem - 35px); }
}

/* ===== MODAL DE CONTACTO ===== */
button.contact-cta { border: none; cursor: pointer; font-family: inherit; }

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-modal-overlay.open { opacity: 1; pointer-events: auto; }

.contact-modal {
  background: #141412;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 520px;
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-modal-overlay.open .contact-modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.25rem;
}

.modal-close:hover { color: #ffffff; }

.modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #ffffff;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: 'Acumin Variable Concept', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

.form-group input:focus,
.form-group textarea:focus { border-color: #ffce00; }

.form-submit {
  width: 100%;
  padding: 1rem;
  background: #ffce00;
  color: #0c0c0a;
  border: none;
  font-family: 'Acumin Variable Concept', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, color 0.3s ease;
  margin-top: 0.5rem;
}

.form-submit:hover { background: #ffffff; color: #0c0c0a; }

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #565656;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.whatsapp-fab:hover { transform: scale(1.1); color: #ffce00; }
.whatsapp-fab i { line-height: 1; display: flex; }

/* ===== WORK-ITEM: imagen de fondo (poster) ===== */
.work-item-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
