:root {
  --ink: #0a0a0a;
  --ivory: #f8f5f0;
  --sand: #e5ddcf;
  --taupe: #c8bca8;
  --stone: #9a8f7c;
  --shadow: rgba(10, 10, 10, 0.12);
  --max-width: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 7vh;
}

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

body {
  margin: 0;
  font-family: sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fefcf8 0%, var(--ivory) 45%, #efe7da 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

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

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

.page {
  min-height: 100vh;
  background-image: radial-gradient(circle at 10% 10%, rgba(200, 188, 168, 0.4), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(154, 143, 124, 0.25), transparent 50%);
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ivory);
  z-index: 20;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.header.is-fixed {
  position: fixed;
  background: rgba(248, 245, 240, 0.92);
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 24px;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  align-items: center;
  justify-self: center;
}

.nav-wrap {
  display: contents;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 30;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.header.is-menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header.is-menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.header.is-menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header.is-menu-open {
  color: var(--ivory);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.lang-btn.is-active {
  background: rgba(248, 245, 240, 0.9);
  color: var(--ink);
}

.header.is-fixed .lang-btn.is-active {
  background: var(--ink);
  color: var(--ivory);
}

.lang-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.lang-select {
  display: none;
  appearance: none;
  border: 1px solid currentColor;
  background: rgba(248, 245, 240, 0.95);
  color: var(--ink);
  padding: 6px 28px 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.header.is-fixed .lang-select {
  background: rgba(10, 10, 10, 0.08);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--shadow);
}

.btn-dark {
  background: var(--ink);
  color: var(--ivory);
}

.header .btn-dark {
  background: rgba(248, 245, 240, 0.9);
  color: var(--ink);
  border: 1px solid rgba(248, 245, 240, 0.6);
}

.header.is-fixed .btn-dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.header .btn {
  padding: 10px 18px;
  font-size: 12px;
}

.btn-light {
  background: var(--sand);
  color: var(--ink);
}

.newsletter .btn-light {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.newsletter .btn-light:hover,
.newsletter .btn-light:focus-visible {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

main > section {
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(10, 10, 10, 0.35);
}

main > section {
  min-height: 100vh;
  scroll-margin-top: var(--header-height);
}

.hero {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: url("../assets/images/iniciotenova.webp") center 20% / cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.35) 0%, rgba(8, 8, 8, 0.65) 100%);
}

.hero-cover-overlay {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(48px, 12vw, 140px);
  letter-spacing: 4px;
  color: var(--ivory);
  margin: 0;
  animation: heroReveal 1.9s var(--ease) 0.1s forwards;
  opacity: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.12;
}

h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

.about,
.services,
.clients {
  padding: 64px 32px;
}

.about {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 40px);
  background: linear-gradient(120deg, rgba(229, 221, 207, 0.55) 0%, rgba(248, 245, 240, 0.15) 65%);
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(154, 143, 124, 0.18), transparent 55%);
  pointer-events: none;
}

.about > * {
  position: relative;
  z-index: 1;
}

.about.about-reveal {
  opacity: 0;
  transform: translateY(120px) scale(0.96);
  filter: blur(1.5px);
  transition: opacity 2.1s var(--ease), transform 2.1s var(--ease),
    filter 2.1s var(--ease);
  transition-delay: 0.1s;
  will-change: opacity, transform, filter;
}

.about.about-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.about.about-reveal.is-hidden {
  opacity: 0;
  transform: translateY(120px) scale(0.96);
  filter: blur(1.5px);
}

.about.about-reveal::before {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.about.about-reveal.is-visible::before {
  opacity: 1;
  transition-delay: 2.2s;
}

.about.about-reveal.is-hidden::before {
  opacity: 0;
  transition-delay: 0s;
}

.about {
  padding: clamp(40px, 6vh, 64px) 32px;
}

.services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.clients {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.clients-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.about p {
  font-size: 18px;
  margin-bottom: 18px;
}

.about-card {
  border: 1px solid rgba(10, 10, 10, 0.15);
  border-radius: 22px;
  padding: 34px;
  background: rgba(248, 245, 240, 0.8);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

.about-card ul {
  padding-left: 18px;
  margin: 16px 0 24px;
}

.about-card li {
  font-size: 16px;
  margin-bottom: 8px;
}

.about-highlights {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.highlight {
  background: rgba(248, 245, 240, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  padding: 24px;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
}

.highlight-title {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11px;
  color: var(--stone);
  margin-bottom: 12px;
}

.highlight p {
  margin: 0;
  font-size: 16px;
}

.about-signals {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.signal-card {
  background: rgba(248, 245, 240, 0.92);
  border-radius: 20px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  padding: 22px;
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  --signal-accent: #9a8f7c;
  --signal-accent-rgb: 154, 143, 124;
  --signal-surface: rgba(229, 221, 207, 0.85);
}

.signal-card--marketing {
  --signal-accent: #bf6a3d;
  --signal-accent-rgb: 191, 106, 61;
  --signal-surface: rgba(232, 199, 176, 0.85);
}

.signal-card--automation {
  --signal-accent: #4e8a6a;
  --signal-accent-rgb: 78, 138, 106;
  --signal-surface: rgba(201, 224, 212, 0.85);
}

.signal-card--development {
  --signal-accent: #4a6a8a;
  --signal-accent-rgb: 74, 106, 138;
  --signal-surface: rgba(203, 217, 232, 0.85);
}

.signal-visual {
  height: 120px;
  border-radius: 18px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78),
    var(--signal-surface)
  );
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.signal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 20%,
    rgba(255, 255, 255, 0.7),
    transparent 55%
  );
  opacity: 0.7;
  pointer-events: none;
}

.signal-orb {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(var(--signal-accent-rgb), 0.35) 45%,
    transparent 70%
  );
  opacity: 0.7;
  animation: orbDrift 5s var(--ease) infinite;
}

.signal-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(var(--signal-accent-rgb), 0.45);
  animation: ringPulse 3.2s var(--ease) infinite;
}

.signal-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 70px;
  position: relative;
  z-index: 1;
}

.signal-bars span {
  width: 10px;
  height: var(--bar-height, 50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(var(--signal-accent-rgb), 0.55),
    rgba(var(--signal-accent-rgb), 0.2)
  );
  transform-origin: bottom;
  animation: barFloat 2.8s var(--ease) infinite;
  animation-delay: var(--delay, 0ms);
}

.signal-meter {
  position: relative;
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--signal-accent-rgb), 0.15);
  overflow: hidden;
  z-index: 1;
}

