/* =============================================
   VARIABLES
============================================= */
:root {
  --bg:           #080808;
  --bg2:          #0f0f0f;
  --fg:           #f0ede8;
  --fg-dim:       rgba(240,237,232,0.45);
  --fg-dimmer:    rgba(240,237,232,0.06);
  --accent:       #c8ff00;
  --accent-dim:   rgba(200,255,0,0.15);
  --accent-glow:  rgba(200,255,0,0.03);
  --border:       rgba(240,237,232,0.08);
  --display:      'Barlow Condensed', sans-serif;
  --body:         'DM Sans', sans-serif;
  --max:          1400px;
  --pad:          clamp(24px, 5vw, 80px);
  --nav-h:        80px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   CURSOR CUSTOM (solo desktop)
============================================= */
@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}

#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
  display: none;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200,255,0,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  display: none;
}

@media (pointer: fine) {
  #cursor,
  #cursor-ring { display: block; }
}

/* =============================================
   NAV
============================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  background: rgba(8,8,8,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
}

#nav.scrolled {
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px var(--pad);
  border-color: var(--border);
}

.nav-logo {
  font-family: var(--display);
  font-size: 37px;
  letter-spacing: -0.005em;
  color: var(--fg);
  position: relative;
  z-index: 201;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

/* Bracketed — versión editorial */
.bracketed {
  display: inline-flex;
  align-items: baseline;
}

.bracketed::before,
.bracketed::after {
  font-family: var(--display);
  font-weight: 200;
  color: var(--accent);
  font-size: 0.95em;
  line-height: 1;
}

.bracketed::before { content: '['; margin-right: 0.18em; }
.bracketed::after  { content: ']'; margin-left: 0.18em; }

/* Logo mark — identidad v3 */
.logo-i {
  position: relative;
  display: inline-block;
  font-weight: 300;
}

.logo-i::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: 50%;
  width: 0.14em;
  height: 0.14em;
  top: 0.05em;
}

.logo-B {
  font-weight: 500;
  margin-left: 0.02em;
}

.logo-rest { font-weight: 300; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 201;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

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

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0 var(--pad);
}

.mobile-menu ul li {
  width: 100%;
  text-align: center;
}

.mobile-menu ul li a {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--fg);
  padding: 0.55rem 0;
  transition: color 0.25s;
}

.mobile-menu ul li a:hover { color: var(--accent); }

/* Botón Hablemos */
.mobile-menu-item-cta {
  margin-top: 2rem;
}

.mobile-menu .mobile-cta-btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 48px;
  transition: opacity 0.2s;
}

.mobile-menu .mobile-cta-btn:hover {
  opacity: 0.85;
  color: var(--bg);
}

/* =============================================
   HERO
============================================= */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) clamp(48px, 8vh, 120px);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.2) 0%,
    rgba(8,8,8,0) 40%,
    rgba(8,8,8,0.7) 80%,
    rgba(8,8,8,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Hero brand — logo bracketed + bajada */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.15s both;
}

.hero-brand-logo {
  font-family: var(--display);
  font-size: clamp(60px, 6.6vw, 90px);
  letter-spacing: -0.005em;
  color: var(--fg);
  line-height: 1;
}

.hero-brand-sub {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
}


.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.4s both;
}

.hero-title .hero-title-light {
  font-weight: 200;
  color: var(--fg-dim);
  display: block;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-dim);
  max-width: 460px;
  line-height: 1.7;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s both;
  flex-wrap: wrap;
}

/* Stats — desktop: columna derecha; mobile: fila debajo del título */
.hero-stats {
  position: absolute;
  right: var(--pad);
  bottom: clamp(48px, 8vh, 120px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: right;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s both;
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  color: var(--fg);
}

.stat-num span { color: var(--accent); }

.stat-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 4px;
}


/* =============================================
   BOTONES GLOBALES
============================================= */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.25s;
}

.btn-ghost::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s;
}

.btn-ghost:hover { color: var(--fg); }
.btn-ghost:hover::after { width: 50px; }

/* =============================================
   KEYFRAMES
============================================= */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

@keyframes serviceLineGlow {
  0%   { left: -35%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}


/* =============================================
   REVEAL (scroll)
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* =============================================
   SECTION BASE
============================================= */
section { padding: clamp(64px, 12vh, 160px) var(--pad); }

.section-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 100px);
  line-height: 0.95;
  letter-spacing: 0.05em;
}

.section-title-light {
  font-weight: 200;
  color: var(--fg-dim);
}

/* =============================================
   SERVICES
============================================= */
#services {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 72px;
  align-items: end;
}

