/* ==========================================================================
   Teselix — Atelier Mediterráneo
   Marfil cálido, titulares serif, terracota y motivo de teselas.
   ========================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-soft: #fbf7ee;
  --paper-deep: #efe6d4;
  --paper-mute: #e7dcc8;
  --ink: #241e18;
  --ink-2: #3a3128;
  --muted: #6b5f52;
  --terra: #b5441f;
  --terra-deep: #8e3415;
  --ochre: #c99a5b;
  --olive: #6e7350;
  --line: rgba(36, 30, 24, 0.14);
  --line-strong: rgba(36, 30, 24, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 30px 70px -40px rgba(36, 30, 24, 0.45);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --header-h: 78px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pattern-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23241e18' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M48 0 96 48 48 96 0 48Z'/%3E%3Cpath d='M48 24 72 48 48 72 24 48Z'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-tile-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23f6f1e7' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M48 0 96 48 48 96 0 48Z'/%3E%3Cpath d='M48 24 72 48 48 72 24 48Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--terra);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}

/* ---------- Utilidades ---------- */

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Tipografía editorial ---------- */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  font-variation-settings: "opsz" 110, "SOFT" 50, "WONK" 1;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.05;
  font-variation-settings: "opsz" 80, "SOFT" 40, "WONK" 1;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.15;
}

em {
  font-style: italic;
  color: var(--terra);
  font-weight: 350;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: var(--terra);
}

/* ---------- Etiquetas de sección ---------- */

.section {
  position: relative;
  padding-block: clamp(76px, 10vw, 140px);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-4px);
}

.section-label span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--terra);
}

.section--tint .section-label,
.contact .section-label {
  color: var(--muted);
}

.section--tint .section-label::after,
.contact .section-label::after {
  background: var(--line);
}

.section--tint .section-label span,
.contact .section-label span {
  color: var(--terra);
}

.section-head {
  display: grid;
  gap: 26px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.section-intro {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.section--tint .section-intro,
.contact .section-intro {
  color: var(--muted);
}

/* ---------- Botones y enlaces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--terra);
  color: var(--paper-soft);
  box-shadow: 0 14px 30px -18px rgba(142, 52, 21, 0.8);
}

.btn-primary:hover {
  background: var(--terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(142, 52, 21, 0.85);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}

.link-arrow:hover {
  color: var(--terra);
  border-color: var(--terra);
}

.link-arrow:hover .icon {
  transform: translate(3px, -3px);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.brand-word::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  background: var(--terra);
  transform: rotate(45deg) translateY(-3px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 6px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 80;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 25px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Menú móvil ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: calc(var(--header-h) + 36px) var(--gutter) 40px;
  background: var(--paper);
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.1;
}

.mobile-menu nav a span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--terra);
}

.mobile-menu .btn {
  align-self: flex-start;
}

.mobile-menu-foot {
  margin-top: auto;
  font-size: 14px;
  color: var(--muted);
}

.mobile-menu-foot a {
  color: var(--terra);
}

body.menu-locked {
  overflow: hidden;
}

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

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 80px));
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: -80px;
  right: -140px;
  width: 620px;
  height: 620px;
  background-image: var(--pattern-tile);
  opacity: 0.55;
  transform: rotate(12deg);
  pointer-events: none;
  mask-image: radial-gradient(circle at 60% 40%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, black 0%, transparent 68%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.78fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 90px);
}

.hero-copy h1 {
  margin-top: 26px;
  max-width: 16ch;
}

.hero-lede {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fact-dot {
  width: 7px;
  height: 7px;
  background: var(--terra);
  transform: rotate(45deg);
}

.hero-visual {
  position: relative;
}

.hero-figure {
  position: relative;
  margin-left: auto;
  width: min(100%, 470px);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 240px 240px 26px 26px;
  z-index: 0;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 240px 240px 26px 26px;
  background: var(--paper-mute);
  box-shadow: var(--shadow-soft);
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: -46px;
  bottom: 36px;
  display: grid;
  gap: 3px;
  padding: 14px 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -26px rgba(36, 30, 24, 0.5);
}

.caption-index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}

.caption-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}

.hero-stamp {
  position: absolute;
  top: -26px;
  right: -14px;
  z-index: 2;
  width: 116px;
  height: 116px;
  color: var(--ink);
  animation: spin 26s linear infinite;
}

.hero-stamp text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  fill: currentColor;
}

.hero-stamp .stamp-core {
  fill: var(--terra);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Marquesina ---------- */

.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(251, 247, 238, 0.55);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 17px 19px;
}

.marquee-group span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}