.signal-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(var(--signal-accent-rgb), 0.6),
    rgba(var(--signal-accent-rgb), 0.2)
  );
  transform-origin: left;
  animation: meterSweep 2.6s var(--ease) infinite;
}

.signal-ripple {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(var(--signal-accent-rgb), 0.35);
  opacity: 0.6;
  animation: ripplePulse 3s var(--ease) infinite;
}

.signal-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.signal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--signal-accent-rgb), 0.55);
  animation: dotBlink 2.2s ease-in-out infinite;
  animation-delay: var(--dot-delay, 0ms);
}

.signal-copy {
  display: grid;
  gap: 8px;
}

.signal-kicker {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  color: rgba(var(--signal-accent-rgb), 0.75);
}

.signal-value {
  font-size: 28px;
  letter-spacing: 0.4px;
  color: rgba(var(--signal-accent-rgb), 0.9);
}

.signal-copy p {
  margin: 0;
  font-size: 15px;
  color: #4a4238;
}

.text-link {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.6px;
  border-bottom: 1px solid var(--ink);
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 36px;
}

.section-header p {
  font-size: 18px;
}

.services .section-header {
  max-width: none;
  margin: 0 0 36px;
  text-align: left;
}

.clients .section-header {
  max-width: none;
  margin: 0 0 36px;
  text-align: left;
}

