/* ==========================================================================
   Tomy Ramírez — Community Manager en Mataró y el Maresme
   Hoja de estilos única para las versiones en catalán, español e inglés.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0f14;
  --bg-soft: #0f1620;
  --steel: #1b2430;
  --steel-2: #3a4a5c;
  --accent: #8fb3d9;
  --accent-bright: #c3dbf5;
  --text: #f4f7fa;
  --muted: #b7c4d2;
  --line: rgba(143, 179, 217, 0.18);
  --line-strong: rgba(143, 179, 217, 0.42);
  --success: #9fd8b4;
  --error: #f0a9a9;
  --radius: clamp(16px, 2vw, 26px);
  --container: 1160px;
  --shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
  -webkit-text-size-adjust: 100%;
  font-synthesis: style;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 800px at 85% -10%, rgba(143, 179, 217, 0.12), transparent 60%),
    radial-gradient(900px 700px at 0% 20%, rgba(58, 74, 92, 0.28), transparent 65%),
    linear-gradient(180deg, #0b0f14 0%, #0a0e13 55%, #0b0f14 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
}

h3 {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15rem;
}

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffffff;
}

strong {
  color: #ffffff;
  font-weight: 600;
}

::selection {
  background: var(--accent);
  color: #071019;
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #071019;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
  color: #071019;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.78);
  border-bottom: 1px solid rgba(143, 179, 217, 0.14);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-inline-end: auto;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(160deg, #f7fbff, #cfdeee);
  filter: drop-shadow(0 0 14px rgba(143, 179, 217, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand-role {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.6);
}

.lang-switch a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--text);
  background: rgba(143, 179, 217, 0.12);
}

.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: #071019;
}

.main-nav {
  order: 3;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 0.3rem;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0.1rem 0 0.2rem;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(143, 179, 217, 0.1);
  border-color: var(--line);
}

.nav-link.is-active {
  color: var(--accent-bright);
  background: rgba(143, 179, 217, 0.14);
  border-color: rgba(143, 179, 217, 0.4);
}

@media (min-width: 920px) {
  .header-inner {
    flex-wrap: nowrap;
    padding-block: 0.75rem;
  }

  .main-nav {
    order: 2;
    width: auto;
    margin-inline: auto;
    overflow: visible;
  }

  .lang-switch {
    order: 3;
  }
}

/* --------------------------------------------------------------------------
   Túnel: escenario 3D + canvas
   -------------------------------------------------------------------------- */

#tunnel-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

#tunnel-canvas[hidden] {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

body.has-cookie-banner {
  padding-bottom: min(55vh, 340px);
}

.tunnel {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 5vh, 3.5rem);
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(3rem, 8vw, 6rem);
  /* La perspectiva se aplica por panel (perspective() en su transform) para
     que cada sección se aleje respecto a su propio centro y no se desplace
     hacia el centro del túnel completo. */
}

.panel {
  position: relative;
  padding: clamp(1.35rem, 4vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(27, 36, 48, 0.985), rgba(13, 19, 27, 0.99) 58%, rgba(17, 24, 35, 0.985));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  overflow: hidden;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -30% 35% 55% -25%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(143, 179, 217, 0.16), transparent 75%);
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset-inline: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 219, 245, 0.55), transparent);
  pointer-events: none;
}

.tunnel > .panel {
  width: 100%;
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.section-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.08rem);
}