.services-intro {
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--fg-dim);
  line-height: 1.75;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3px;
  border-top: 1px solid rgba(240,237,232,0.1);
}

.service-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 32px 40px 32px 20px;
  border-bottom: 1px solid var(--fg-dimmer);
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

/* Destello verde que recorre la línea inferior */
.service-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -35%;
  width: 30%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(200,255,0,0.6) 30%,
    var(--accent) 50%,
    rgba(200,255,0,0.6) 70%,
    transparent
  );
  animation: serviceLineGlow 5s ease-in-out infinite;
  animation-delay: var(--glow-delay, 0s);
}

/* Línea izquierda de acento que se dibuja en hover */
.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), rgba(200,255,0,0.2));
  transition: height 0.5s ease;
}

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

/* Delays escalonados */
.service-item:nth-child(1) { --glow-delay: 0s; }
.service-item:nth-child(2) { --glow-delay: 0.9s; }
.service-item:nth-child(3) { --glow-delay: 1.8s; }
.service-item:nth-child(4) { --glow-delay: 2.7s; }
.service-item:nth-child(5) { --glow-delay: 3.6s; }
.service-item:nth-child(6) { --glow-delay: 4.5s; }

.service-item:hover {
  border-bottom-color: rgba(200,255,0,0.3);
  background: var(--accent-glow);
}

.service-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent);
  padding-top: 6px;
  letter-spacing: 0.1em;
  transition: text-shadow 0.3s;
}

.service-item:hover .service-num {
  text-shadow: 0 0 12px rgba(200,255,0,0.7);
}

.service-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.service-item:hover .service-name { color: var(--accent); }

.service-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.service-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(240,237,232,0.15);
  padding: 4px 10px;
  color: var(--fg-dim);
}

.service-arrow {
  font-size: 20px;
  color: var(--fg-dim);
  padding-top: 4px;
  transition: color 0.3s, transform 0.3s;
}

.service-item:hover .service-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* =============================================
   PROJECTS
============================================= */
#projects {
  background: var(--bg2);
  padding-bottom: 0;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 1rem;
}

.projects-see-all {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-bottom: 1px solid rgba(240,237,232,0.2);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
  align-self: flex-end;
}

.projects-see-all:hover { color: var(--accent); border-color: var(--accent); }

/* Grid de proyectos — solo desktop */
.projects-grid {
  display: grid;
  gap: 3px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s;
  filter: brightness(0.7);
  position: relative;
  overflow: hidden;
}

.project-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.02) 20px,
    rgba(255,255,255,0.02) 21px
  );
}