.service-grid {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.library {
  width: min(440px, 74vw);
  min-height: min(700px, 72vh);
  height: auto;
  padding: 16px 18px 6px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(98, 69, 42, 0.35), transparent 60%),
    linear-gradient(165deg, #c6a079 0%, #d0ad83 38%, #b4865b 100%);
  border: 1px solid rgba(74, 52, 32, 0.35);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.24),
    inset 0 18px 28px rgba(0, 0, 0, 0.18),
    inset 0 -18px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
  margin: 0 auto;
  overflow: visible;
}

.library.is-shifted {
  transform: translateX(var(--library-shift, -140px));
}

.library-title {
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #f2e4cf;
  text-align: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a67b52 0%, #8c623c 100%);
  border: 1px solid rgba(66, 40, 20, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 14px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.library::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(74, 52, 32, 0.35);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 6px,
    rgba(0, 0, 0, 0.04) 6px,
    rgba(0, 0, 0, 0.04) 12px
  );
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.library::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(80, 55, 34, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.library-shelves {
  display: grid;
  gap: 10px;
  overflow: visible;
  width: 100%;
}

.library.is-mobile {
  width: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
  transform-style: flat;
}

.library.is-mobile::before,
.library.is-mobile::after {
  display: none;
}

.library.is-mobile .library-title {
  margin-bottom: 12px;
  text-shadow: none;
}

.library.is-mobile .library-shelves {
  gap: 18px;
}

.client-stack {
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 22px;
  padding: 12px;
  background: rgba(248, 245, 240, 0.92);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 0;
}

.client-stack-toggle {
  appearance: none;
  border: none;
  background: transparent;
  padding: 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  width: 100%;
}

.client-stack-toggle:focus-visible {
  outline: 2px solid rgba(10, 10, 10, 0.4);
  outline-offset: 4px;
  border-radius: 12px;
}

.client-stack-toggle::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.client-stack.is-open .client-stack-toggle::after {
  content: "-";
}

.client-stack-title {
  font-size: 24px;
  margin: 0;
}

.client-stack-body {
  display: grid;
  gap: 12px;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: height 0.45s var(--ease), opacity 0.35s var(--ease),
    transform 0.45s var(--ease);
}

.client-stack.is-open .client-stack-body {
  opacity: 1;
  transform: translateY(0);
}

.client-page-card {
  border-radius: 18px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 232, 0.92));
  padding: 22px 18px;
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin-right: auto;
  --icon-accent: #9a8f7c;
  position: relative;
}

.client-page-card.is-marketing {
  --icon-accent: #bf6a3d;
}

.client-page-card.is-analisis {
  --icon-accent: #4a6a8a;
}

.client-page-card.is-desarrollo {
  --icon-accent: #5a5a8c;
}

.client-page-card.is-automatizacion {
  --icon-accent: #4e8a6a;
}

.client-page-card.is-right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.client-page-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  pointer-events: none;
}

.client-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}

.client-page-headings {
  display: grid;
  gap: 4px;
}

.client-page-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  display: grid;
  place-items: center;
  color: var(--icon-accent);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95),
    rgba(10, 10, 10, 0.06)
  );
  box-shadow: 0 10px 18px rgba(10, 10, 10, 0.12);
  flex-shrink: 0;
}

.client-page-icon svg {
  width: 20px;
  height: 20px;
}

.client-page-kicker {
  color: var(--icon-accent);
}

.client-page-card.is-right {
  background: linear-gradient(
    225deg,
    rgba(255, 255, 255, 0.98),
    rgba(244, 239, 232, 0.92)
  );
}

.client-page-card.is-right .client-page-header {
  flex-direction: row-reverse;
  text-align: right;
}

.client-page-card.is-right .client-page-headings {
  align-items: flex-end;
}

.client-page-card.is-right .client-page-list {
  padding-left: 0;
  padding-right: 0;
  list-style: none;
}

.client-page-card.is-right .client-page-text {
  text-align: right;
}

.client-page-card.is-right .client-page-list li {
  position: relative;
  padding-right: 16px;
  text-align: right;
}

.client-page-card.is-right .client-page-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: currentColor;
}

.client-page-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--stone);
}

.client-page-title {
  font-size: 18px;
  margin: 0;
}

