/* ============================================================
   OCHOSTUDIO — style.css  (image-only edition)
   Mobile-first · breakpoints: 768px, 1024px
   ============================================================ */

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
* { -webkit-overflow-scrolling: touch; }

body {
  overflow-x: hidden;
  width: 100%;
  background: #060606;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

section { overflow: hidden; }

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --accent: #5BB8F5;
  --bg:     #060606;
  --card:   #0d0d0d;
  --cardh:  #161616;
  --border: rgba(255,255,255,0.08);
  --muted:  #888;
  --r:      12px;
}

/* ── UTILITIES ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left:  clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.accent { color: var(--accent); }

.label {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.label--accent { color: var(--accent); }
.label--light  { color: rgba(255,255,255,0.55); }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.93;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.section-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--muted);
  line-height: 1.7;
  max-width: min(480px, 100%);
  margin-top: 16px;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 64px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(6, 6, 6, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-ocho, .logo-tudio { color: #fff; }
.logo-s { color: var(--accent); }

.nav__links { display: none; align-items: center; gap: 32px; }
.nav__links a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.nav__links a:hover { color: #fff; }

.nav__cta {
  background: var(--accent) !important;
  color: #060606 !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px !important;
  transition: opacity 0.2s !important;
}
.nav__cta:hover { opacity: 0.85; }

.nav__burger { display: flex; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.nav__burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s; }
.nav__burger.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: #060606;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu__nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 8vw, 48px);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.mobile-menu__nav a:hover { color: var(--accent); }

.mobile-menu__footer { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

body.menu-open { overflow: hidden; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 14px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: opacity 0.2s;
}
.btn-wa:hover { opacity: 0.88; }

.btn-wa--sm { padding: 11px 20px; font-size: 14px; margin-top: 24px; }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  font-size: 15px; color: rgba(255,255,255,0.8);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); color: #fff; }

.btn-wa-big {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 18px 36px; border-radius: 10px;
  font-size: clamp(15px, 2vw, 18px); font-weight: 600;
  transition: opacity 0.2s;
}
.btn-wa-big:hover { opacity: 0.88; }

.btn-email {
  display: inline-flex; align-items: center;
  padding: 18px 28px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: clamp(12px, 1.5vw, 15px); color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
  word-break: break-all;
}
.btn-email:hover { color: #fff; border-color: rgba(255,255,255,0.28); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(6,6,6,1)    0%,
    rgba(6,6,6,0.5)  40%,
    rgba(6,6,6,0.1)  75%,
    transparent      100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 64px) clamp(64px, 10vh, 120px);
  max-width: 1200px;
  margin: 0 auto;
  will-change: opacity, transform, filter;
}

.hero__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 10vw, 136px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  word-break: break-word;
  margin-top: 12px;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px; height: 22px;
  color: rgba(255,255,255,0.35);
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll-hint svg { width: 100%; height: 100%; }

@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ── STATEMENT ────────────────────────────────────────────── */
.statement { padding: clamp(80px, 12vh, 160px) 0; }

.statement__inner {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
}

.statement__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.93;
  word-break: break-word;
  margin-top: 12px;
  margin-bottom: 20px;
}

.statement__body { font-size: clamp(14px, 1.8vw, 17px); color: rgba(255,255,255,0.58); line-height: 1.78; max-width: 540px; }

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

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(20px, 4vw, 32px);
}

.stat-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc { font-size: clamp(12px, 1.4vw, 13px); color: var(--muted); line-height: 1.6; }

/* ── QUOTE 1 — peak.jpg ───────────────────────────────────── */
.quote1 {
  position: relative;
  height: clamp(400px, 80vh, 720px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.quote1__bg {
  position: absolute;
  top: -20%; left: 0; right: 0;
  height: 140%;
  background: url('assets/images/peak.jpg') center / cover no-repeat;
  will-change: transform;
}

.quote1__overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,6,0.6);
  z-index: 1;
}

.quote1__content {
  position: relative; z-index: 2;
  padding: clamp(24px, 5vw, 64px);
  text-align: center;
}

.quote1__text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  word-break: break-word;
  max-width: 880px;
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services { padding: clamp(80px, 12vh, 160px) 0; }

.services__header { margin-bottom: clamp(40px, 6vw, 64px); }

.services__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.25s, border-color 0.25s;
}
.service-card:hover { background: var(--cardh); border-color: rgba(91,184,245,0.22); }
.service-card--featured { border-color: rgba(91,184,245,0.32); background: rgba(91,184,245,0.03); }