.marquee-group .sep {
  color: var(--terra);
  font-size: 9px;
  letter-spacing: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Suite ---------- */

.suite-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  padding: clamp(26px, 3vw, 38px);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out), background 0.45s var(--ease-out);
}

.product-card:nth-child(1),
.product-card:nth-child(4) {
  grid-column: span 7;
}

.product-card:nth-child(2),
.product-card:nth-child(3) {
  grid-column: span 5;
}

.product-card::after {
  content: "";
  position: absolute;
  top: -54px;
  right: -54px;
  width: 148px;
  height: 148px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  transition: border-color 0.45s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 68, 31, 0.45);
  box-shadow: var(--shadow-soft);
}

.product-card:hover::after {
  border-color: rgba(181, 68, 31, 0.35);
  transform: rotate(45deg) translate(6px, 6px);
}

.product-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.product-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--terra);
}

.product-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-icon {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--terra);
  background: rgba(246, 241, 231, 0.6);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}

.product-icon .icon {
  width: 22px;
  height: 22px;
}

.product-card:hover .product-icon {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--paper-soft);
}

.product-card h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  margin-bottom: 12px;
}

.product-card > p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.product-list {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 26px;
}

.product-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.product-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--ochre);
  transform: rotate(45deg);
}

/* ---------- Sección IA ---------- */

.section--tint {
  background: var(--paper-deep);
  color: var(--ink);
}

.section--tint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-tile);
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 15% 20%, black, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 15% 20%, black, transparent 60%);
}

.section--tint > .container {
  position: relative;
}

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.ai-figure {
  position: relative;
}

.ai-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper-mute);
}

.ai-figure figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.ai-figure figcaption::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terra);
}

.ai-list {
  display: grid;
}

.ai-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.ai-item:last-child {
  border-bottom: 1px solid var(--line);
}

.ai-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--terra);
  padding-top: 4px;
}

.ai-item h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  margin-bottom: 7px;
}

.ai-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

.ai-process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(44px, 6vw, 64px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  counter-reset: step;
}

.process-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink);
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.process-steps li + li::after {
  content: "";
}

.process-steps li:not(:last-child) .arrow {
  display: none;
}

.process-steps li:not(:last-child)::after {
  content: "→";
  margin-left: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--terra);
}

/* ---------- Comercial ---------- */

.commercial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}

.commercial-copy h2,
.international-copy h2,
.method .section-head h2 {
  margin-top: 26px;
  max-width: 15ch;
}

.commercial-copy .section-intro,
.international-copy .section-intro {
  margin-top: 24px;
}

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 36px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.tile-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  background: var(--terra);
  transform: rotate(45deg);
}

.feature-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.feature-list p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Mock de CRM */

.crm-mock {
  position: relative;
  z-index: 0;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.crm-mock::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.crm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 18px;
}

.crm-chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.crm-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.crm-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
}

.crm-col-title span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper-mute);
  font-size: 9px;
}

.crm-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  transition: background 0.3s var(--ease-out);
}

.crm-card:hover {
  background: var(--paper);
}

.crm-card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.crm-card span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}

.crm-bar {
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--paper-mute);
  overflow: hidden;
}

.crm-bar i {
  display: block;
  height: 100%;
  background: var(--terra);
  border-radius: inherit;
}

.crm-card:nth-child(2n) .crm-bar i {
  background: var(--ochre);
}

.crm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.crm-people {
  display: flex;
}

.crm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--paper-soft);
  background: var(--ochre);
}

.crm-avatar:nth-child(2) {
  background: var(--terra);
  margin-left: -7px;
}

.crm-avatar:nth-child(3) {
  background: var(--paper-mute);
  margin-left: -7px;
}

/* ---------- Internacional ---------- */

.international-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}

.international-figure {
  position: relative;
}

.international-media {
  position: relative;
}

.international-media::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.international-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--paper-mute);
}

.international-figure figcaption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.international-figure figcaption::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terra);
}

.steps {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--terra);
  padding-top: 2px;
}

.steps h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.steps p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

.language-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper-soft);
}

.language-note .icon {
  width: 16px;
  height: 16px;
  color: var(--terra);
}

/* ---------- Método ---------- */

.method {
  background: var(--paper-deep);
  overflow: hidden;
}

.method::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 460px;
  height: 460px;
  background-image: var(--pattern-tile);
  opacity: 0.5;
  transform: rotate(-10deg);
  mask-image: radial-gradient(circle at 40% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 40% 40%, black, transparent 70%);
  pointer-events: none;
}

.method > .container {
  position: relative;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.method-grid li {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.method-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--terra);
}

.method-grid h3 {
  margin: 14px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.method-grid p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(40px, 5vw, 56px);
}