.client-page-text {
  margin: 0;
  font-size: 14px;
  color: #4a4238;
}

.client-page-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #5d5449;
  display: grid;
  gap: 4px;
}

.shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  justify-items: center;
  align-items: end;
  padding: 8px;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #c59663 0%, #b07a4c 55%, #915f35 100%);
  box-shadow:
    inset 0 18px 26px rgba(44, 28, 16, 0.45),
    inset 0 -16px 22px rgba(0, 0, 0, 0.25),
    inset 12px 0 18px rgba(0, 0, 0, 0.2),
    inset -12px 0 18px rgba(0, 0, 0, 0.2);
  min-height: clamp(210px, 38vw, 280px);
  border: 1px solid rgba(74, 52, 32, 0.28);
}

.shelf::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.25));
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.28);
  z-index: 0;
}

.shelf::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
  z-index: 0;
}

.shelf > * {
  position: relative;
  z-index: 1;
}

.book,
.empty-slot {
  height: clamp(170px, 32vw, 240px);
  width: min(100%, clamp(36px, 10vw, var(--book-width, 64px)));
  position: relative;
  border-radius: 14px;
}

.empty-slot {
  border: 1px dashed rgba(10, 10, 10, 0.18);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.05);
}

.book {
  cursor: pointer;
  transform: translateY(6px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  perspective: 1000px;
  transform-style: preserve-3d;
  transform-origin: center;
  --book-surface: linear-gradient(0deg, #c7a073 0%, #d5b58a 100%);
  --book-edge: rgba(98, 69, 42, 0.35);
  --book-spine: rgba(98, 69, 42, 0.3);
}

.book.book-empty {
  cursor: default;
  opacity: 0.55;
}

.book.book-empty:hover {
  transform: translateY(6px);
}

.book.book-empty .book-cover,
.book.book-empty .book-back {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}


.book:hover {
  transform: translateY(0);
}

.book-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--book-surface);
  border: 1px solid var(--book-edge);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.18);
  z-index: 0;
  transition: opacity 0.4s var(--ease);
  overflow: hidden;
}

.book-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  z-index: 2;
}

.book-cover {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--book-surface);
  border: 1px solid var(--book-edge);
  transform-origin: left center;
  transform: rotateY(0deg);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 0 0 2px rgba(98, 69, 42, 0.18), 0 8px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: flex-end;
  transition: transform 0.6s var(--ease);
  z-index: 3;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}

.book-cover-inner {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transform: rotateY(180deg) translateZ(1px);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  z-index: 0;
}

.book-band {
  width: 100%;
  background: rgba(220, 210, 195, 0.9);
  color: #4e4438;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.6px;
  height: 56px;
  padding: 10px 8px 8px;
  text-align: center;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  white-space: normal;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book.is-open .book-band {
  opacity: 0;
  transition-delay: 0s;
}

.book.is-open.is-closing .book-band {
  opacity: 1;
}


.book.is-selected {
  z-index: 5;
}


.book-page {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(160deg, #fdf9f2 0%, #f3e8d7 100%);
  border: 1px solid rgba(120, 86, 56, 0.18);
  padding: 18px;
  display: grid;
  gap: 8px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  opacity: 1;
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.book-cover-inner.book-page {
  position: absolute;
  inset: 0;
  background: var(--book-surface);
  border: 1px solid var(--book-edge);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 2px rgba(98, 69, 42, 0.18);
}

.book-page-right {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  overflow: hidden;
  box-shadow: none;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(155deg, #fffaf4 0%, #f2e7d7 100%);
  border-left: 1px solid rgba(120, 86, 56, 0.12);
  box-shadow: inset 8px 0 16px rgba(0, 0, 0, 0.06);
}

.book.is-open .book-page-right {
  opacity: 1;
}

.book.is-open .book-page.book-page-right {
  box-shadow: none;
}

.book-page-services {
  transform-origin: top left;
  box-sizing: border-box;
  align-content: start;
}

.book,
.book-cover,
.book-back,
.book-page,
.page-turn-layer,
.page-turn-inner {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.book-page {
  outline: 1px solid transparent;
}

.page-turn-inner {
  transform: translateZ(0.1px);
}

.book-page.is-empty * {
  display: none;
}

.spread-left {
  position: relative;
  border-radius: 14px 8px 8px 14px;
  box-shadow: inset -8px 0 12px rgba(0, 0, 0, 0.06);
  will-change: transform;
  transform: translateZ(0);
}

.spread-right {
  position: relative;
  border-radius: 8px 14px 14px 8px;
  box-shadow: inset 8px 0 12px rgba(0, 0, 0, 0.06);
  will-change: transform;
  transform: translateZ(0);
}

.spread-left::after,
.spread-right::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(120, 86, 56, 0.25);
  transform: translateZ(0.2px);
}

.page-turn-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  z-index: 6;
}

.page-turn-layer.is-left {
  left: 0;
  transform-origin: right center;
}

.page-turn-layer.is-right {
  left: 50%;
  transform-origin: left center;
}

.page-turn-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--book-surface);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
}

.book.is-open .book-page,
.book.is-open .page-turn-inner {
  border-color: rgba(120, 86, 56, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.book.is-open .spread-left,
.book.is-open .spread-right {
  outline: none;
  outline-offset: 0;
}

.page-turn-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.08),
    rgba(10, 10, 10, 0)
  );
  opacity: 0.65;
  pointer-events: none;
}

