/* ============================================================
   Lifche — Dark-first palette
   Green CTAs  ·  Blue accents  ·  Warm dark grays
   ============================================================ */

:root {
  --bg:        #161619;
  --surface:   #1c1c20;
  --surface-2: #242428;
  --line:      #2e2e34;
  --ink:       #ececec;
  --ink-2:     #c8c8cc;
  --muted:     #8a8a92;
  --accent:    #4CAF6E;
  --accent-2:  #3d9a5c;
  --highlight: #6BA3F7;
  --highlight-2:#5590e0;
  --accent-ink:#ffffff;

  --f-heading: "Fraunces", Georgia, "Times New Roman", serif;   /* títulos grandes (elegante) */
  --f-display: "Poppins", system-ui, -apple-system, sans-serif; /* UI: menú, botones, etiquetas */
  --f-ui:      "Open Sans", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(70px, 8vw, 120px);
  --content: 1280px;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  --bg:        #161619;
  --surface:   #1c1c20;
  --surface-2: #242428;
  --line:      #2e2e34;
  --ink:       #ececec;
  --ink-2:     #c8c8cc;
  --muted:     #8a8a92;
  --accent:    #4CAF6E;
  --accent-2:  #3d9a5c;
  --highlight: #6BA3F7;
  --highlight-2:#5590e0;
}

[data-theme="light"] {
  --bg:        #ffffff;
  --surface:   #f6f7f5;
  --surface-2: #ececec;
  --line:      #e3e3e3;
  --ink:       #1d1d1d;
  --ink-2:     #2a2a2a;
  --muted:     #6b6b6b;
  --accent:    #3a8f56;
  --accent-2:  #2f7a48;
  --highlight: #4a7fd4;
  --highlight-2:#3d6db8;
}