.section-index {
  position: absolute;
  top: clamp(0.6rem, 2vw, 1.4rem);
  inset-inline-end: clamp(0.9rem, 2.4vw, 1.8rem);
  color: rgba(143, 179, 217, 0.16);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  min-height: min(78vh, 760px);
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(143, 179, 217, 0.4);
  border-radius: 999px;
  background: rgba(143, 179, 217, 0.09);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.05rem, 1.2rem + 4.4vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  background: linear-gradient(115deg, var(--accent-bright), var(--accent) 55%, #6f93b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* Retrato con tratamiento azulado y capas de profundidad */
.portrait {
  position: relative;
  width: min(100%, 400px);
  margin: 0 auto;
  transform-style: preserve-3d;
}

.portrait-frame {
  position: relative;
  display: block;
  transform-style: preserve-3d;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -12px -12px -10px 12px;
  border: 1px solid rgba(143, 179, 217, 0.45);
  border-radius: clamp(20px, 3vw, 30px);
  background: linear-gradient(150deg, rgba(143, 179, 217, 0.16), transparent 60%);
  transform: translateZ(-45px) rotate(-1.2deg);
}

.portrait-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0) 40%, rgba(11, 15, 20, 0.72) 100%);
  pointer-events: none;
}

.portrait-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: clamp(16px, 2.4vw, 24px);
  background: var(--steel);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.portrait-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.08) contrast(1.03) brightness(1.01) saturate(1.05);
}

.portrait-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #6f93b8;
  mix-blend-mode: color;
  opacity: 0.12;
  pointer-events: none;
}

.portrait-tag {
  position: absolute;
  z-index: 4;
  inset-inline-start: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(195, 219, 245, 0.4);
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(6px);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.portrait figcaption {
  margin-top: 1.5rem;
  color: #c6d5e4;
  font-size: 0.8rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #b9d5f2, #7fa6d0);
  color: #071019;
  box-shadow: 0 14px 34px -16px rgba(143, 179, 217, 0.85);
}

.btn-primary:hover {
  color: #04070a;
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(143, 179, 217, 0.95), 0 0 28px rgba(143, 179, 217, 0.35);
}

.btn-ghost {
  background: rgba(143, 179, 217, 0.07);
  border-color: rgba(143, 179, 217, 0.42);
  color: var(--text);
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(143, 179, 217, 0.16);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(143, 179, 217, 0.22);
}

.btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Sobre mí
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.about-highlights li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(58, 74, 92, 0.16);
  font-size: 0.92rem;
  color: var(--muted);
}

.about-highlights svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
  color: var(--accent);
}

.about-figure {
  margin: 0;
  align-self: start;
}

.about-side {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.about-extra {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(58, 74, 92, 0.16);
}

.about-extra-title {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-extra p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.about-figure .figure-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--steel), #0f1620);
  box-shadow: var(--shadow);
}

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.55) contrast(1.08) brightness(0.92) hue-rotate(-8deg);
}

.about-figure .figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(143, 179, 217, 0.28), transparent 45%),
    linear-gradient(0deg, rgba(11, 15, 20, 0.55), transparent 50%);
  pointer-events: none;
}

.about-figure figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .about {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 0.9rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(58, 74, 92, 0.26), rgba(27, 36, 48, 0.3));
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 179, 217, 0.45);
  box-shadow: 0 22px 44px -30px rgba(143, 179, 217, 0.55);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(143, 179, 217, 0.35);
  border-radius: 12px;
  background: rgba(143, 179, 217, 0.1);
  color: var(--accent);
}

.service-icon svg {
  width: 21px;
  height: 21px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-link {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  border-top: 1px solid transparent;
}

.service-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.service-link:hover span {
  transform: translateX(4px);
}

.services-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-note a {
  color: var(--accent-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.services-note a:hover {
  border-bottom-color: currentColor;
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */

.portfolio-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  max-width: 70ch;
  margin: 0 0 1.6rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(143, 179, 217, 0.4);
  border-radius: 12px;
  background: rgba(143, 179, 217, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(27, 36, 48, 0.5);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 179, 217, 0.4);
}

.work-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(58, 74, 92, 0.5), rgba(11, 15, 20, 0.75)),
    repeating-linear-gradient(45deg, rgba(143, 179, 217, 0.06) 0 10px, transparent 10px 20px);
  text-align: center;
}

.work-media.has-image {
  position: relative;
  flex: none;
  min-height: 0;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: #0b0f14;
}

.work-media.has-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.work-body {
  flex: 1;
  padding: 1rem 1.1rem 1.15rem;
}

.work-body h3 {
  margin-bottom: 0.5rem;
}

.work-card > figcaption {
  padding: 0 1.1rem 1.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.placeholder {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1px dashed rgba(143, 179, 217, 0.6);
  border-radius: 6px;
  background: rgba(11, 15, 20, 0.55);
  color: #cfdded;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.tag {
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  margin: 0;
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.1rem);
  letter-spacing: -0.01em;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
  background: rgba(143, 179, 217, 0.16);
}

.faq .faq-answer {
  padding: 0 0 1.1rem;
  max-width: 72ch;
  color: var(--muted);
}

.faq .faq-answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.8rem);
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  gap: 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #d5e1ee;
}

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