/* Colores por proyecto */
.project-card:nth-child(1) .project-placeholder { background: #1a1612; }
.project-card:nth-child(2) .project-placeholder { background: #101416; }
.project-card:nth-child(3) .project-placeholder { background: #121410; }
.project-card:nth-child(4) .project-placeholder { background: #141010; }
.project-card:nth-child(5) .project-placeholder { background: #0e1014; }
.project-card:nth-child(6) .project-placeholder { background: #101410; }

.project-placeholder-label {
  font-family: monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  text-align: center;
  z-index: 1;
  line-height: 1.5;
}

.project-card:hover .project-placeholder {
  transform: scale(1.06);
  filter: brightness(0.5) saturate(0.6);
}

.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, transparent 100%);
  transform: translateY(8px);
  transition: transform 0.4s;
}

.project-card:hover .project-info { transform: translateY(0); }

.project-cat {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-name {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.project-hover-reveal {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7) rotate(-45deg);
  transition: opacity 0.35s, transform 0.35s;
}

.project-card:hover .project-hover-reveal {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.project-hover-reveal svg { width: 18px; height: 18px; }

.project-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* =============================================
   TESTIMONIALS
============================================= */
#testimonials {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.testimonials-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.testimonial-card {
  padding: 40px 32px;
  background: var(--bg2);
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(200,255,0,0.15);
  background: var(--accent-glow);
}

.testimonial-quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 1.9vw, 26px);
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 28px;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3em;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a2a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 16px;
  color: var(--accent);
  border: 1px solid rgba(200,255,0,0.2);
}

.author-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.author-role {
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 2px;
  letter-spacing: 0.05em;
}

/* =============================================
   ABOUT
============================================= */
#about {
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 580px;
}

.about-img-main {
  width: 75%;
  height: 480px;
  background: #1c1c1c;
  position: absolute;
  top: 0;
  right: 0;
  overflow: hidden;
}

.about-img-accent {
  width: 55%;
  height: 260px;
  background: var(--accent-dim);
  border: 1px solid rgba(200,255,0,0.2);
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-accent-stat { text-align: center; }

.about-accent-num {
  font-family: var(--display);
  font-size: clamp(60px, 6vw, 80px);
  line-height: 1;
  color: var(--accent);
}

.about-accent-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 8px;
}

.about-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.95;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.about-title-light {
  font-weight: 200;
  color: var(--fg-dim);
  display: block;
}

.about-text {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--fg-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.about-skill {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(240,237,232,0.15);
  padding: 8px 16px;
  transition: border-color 0.25s, color 0.25s;
}

.about-skill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Tech grid — about visual alternativo (index2) */
.about-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 16px;
  background: var(--bg2);
  transition: background 0.3s;
}

.tech-item:hover { background: var(--accent-glow); }

.tech-icon {
  width: 32px;
  height: 32px;
  color: var(--fg-dim);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon svg { width: 100%; height: 100%; }

.tech-item:hover .tech-icon { color: var(--accent); }

.tech-name {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
  transition: color 0.3s;
}

.tech-item:hover .tech-name { color: var(--accent); }

.tech-item--stat {
  background: var(--accent-dim);
}

.tech-item--stat:hover { background: rgba(200,255,0,0.2); }

.tech-stat-num {
  font-family: var(--display);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.tech-item--stat .tech-name { color: rgba(200,255,0,0.55); }
.tech-item--stat:hover .tech-name { color: var(--accent); }

/* =============================================
   CTA
============================================= */
#cta {
  background: var(--bg);
  text-align: center;
  padding: clamp(80px, 16vh, 200px) var(--pad);
  position: relative;
  overflow: hidden;
}

#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 280px);
  color: rgba(240,237,232,0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
  user-select: none;
}

.cta-label { position: relative; }

.cta-title {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.92;
  margin-bottom: 28px;
  position: relative;
  letter-spacing: 0.04em;
}

.cta-title-light {
  font-weight: 200;
  color: var(--fg-dim);
  display: block;
}

.cta-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-dim);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

.cta-email {
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--fg-dim);
  margin-top: 36px;
  position: relative;
  font-style: italic;
}

.cta-email a {
  color: var(--fg-dim);
  border-bottom: 1px solid rgba(240,237,232,0.2);
  transition: color 0.25s, border-color 0.25s;
}

.cta-email a:hover { color: var(--accent); border-color: var(--accent); }

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--fg); }

.footer-copy {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* =============================================
   TABLET 768px+
============================================= */
@media (min-width: 768px) {
  /* Grid proyectos aparece en tablet */
  .projects-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .project-card:nth-child(1) { grid-column: span 7; grid-row: span 2; height: 560px; }
  .project-card:nth-child(2) { grid-column: span 5; height: 277px; }
  .project-card:nth-child(3) { grid-column: span 5; height: 277px; }
  .project-card:nth-child(4) { grid-column: span 4; height: 340px; }
  .project-card:nth-child(5) { grid-column: span 4; height: 340px; }
  .project-card:nth-child(6) { grid-column: span 4; height: 340px; }
}

/* =============================================
   MOBILE — hasta 767px
============================================= */
@media (max-width: 767px) {

  /* Hero */
  #hero { padding-bottom: 80px; }

  .hero-title { font-size: clamp(44px, 13vw, 72px); }

  .hero-stats {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    gap: 28px;
    margin-top: 36px;
    text-align: left;
    animation: fadeUp 0.8s 1.1s both;
  }

  .stat-num { font-size: 36px; }

  /* Services */
  .services-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .services-list { grid-template-columns: 1fr; }

  .service-item {
    grid-template-columns: 32px 1fr auto;
    gap: 16px;
    padding: 24px 0;
  }

  .service-name { font-size: clamp(26px, 6vw, 36px); }

  /* Projects — stack en mobile */
  .projects-grid { grid-template-columns: 1fr; }

  .project-card { height: 240px; }

  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5),
  .project-card:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
    height: 240px;
  }

  /* Mostrar info siempre en mobile (no solo en hover) */
  .project-info { transform: translateY(0); }
  .project-hover-reveal { display: none; }

  /* Testimonials */
  .testimonials-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .testimonial-card { padding: 28px 24px; }

  /* About */
  #about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    height: 320px;
    order: -1;
  }

  .about-img-main {
    width: 80%;
    height: 260px;
  }

  .about-img-accent {
    width: 50%;
    height: 160px;
  }

  .about-accent-num { font-size: 52px; }

  /* About tech grid mobile */
  .about-tech-grid { order: -1; }

  /* CTA */
  .cta-title { font-size: clamp(44px, 12vw, 72px); }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links { gap: 20px; }
}