[data-density="compact"] { --section-y: clamp(50px, 6vw, 90px); }
[data-density="airy"]    { --section-y: clamp(100px, 12vw, 180px); }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Layout */
.wrap {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide {
  width: min(100%, 1480px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section::before {
  content: attr(data-num);
  position: absolute;
  top: 32px;
  right: var(--gutter);
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
  opacity: 0.55;
}

.eyebrow {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--highlight);
  display: inline-block;
}

/* Typography */
.display {
  font-family: var(--f-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
.display .accent { color: var(--highlight); font-style: italic; }

h1.display { font-size: clamp(40px, 6.4vw, 72px); }
h2.display { font-size: clamp(30px, 4vw, 48px); }
h3.display { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.005em;
  line-height: 1;
}
.brand .logo-img {
  height: 30px; width: auto;
  transition: filter .25s var(--ease);
}
[data-theme="light"] .brand .logo-img {
  filter: invert(1) brightness(0.18);
}
.brand .dot { color: var(--accent); }

.nav {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--f-ui);
  font-size: 14.5px;
  font-weight: 500;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav .cta {
  margin-left: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.nav .cta:hover { background: var(--accent-2); transform: translateY(-1px); color: white; }
.nav .cta .arr { transition: transform .25s var(--ease); }
.nav .cta:hover .arr { transform: translateX(3px); }

/* Selector de idioma ES / EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
}
.lang-switch .lang {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-switch .lang:hover { color: var(--ink); background: transparent; }
.lang-switch .lang.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.hamburger { display: none; }
.hamburger span {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.hamburger.is-open span { transform: rotate(45deg); }

/* ============================================================
   HERO — intro a pantalla completa (solo título sobre el fondo),
   el resto se revela al bajar.
   ============================================================ */
.hero { position: relative; color: #ffffff; }

/* --- Intro: ocupa todo el viewport, solo fondo + título --- */
.hero-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;          /* fallback */
  min-height: 100svh;         /* evita el salto por la barra del navegador móvil */
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
}
.hero-intro .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/Hero-bg-laptop.png") center/cover no-repeat;
  background-position: center 35%;
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to   { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

.hero-intro-inner {
  grid-row: 1;
  align-self: center;
  width: min(100%, 1480px);
  text-align: center;
}
.hero-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 122px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
  animation: heroTitleIn 1s var(--ease) both;
}
.hero-title .accent { color: var(--highlight); font-weight: 600; font-style: italic; }
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(7px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* --- Indicador de scroll --- */
.hero-scroll {
  grid-row: 2;
  margin-bottom: clamp(22px, 4vh, 46px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  animation: heroTitleIn 1s var(--ease) .45s both;
  transition: color .25s var(--ease);
}
.hero-scroll:hover { color: #ffffff; }
.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 48px;
  background: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0));
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: #ffffff;
  animation: heroScrollDot 1.9s var(--ease) infinite;
}
@keyframes heroScrollDot {
  0%   { transform: translateY(-100%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}

/* Three.js full-page canvas */
#canvas-3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}
/* main y footer sobre el canvas 3D. El header NO va aquí: necesita su
   propio z-index (50) y position: sticky, si no el menú móvil se abre
   detrás del hero. */
main, .footer {
  position: relative;
  z-index: 1;
}

.hero-intro::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 100% 100%, rgba(40,159,36,0.18) 0%, transparent 55%),
    linear-gradient(180deg,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.88) 100%);
  z-index: -1;
}
.hero-intro::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent, black 40%, transparent);
  z-index: -1;
  pointer-events: none;
}

/* --- Banda revelable (subtítulo, CTA, tags) sobre el lienzo oscuro --- */
.hero-more {
  position: relative;
  padding-block: clamp(56px, 9vw, 100px) clamp(40px, 6vw, 72px);
}
.hero-content {
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
.rotator {
  display: inline-block;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  transition: transform .42s var(--ease), opacity .42s var(--ease), filter .42s var(--ease);
  will-change: transform, opacity, filter;
}
.rotator.is-out {
  transform: translateY(-32%);
  opacity: 0;
  filter: blur(6px);
}
.rotator.is-in {
  animation: rotIn .5s var(--ease);
}
@keyframes rotIn {
  from { transform: translateY(46%); opacity: 0; filter: blur(8px); }
  to   { transform: translateY(0); opacity: 1; filter: blur(0); }
}
.hero .sub {
  margin: 0 auto 34px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  max-width: 60ch;
  text-wrap: pretty;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.hero-tags {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--highlight);
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: white; background: rgba(255,255,255,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: white; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1faa53; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); color: white; transform: translateY(-1px); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.about-content h2 { margin: 14px 0 22px; }
.about-content p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--ink-2);
}
.about-content p:first-of-type {
  font-size: 19px;
  color: var(--ink);
}
.about-content .read-more {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--highlight);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  transition: gap .3s var(--ease);
}
.about-content .read-more:hover { gap: 16px; }
.about-content .read-more .arr { transition: transform .3s var(--ease); }
.about-content .read-more:hover .arr { transform: translateX(4px); }

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}
.about-image::before {
  content: "";
  position: absolute;
  inset: 8% 12% 8% 0;
  background: var(--highlight);
  border-radius: var(--r-m);
  transform: rotate(-2deg);
  z-index: -1;
  opacity: 0.85;
  transition: transform .8s var(--ease);
}
.about-image:hover::before { transform: rotate(-3deg) translate(-4px, -4px); }
.about-image::after {
  content: "QUIÉNES · SOMOS · LIFCHE · DEV · ";
  position: absolute;
  bottom: -18px;
  right: -10px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.5;
}
.about-image img {
  max-width: 76%;
  height: auto;
  border-radius: var(--r-m);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.35);
}

/* Services */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}
.services-head h2 { margin: 14px 0 0; }
.services-head .lead { margin: 0; }

.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 70px 1.2fr 2fr;
  gap: 28px;
  padding: 32px 24px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .35s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--highlight);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.service:hover { background: var(--surface); }
.service:hover::before { transform: scaleY(1); transform-origin: top; }
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 200px at var(--mx, 50%) center, color-mix(in oklab, var(--highlight) 8%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.service:hover::after { opacity: 1; }
.service .num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--highlight);
  letter-spacing: 0.06em;
  padding-top: 8px;
}
.service .title {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color .25s var(--ease);
  display: flex; align-items: center; gap: 14px;
}
.service:hover .title { color: var(--highlight); }
.service .title i {
  font-size: 0.9em;
  color: var(--highlight);
}
.service .desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 4px;
}
.service .desc .arr {
  margin-left: auto;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  transition: color .25s var(--ease), transform .3s var(--ease);
  flex-shrink: 0;
}
.service:hover .desc .arr { color: var(--highlight); transform: translateX(4px); }

/* FAQ */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(28px, 5vw, 80px);
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; gap: 24px;
  align-items: baseline;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  color: var(--ink);
}
.faq-q .toggle {
  flex-shrink: 0;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .35s var(--ease), color .25s var(--ease);
  line-height: 1;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); color: var(--highlight); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), margin-top .45s var(--ease), opacity .35s var(--ease);
  opacity: 0;
}
/* 400px cortaba las respuestas largas en pantallas angostas */
.faq-item.open .faq-a { max-height: 1200px; margin-top: 14px; opacity: 1; }
.faq-a p {
  margin: 0; max-width: 64ch; line-height: 1.65;
  color: var(--ink-2); font-size: 15.5px;
}