.field input,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(143, 179, 217, 0.28);
  border-radius: 10px;
  background: rgba(11, 15, 20, 0.62);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8593a3;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(143, 179, 217, 0.45);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(11, 15, 20, 0.85);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: #d98a8a;
}

.field-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.25rem;
  color: var(--error);
  font-size: 0.78rem;
}

.field-hint {
  display: block;
  margin-top: 0.3rem;
  color: #94a3b4;
  font-size: 0.76rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.checkbox-field label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-field.has-error {
  color: var(--error);
}

.checkbox-field.has-error label {
  color: var(--error);
}

.checkbox-field input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.checkbox-field a {
  color: var(--accent-bright);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.88rem;
}

.form-status.is-pending {
  color: var(--accent-bright);
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(58, 74, 92, 0.18);
}

.contact-card h3 {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.contact-list svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-steps {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.about-subtitle {
  margin: 1.5rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (min-width: 760px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 920px) {
  .contact {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 5vw, 3.4rem) 1.4rem;
  border-top: 1px solid rgba(143, 179, 217, 0.16);
  background: rgba(8, 12, 17, 0.72);
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.footer-brand {
  max-width: 34ch;
}

.footer-brand .brand {
  margin: 0 0 0.8rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col h2 {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-col button.link-button {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-col a:hover,
.footer-col button.link-button:hover {
  color: var(--text);
  text-decoration: underline;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(143, 179, 217, 0.12);
  color: #93a2b3;
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Aviso de animaciones
   -------------------------------------------------------------------------- */

.motion-notice {
  position: fixed;
  inset-inline-start: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 75;
  display: grid;
  gap: 0.7rem;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(9, 13, 18, 0.95);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.motion-notice[hidden],
body.has-cookie-banner .motion-notice {
  display: none !important;
}

.motion-notice h2 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.motion-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.motion-notice-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.motion-notice-actions .btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

.motion-notice-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.motion-notice-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Banner y diálogo de cookies
   -------------------------------------------------------------------------- */

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(143, 179, 217, 0.35);
  background: rgba(9, 13, 18, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
}

.cookie-inner {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.cookie-inner h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.cookie-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
  max-width: 78ch;
}

.cookie-inner a {
  color: var(--accent-bright);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  flex: 1 1 150px;
  min-width: 140px;
  padding: 0.7rem 1rem;
  border-color: rgba(143, 179, 217, 0.45);
  background: rgba(143, 179, 217, 0.09);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: none;
}

.cookie-actions .btn:hover {
  border-color: var(--accent);
  background: rgba(143, 179, 217, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(143, 179, 217, 0.22);
}

.cookie-links {
  font-size: 0.78rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cookie-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(143, 179, 217, 0.35);
  border-radius: 20px;
  background: linear-gradient(165deg, #16202b, #0f1620);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.8);
}

.cookie-dialog h2 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

.cookie-dialog p {
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-close {
  position: absolute;
  top: 0.7rem;
  inset-inline-end: 0.7rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 15, 20, 0.6);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-close:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.cookie-options {
  margin: 1rem 0;
  border: 0;
  padding: 0;
}

.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1rem;
  align-items: center;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
}

.cookie-option:first-of-type {
  border-top: 0;
}

.cookie-option h3 {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-option p {
  grid-column: 1;
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-option .always-on {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Interruptor accesible */
.switch {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(143, 179, 217, 0.4);
  border-radius: 999px;
  background: #26313f;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dfeaf5;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.switch input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(20px);
  background: #0b0f14;
}

.switch input:focus-visible + span {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.switch input:disabled {
  cursor: not-allowed;
}

.switch input:disabled + span {
  opacity: 0.65;
}

.cookie-dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding-block: 0.7rem 0.1rem;
  background: linear-gradient(180deg, rgba(15, 22, 32, 0) 0%, #0f1620 32%);
}

.cookie-dialog-actions .btn {
  flex: 1 1 150px;
}

.cookie-dialog .cookie-links {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------------- */

.whatsapp-fab[hidden] {
  display: none !important;
}

.whatsapp-fab {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(143, 179, 217, 0.55);
  border-radius: 50%;
  background: #14202c;
  color: var(--accent-bright);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(143, 179, 217, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.2s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
  background: #1b2a38;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 26px rgba(143, 179, 217, 0.35);
}

.whatsapp-fab svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   Páginas legales y utilidades
   -------------------------------------------------------------------------- */

.legal-page .panel {
  max-width: 860px;
  margin-inline: auto;
}

.legal-page {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.legal-page .legal-body > * {
  max-width: 74ch;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.55rem);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page strong {
  color: var(--text);
}

.legal-page .legal-updated {
  margin-bottom: 1.6rem;
  font-size: 0.82rem;
  color: #94a3b4;
}

.draft-banner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(240, 169, 169, 0.55);
  border-radius: 12px;
  background: rgba(240, 169, 169, 0.07);
  color: #f6c9c9;
  font-size: 0.85rem;
}

.draft-banner svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
}

.legal-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.legal-table caption {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(58, 74, 92, 0.35);
  color: var(--text);
  font-weight: 600;
}

.legal-table td {
  color: var(--muted);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-page .legal-body a {
  overflow-wrap: anywhere;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Animaciones de entrada (solo si hay JS)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) {
    scroll-behavior: auto;
  }

  html:not([data-motion="on"]) *,
  html:not([data-motion="on"]) *::before,
  html:not([data-motion="on"]) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html:not([data-motion="on"]) .tunnel {
    perspective: none;
  }

  html:not([data-motion="on"]) .panel,
  html:not([data-motion="on"]) .reveal {
    transform: none !important;
    opacity: 1 !important;
  }

  html:not([data-motion="on"]) #tunnel-canvas {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Móvil: sin túnel 3D ni canvas animado (rendimiento y legibilidad)
   -------------------------------------------------------------------------- */

@media (max-width: 919px) {
  html {
    scroll-padding-top: 116px;
  }

  .tunnel {
    perspective: none;
  }

  .panel,
  .js .reveal {
    transform: none !important;
    opacity: 1 !important;
  }

  #tunnel-canvas {
    display: none;
  }

  .motion-notice {
    display: none !important;
  }

  .header-inner {
    gap: 0.4rem 0.6rem;
    padding-block: 0.5rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .nav-link {
    padding: 0.42rem 0.7rem;
    font-size: 0.83rem;
  }

  .main-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  }

  .main-nav ul {
    padding-inline-end: 1.2rem;
  }

  .cookie-dialog {
    max-height: 92vh;
    padding: 1.1rem;
  }

  .cookie-dialog h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 560px) {
  .section-index {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Ajustes finos
   -------------------------------------------------------------------------- */

@media (max-width: 479px) {
  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-role {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cookie-actions .btn,
  .cookie-dialog-actions .btn {
    flex-basis: 100%;
  }
}

@media (hover: none) {
  .service-card:hover,
  .work-card:hover,
  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .cookie-banner,
  .cookie-modal,
  .whatsapp-fab,
  .motion-notice,
  #tunnel-canvas {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .panel {
    border: 1px solid #cccccc;
    box-shadow: none;
    background: #ffffff;
  }

  .panel *,
  .legal-page p,
  .legal-page li {
    color: #111111 !important;
  }
}