.sc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sc-num { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.sc-icon { width: 26px; height: 26px; color: var(--accent); opacity: 0.65; flex-shrink: 0; }
.sc-icon svg { width: 100%; height: 100%; }

.sc-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 2.8vw, 26px);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.sc-desc { font-size: clamp(13px, 1.4vw, 14px); color: var(--muted); line-height: 1.65; flex: 1; }

.sc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sc-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--accent);
  background: rgba(91,184,245,0.08);
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ── MARKETING — marketing.jpg ────────────────────────────── */
.marketing {
  position: relative;
  height: clamp(380px, 90vh, 820px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.marketing__bg {
  position: absolute;
  top: -20%; left: 0; right: 0;
  height: 140%;
  background: url('assets/images/marketing.jpg') center / cover no-repeat;
  will-change: transform;
}

.marketing__overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,6,0.58);
  z-index: 1;
}

.marketing__content {
  position: relative; z-index: 2;
  text-align: center;
  padding: clamp(24px, 5vw, 64px);
}

.marketing__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 6.5vw, 96px);
  line-height: 1.0;
  letter-spacing: 0.03em;
  word-break: break-word;
  margin-bottom: 16px;
}

.marketing__sub {
  font-size: clamp(14px, 1.8vw, 20px);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  font-family: 'Space Mono', monospace;
}

/* ── AUTOMATIZACIONES ─────────────────────────────────────── */
.auto { padding: clamp(80px, 12vh, 160px) 0; background: var(--bg); }

.auto__header { margin-bottom: clamp(40px, 6vw, 64px); }

.auto__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.auto-card {
  padding: clamp(20px, 3vw, 28px);
  background: var(--card);
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
}
.auto-card:last-child { border-bottom: none; }
.auto-card:hover { background: var(--cardh); }

.auto-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 2.8vw, 26px);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.auto-detail { font-size: clamp(12px, 1.4vw, 14px); color: var(--muted); }

/* ── PROCESO — landscape.jpg ──────────────────────────────── */
.process {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
  overflow: hidden;
}

.process__bg {
  position: absolute;
  top: -20%; left: 0; right: 0;
  height: 140%;
  background: url('assets/images/landscape.jpg') center / cover no-repeat;
  will-change: transform;
}

.process__overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,6,0.85);
  z-index: 1;
}

.process__content { position: relative; z-index: 2; }

.process__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 10vw, 128px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  word-break: break-word;
  margin-top: 12px;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.process__step {
  padding: clamp(24px, 3vh, 40px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.ps-num {
  font-family: 'Space Mono', monospace;
  font-size: clamp(11px, 1.4vw, 13px);
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.ps-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ps-desc { font-size: clamp(13px, 1.4vw, 15px); color: rgba(255,255,255,0.55); }

/* ── FINAL CTA — pov.jpg ──────────────────────────────────── */
.final {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex; align-items: center;
}

.final__bg {
  position: absolute;
  top: -20%; left: 0; right: 0;
  height: 140%;
  background: url('assets/images/pov.jpg') center / cover no-repeat;
  will-change: transform;
}

.final__overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,6,0.72);
  z-index: 1;
}

.final__content {
  position: relative; z-index: 2;
  text-align: center;
  width: 100%;
  padding-top: clamp(80px, 12vh, 120px);
  padding-bottom: clamp(80px, 12vh, 120px);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.final__headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 12vw, 148px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.final__sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 460px;
}

.final__actions {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  width: 100%; max-width: 520px;
  margin-top: 8px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  padding: clamp(40px, 6vh, 64px) 0 clamp(24px, 3vh, 40px);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 28px;
}

.footer__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.footer__tagline { font-size: 13px; color: var(--muted); }

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer__links a:hover { color: #fff; }

.footer__copy { font-size: 12px; color: rgba(255,255,255,0.3); padding-top: 24px; border-top: 1px solid var(--border); }

/* ── WA FLOAT ─────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ── DESKTOP 768px+ ───────────────────────────────────────── */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }

  .statement__inner { grid-template-columns: 1fr 1fr; align-items: start; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .auto__grid { grid-template-columns: repeat(2, 1fr); }
  .auto-card { border-right: 1px solid var(--border); }
  .auto-card:nth-child(even) { border-right: none; }

  .process__grid { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .process__step {
    grid-template-columns: 1fr;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
  }
  .process__step:last-child { border-right: none; }

  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 20px; justify-content: flex-end; max-width: 400px; }
  .footer__copy { display: flex; justify-content: space-between; }

  .final__actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .auto__grid { grid-template-columns: repeat(3, 1fr); }
  .auto-card { border-right: 1px solid var(--border); }
  .auto-card:nth-child(3n) { border-right: none; }
  .auto-card:nth-child(even) { border-right: 1px solid var(--border); }
}