.values li {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(251, 247, 238, 0.4);
}

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

.contact {
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 620px;
  height: 620px;
  background-image: var(--pattern-tile);
  opacity: 0.4;
  transform: rotate(12deg);
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 68%);
  pointer-events: none;
}

.contact > .container {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: start;
}

.contact-copy h2 {
  margin-top: 26px;
  max-width: 12ch;
}

.contact-copy > p {
  margin-top: 24px;
  max-width: 42ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-direct {
  display: grid;
  gap: 6px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-direct span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-direct a {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}

.contact-direct a:hover {
  color: var(--terra);
}

.contact-langs {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-card {
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 27px);
  margin-bottom: 26px;
}

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

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

.field label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 15.5px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(107, 95, 82, 0.6);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--terra);
}

.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
  border-bottom-color: #b3261e;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23241e18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 26px;
}

.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: rgba(246, 241, 231, 0.5);
  resize: vertical;
  min-height: 118px;
}

.field textarea:focus {
  border-color: var(--terra);
}

.field--check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 4px;
}

.field--check input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--terra);
}

.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.field--check label a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field--honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--terra-deep);
  min-height: 1.2em;
}

.form-status a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  display: grid;
  gap: 16px;
  padding: 12px 0;
}

.form-success[hidden] {
  display: none;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--paper-soft);
}

.success-mark .icon {
  width: 26px;
  height: 26px;
}

.form-success h3 {
  font-size: clamp(26px, 3vw, 34px);
}

.form-success p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
}

.form-success p a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.site-footer {
  background: var(--paper-deep);
  color: var(--ink-2);
}

.footer-band {
  height: clamp(64px, 9vw, 110px);
  background-image: var(--pattern-tile);
  opacity: 0.6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}

.brand--footer {
  color: var(--ink);
}

.brand--footer .brand-word {
  font-size: 28px;
}

.footer-brand p {
  margin: 18px 0 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-brand > a {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 0.3s var(--ease-out);
}

.footer-col a:hover {
  color: var(--terra);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-domain {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Páginas legales ---------- */

.legal-page {
  background: var(--paper);
}

.legal-header {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s var(--ease-out);
}

.back-link:hover {
  color: var(--terra);
}

.back-link .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.legal-main {
  padding-block: clamp(56px, 8vw, 100px);
}

.legal-shell {
  width: min(800px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.legal-shell h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 44px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.legal-shell h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 38px 0 12px;
}

.legal-shell p,
.legal-shell li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.legal-shell p + p {
  margin-top: 12px;
}

.legal-shell ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 0;
}

.legal-shell ul li {
  display: flex;
  gap: 10px;
}

.legal-shell ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 10px;
  flex: none;
  background: var(--terra);
  transform: rotate(45deg);
}

.legal-shell a {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 44px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  font-size: 13.5px;
  color: var(--muted);
}

.legal-footer {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.legal-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
}

.error-page .brand {
  justify-content: center;
  margin-bottom: 34px;
}

.error-code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--terra);
  text-transform: uppercase;
}

.error-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 14px 0 18px;
}

.error-page p {
  max-width: 44ch;
  margin-inline: auto;
  color: var(--muted);
}

.error-page .btn {
  margin-top: 30px;
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
  }

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

  .hero-caption {
    left: -18px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid,
  .ai-grid,
  .commercial-grid,
  .international-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 54px;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .hero-visual {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-figure {
    width: 100%;
  }

  .hero-caption {
    left: 16px;
  }

  .hero-stamp {
    right: 4px;
  }

  .section-head-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card:nth-child(n) {
    grid-column: span 6;
  }

  .commercial-grid,
  .international-grid {
    gap: 56px;
  }

  .crm-mock {
    max-width: 560px;
  }

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

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

@media (max-width: 720px) {
  .hero {
    padding-top: calc(var(--header-h) + 34px);
  }

  .hero-figure::before {
    inset: 12px -12px -12px 12px;
  }

  .hero-stamp {
    width: 92px;
    height: 92px;
    top: -18px;
  }

  .hero-caption {
    bottom: 18px;
    padding: 12px 16px;
  }

  .caption-text {
    font-size: 15px;
  }

  .suite-grid {
    gap: 14px;
  }

  .product-card:nth-child(n) {
    grid-column: span 12;
  }

  .product-card {
    min-height: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .crm-board {
    grid-template-columns: 1fr 1fr;
  }

  .crm-col:last-child {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .process-steps {
    gap: 8px 16px;
  }

  .process-steps li:not(:last-child)::after {
    margin-left: 6px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .crm-board {
    grid-template-columns: 1fr;
  }

  .crm-col:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .hero-stamp {
    animation: none;
  }
}