.page-art {
  height: 90px;
  border-radius: 12px;
  background: linear-gradient(130deg, #efe6d8 0%, #f8f1e6 45%, #e6dbc9 100%);
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.08);
}

.page-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--stone);
}

.page-title {
  font-size: 18px;
  margin: 0;
}

.page-text {
  font-size: 13px;
  margin: 0;
  color: #4a4238;
}

.page-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #5d5449;
  display: grid;
  gap: 5px;
}

.book-page-services {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(165deg, #fffdf8 0%, #f3e8d6 100%);
  padding: 0;
  border-radius: 12px;
}

.book-cv {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 20px;
}

.book-cv-header {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(120, 86, 56, 0.2);
}

.book-cv-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 9px;
  color: #7b6a57;
}

.book-cv-name {
  font-size: 18px;
  margin: 0;
  color: #3f362b;
}

.book-cv-tagline {
  margin: 0;
  font-size: 11px;
  color: #443a30;
}

.book-cv-section {
  display: grid;
  gap: 6px;
}

.book-cv-title {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  color: #6e5c48;
}

.book-cv-text {
  margin: 0;
  font-size: 11px;
  color: #3b332a;
  line-height: 1.45;
}

.book-cv-footer {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.book-cv-footer .book-cv-section {
  flex: 1 1 0;
  min-width: 0;
}

.book-cv-list {
  margin: 0;
  padding-left: 16px;
  font-size: 10px;
  color: #4f463c;
  display: grid;
  gap: 4px;
}

.book-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-service-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  --icon-accent: #9a8f7c;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(120, 86, 56, 0.14);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(50% - 10px);
}

.book-service-row.is-analisis {
  --icon-accent: #4a6a8a;
}

.book-service-row.is-desarrollo {
  --icon-accent: #5a5a8c;
}

.book-service-row.is-marketing {
  --icon-accent: #bf6a3d;
}

.book-service-row.is-automatizacion {
  --icon-accent: #4e8a6a;
}

.book-service-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  border: 1px solid rgba(10, 10, 10, 0.14);
  display: grid;
  place-items: center;
  color: var(--icon-accent);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(10, 10, 10, 0.04));
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.12);
}

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

.book-service-content {
  display: grid;
  gap: 3px;
}

.book-service-name {
  font-size: 13px;
  font-weight: 600;
  color: #2f2820;
}

.book-service-sub {
  font-size: 12px;
  color: #4a4037;
}

.book-service-meta {
  font-size: 11px;
  color: #5a4f43;
}


.service-card {
  background: rgba(248, 245, 240, 0.9);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateX(0);
  min-height: 520px;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  flex: 1;
}