/* Contact */
.contact { background: var(--surface); }
.contact-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 48px;
}
.contact-head h2 { margin: 14px 0 0; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--highlight); }
.contact-card .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
}
.contact-card.wa .ic { background: #25D366; }
.contact-card .label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-card .val {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
}
.contact-card .arr {
  margin-top: auto;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.contact-card:hover .arr { color: var(--highlight); gap: 10px; }

.contact-cta {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 700px;
}
.contact-cta h2 { margin: 14px 0 18px; }
.contact-cta .lead { margin: 0 auto 32px; }
.contact-cta .buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  padding-block: 60px 30px;
  background: var(--ink);
  color: #f1f1f1;
}
[data-theme="light"] .footer { background: var(--ink); }
.footer { background: var(--surface); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-info { display: flex; flex-direction: column; gap: 18px; }
.footer-logo {
  width: 140px;
  height: auto;
}
.footer-info p { margin: 0; font-size: 14px; line-height: 1.7; color: #c9c9c9; }
.footer-info p strong { color: #f1f1f1; font-weight: 600; }
.footer-socials { display: flex; gap: 10px; margin-top: 6px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.footer-socials a:hover { background: var(--highlight); transform: translateY(-2px); }
.footer-socials img { width: 18px; height: 18px; }

.footer-col h5 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-col a { color: #c9c9c9; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--highlight); }

.footer-bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--f-display); font-size: 12px;
  color: #999;
  letter-spacing: 0.04em;
}
.footer-bottom .by { color: var(--highlight); font-weight: 600; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

/* Nada debe provocar scroll horizontal. `clip` en vez de `hidden`
   porque `hidden` rompería el position:sticky del header. */
html, body { overflow-x: clip; }

/* Palabras largas (correos, URLs) no deben desbordar su contenedor */
h1, h2, h3, .service .title, .faq-q, .contact-card .val, .footer-col a {
  overflow-wrap: break-word;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image img { max-width: 60%; }
  .services-head, .contact-head { grid-template-columns: 1fr; gap: 14px; }
  .service { grid-template-columns: 56px 1fr; row-gap: 12px; }
  .service .desc { grid-column: 2; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
  }
  .nav.open a { padding: 14px 0; border-radius: 0; }
  .nav.open a:hover { background: transparent; }
  .nav.open .cta { margin: 12px 0 0; justify-content: center; }
  /* El selector de idioma se mantiene como píldora centrada dentro del menú */
  .nav.open .lang-switch { align-self: center; margin: 14px 0 0; }
  .nav.open .lang-switch .lang { padding: 7px 16px; border-radius: 999px; }
  .hamburger {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px;
    font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  }
}

/* Tablet y abajo */
@media (max-width: 768px) {
  /* El número de sección ("01 — STUDIO") se superponía al eyebrow del título */
  .section::before { display: none; }

  /* El texto rotado sobresalía a la derecha y generaba scroll horizontal */
  .about-image::after { display: none; }
  .about-image img { max-width: 70%; }
}

/* Móvil */
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* En pantallas angostas el encuadre del laptop quedaba descentrado */
  .hero .bg { background-position: center 42%; }
  .hero-more { padding-top: clamp(44px, 12vw, 64px); }
  .hero .sub { margin-bottom: 26px; }
  .hero-tags { gap: 12px; margin-top: 30px; }
  .hero-scroll { font-size: 10px; letter-spacing: 0.18em; }

  /* Botones a ancho completo: antes se salían del viewport por white-space: nowrap */
  .hero-cta, .contact-cta .buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .btn, .contact-cta .buttons .btn {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  /* El número del servicio pasa a ir sobre el título, no al lado */
  .service {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 16px;
  }
  .service .desc { grid-column: 1; }
  .service .num { padding-top: 0; }
  .service .desc .arr { margin-left: auto; }

  .about-image img { max-width: 82%; }
  .contact-card { min-height: 0; padding: 22px; }

  .faq-q { gap: 14px; }
}

/* Móviles muy angostos (360px y menos) */
@media (max-width: 380px) {
  .hero-title { font-size: 42px; }
  .brand .logo-img { height: 26px; }
  .hamburger { padding: 9px 11px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* El título aparece de inmediato en vez de animarse */
  .hero-title, .hero-scroll { opacity: 1 !important; filter: none !important; transform: none !important; }
}