.card-body .btn {
  align-self: center;
  margin-top: auto;
}

.contact-banner {
  background: url("../assets/images/banner.jpg") center/cover no-repeat;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  height: 100vh;
}

.contact-overlay {
  background: rgba(8, 8, 8, 0.72);
  color: var(--ivory);
  padding: clamp(32px, 6vh, 64px) 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  height: 100vh;
  justify-content: center;
}

.contact-banner .section-header p {
  color: rgba(248, 245, 240, 0.8);
}

.contact-overlay .section-header {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.contact-form {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
  background: rgba(248, 245, 240, 0.95);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid rgba(10, 10, 10, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-actions .form-note {
  width: 100%;
  text-align: center;
}

.form-note {
  font-size: 13px;
  color: var(--stone);
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.footer-brand h3 {
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
}

.newsletter label {
  display: grid;
  gap: 12px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.2px;
}

.newsletter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter .btn {
  cursor: pointer;
}

.newsletter input {
  flex: 1 1 180px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.2);
  font-family: inherit;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    letter-spacing: 12px;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 4px;
    filter: blur(0);
  }
}

@keyframes barFloat {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes orbDrift {
  0%,
  100% {
    transform: translate(-6px, 6px);
  }
  50% {
    transform: translate(8px, -6px);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes meterSweep {
  0%,
  100% {
    transform: scaleX(0.35);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(0.9);
    opacity: 0.9;
  }
}

@keyframes ripplePulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

@keyframes dotBlink {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-6px);
    opacity: 0.9;
  }
}


@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library {
    width: min(420px, 88vw);
    min-height: min(640px, 70vh);
    height: auto;
  }
}

@media (max-width: 1100px) {
  .lang-btn {
    display: none;
  }

  .lang-select {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .header {
    padding: 16px 20px;
  }

  .nav-wrap {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: calc(var(--header-height) + 20px) 24px 36px;
    background: rgba(10, 10, 10, 0.94);
    color: var(--ivory);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
    text-align: center;
    z-index: 25;
  }

  .nav-wrap.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    flex-direction: column;
    gap: 20px;
    font-size: 15px;
    letter-spacing: 1.6px;
  }

  .nav a {
    padding: 8px 0;
  }

  .lang-switch {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lang-btn {
    display: inline-flex;
  }

  .lang-select {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .about {
    max-height: none;
    justify-content: flex-start;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .about-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  main {
    gap: 0;
  }

  .header {
    padding: 16px 18px;
  }

  .about,
  .services,
  .clients {
    padding: 48px 20px;
  }

  .about-signals {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .about p {
    font-size: 16px;
  }

  .about-card {
    padding: 22px;
    border-radius: 18px;
  }

  .about-card li {
    font-size: 15px;
  }

  .signal-visual {
    height: 104px;
  }

  .signal-value {
    font-size: 24px;
  }

  .signal-copy p {
    font-size: 14px;
  }

  .library {
    width: min(380px, 92vw);
    min-height: min(580px, 66vh);
    height: auto;
    padding: 14px 16px 6px;
  }

  .library.is-mobile {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .client-stack {
    padding: 16px;
    border-radius: 20px;
  }

  .client-stack-title {
    font-size: 22px;
  }

  .client-page-card {
    padding: 14px;
  }

  .shelf {
    gap: 4px;
    padding: 8px;
    min-height: clamp(200px, 40vw, 240px);
  }

  .contact-overlay {
    padding: clamp(28px, 6vh, 48px) 20px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card img {
    height: 220px;
  }

  .card-body {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-banner,
  .contact-overlay {
    min-height: 100svh;
    height: auto;
  }

  .contact-form {
    padding: 24px;
  }

  .footer {
    padding: 50px 20px 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .service-card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about.about-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

  .book,
  .book-cover,
  .page-turn-layer {
    transition: none;
  }

  .signal-orb,
  .signal-ring,
  .signal-bars span,
  .signal-meter-fill,
  .signal-ripple,
  .signal-dots span {
    animation: none;
  }
}
