/* =========================================================
   Titan Pest Control Group — styles.css
   Tokens, base y componentes (mobile-first).
   Orden de carga: styles.css → responsive.css → animations.css
   ========================================================= */

/* Tipografías locales (Archivo · Instrument Sans) */
@font-face {font-family: 'Archivo'; font-style: normal; font-weight: 500 700; font-stretch: 100% 125%; font-display: swap; src: url("../fonts/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {font-family: 'Archivo'; font-style: normal; font-weight: 500 700; font-stretch: 100% 125%; font-display: swap; src: url("../fonts/archivo-latin.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: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap; src: url("../fonts/instrument-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap; src: url("../fonts/instrument-sans-latin.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; }

/* 1. Design tokens (propuesta; no constituyen manual oficial de marca) */
:root {
  --c-ink: #121213;
  --c-graphite: #1b1b1d;
  --c-graphite-2: #242427;
  --c-graphite-3: #303034;
  --c-black: #0e0e0f;

  --c-gold: #c99a2e;          /* tono medio tomado del logotipo */
  --c-gold-light: #e2bc5a;    /* acento sobre fondos oscuros */
  --c-gold-deep: #85600f;     /* texto dorado sobre fondos claros (AA) */
  --c-gold-soft: #f4ead2;

  --c-paper: #ffffff;
  --c-ivory: #f7f4ee;
  --c-stone: #ece8e0;
  --c-line: #e2ddd3;
  --c-line-dark: rgba(255, 255, 255, .12);

  --c-text: #2a2926;
  --c-muted: #5c5953;
  --c-on-dark: #f4f1ea;
  --c-on-dark-muted: #b9b4aa;

  --f-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-h1: clamp(2.25rem, 1.35rem + 3vw, 3.65rem);
  --fs-h2: clamp(1.95rem, 1.35rem + 2vw, 3rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --sh-sm: 0 2px 8px -2px rgba(18, 18, 19, .08);
  --sh-md: 0 18px 40px -18px rgba(18, 18, 19, .28);
  --sh-lg: 0 40px 80px -30px rgba(18, 18, 19, .45);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --s-section: clamp(72px, 9vw, 136px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--c-ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: var(--c-gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-gold-light); color: var(--c-ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 3. Utilidades */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: .75rem 1rem; border-radius: var(--r-sm);
  background: var(--c-ink); color: var(--c-on-dark); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; color: var(--c-on-dark); }

.section { padding-block: var(--s-section); }
.section--paper { background: var(--c-paper); }
.section--ivory { background: var(--c-ivory); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  color: var(--c-gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--c-gold-light); }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

.h2 { font-size: var(--fs-h2); max-width: 18ch; }
.h2--xl { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--c-muted); max-width: 58ch; }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .h2 { margin-top: 0; }
.section-head__aside { display: grid; gap: 1.25rem; justify-items: start; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .h2, .section-head--center .lead { margin-inline: auto; }

/* 4. Botones y enlaces */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.4rem;
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .975rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 0 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { --btn-bg: var(--c-gold); --btn-fg: var(--c-ink); --btn-bd: var(--c-gold); }
.btn--gold:hover { --btn-bg: var(--c-gold-light); --btn-bd: var(--c-gold-light); box-shadow: 0 12px 24px -14px rgba(133, 96, 15, .7); }
.btn--ghost { --btn-bd: rgba(18, 18, 19, .22); }
.btn--ghost:hover { --btn-bd: var(--c-ink); }
.btn--dark { --btn-bg: var(--c-ink); --btn-fg: var(--c-on-dark); --btn-bd: var(--c-ink); }
.btn--dark:hover { --btn-bg: var(--c-graphite-3); --btn-bd: var(--c-graphite-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px;
  font-weight: 600; color: var(--c-ink); text-decoration: none;
  background: linear-gradient(var(--c-gold), var(--c-gold)) no-repeat left calc(50% + .8em) / 0 1px;
  transition: background-size .35s var(--ease), color .25s;
}
.link-arrow .icon { color: var(--c-gold-deep); transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: calc(100% - 1.8em) 1px; color: var(--c-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light, .link-arrow--light:hover { color: var(--c-on-dark); }
.link-arrow--light .icon { color: var(--c-gold-light); }

/* Redes sociales */
.social { display: flex; gap: 8px; }
.social__link {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--c-line); color: var(--c-ink);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.social__link .icon { width: 18px; height: 18px; }
.social__link:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-gold-light); transform: translateY(-2px); }
.social--dark .social__link { border-color: var(--c-line-dark); color: var(--c-on-dark); }
.social--dark .social__link:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }

/* 5. Header ------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s var(--ease), background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(18, 18, 19, .35); background: rgba(255, 255, 255, .97); }
.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "brand actions";
  align-items: center;
  column-gap: 12px;
}
.brand { grid-area: brand; display: flex; align-items: center; height: 72px; transition: height .3s var(--ease); }
.brand img { height: 42px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand { height: 62px; }
.is-scrolled .brand img { height: 38px; }
.site-header__tagline { display: none; }

.primary-nav { grid-area: nav; display: none; }
.primary-nav__list { display: flex; justify-content: center; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 48px; padding-inline: 2px;
  font-size: .975rem; font-weight: 500; color: var(--c-ink); text-decoration: none;
  transition: color .2s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.primary-nav a:hover { color: var(--c-gold-deep); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-actions .social { display: none; }
.header-cta { min-height: 44px; padding: 0 1rem; font-size: .925rem; }
.header-cta__long { display: none; }
.nav-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: var(--c-paper); color: var(--c-ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.nav-toggle:hover { border-color: var(--c-ink); }
.nav-toggle .icon { width: 22px; height: 22px; }

/* Escritorio medio: encabezado de dos niveles */

/* Escritorio amplio: una sola fila */

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; transition: visibility 0s .45s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(14, 14, 15, .55); opacity: 0; transition: opacity .4s var(--ease); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--c-graphite); color: var(--c-on-dark);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--c-line-dark); }
.drawer__logo { height: 40px; width: auto; }
.drawer__close {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--c-line-dark); border-radius: var(--r-sm);
  background: transparent; color: var(--c-on-dark); cursor: pointer;
}
.drawer__close .icon { width: 22px; height: 22px; }
.drawer__nav { padding: 12px var(--gutter); }
.drawer__nav li { border-bottom: 1px solid var(--c-line-dark); }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0;
  font-family: var(--f-display); font-stretch: 108%; font-size: 1.5rem; font-weight: 600;
  color: var(--c-on-dark); text-decoration: none;
  transition: color .2s, padding .3s var(--ease);
}
.drawer__nav a:hover { color: var(--c-gold-light); padding-left: 6px; }
.drawer__nav a[aria-current="page"] { color: var(--c-gold-light); }
.drawer__num { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; color: var(--c-on-dark-muted); letter-spacing: .04em; }
.drawer__foot { margin-top: auto; padding: 24px var(--gutter) 32px; display: grid; gap: 24px; }
.drawer__social { display: flex; align-items: center; justify-content: space-between; color: var(--c-on-dark-muted); font-size: .9rem; }

/* 6. Placeholders de imagen ------------------------------- */
.media { position: relative; overflow: hidden; background: var(--c-graphite-2); border-radius: var(--r-md); isolation: isolate; }
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  max-width: calc(100% - 28px);
  padding: .45em .7em;
  font-family: var(--f-mono); font-size: .6875rem; line-height: 1.35; letter-spacing: .03em;
  color: #efe9dc; background: rgba(14, 14, 15, .66);
  border: 1px solid rgba(226, 188, 90, .35); border-radius: 4px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* 7. Secciones -------------------------------------------- */
main { padding-top: calc(var(--header-h) + 1px); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
  background: var(--c-ivory);
  overflow: clip;
}
.hero__content { grid-column: 2; padding-block: clamp(40px, 8vw, 72px) 40px; }
.hero__title { font-size: var(--fs-h1); max-width: 16ch; }
.hero__title em { font-style: normal; color: var(--c-gold-deep); }
.hero__lead { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.65; color: var(--c-muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__media { grid-column: 2; position: relative; padding-bottom: 56px; }
.media--hero { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.media--hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 14, 15, 0) 62%, rgba(14, 14, 15, .32));
}
.media--hero .media__tag { left: auto; right: 14px; bottom: auto; top: 14px; }
.media__img--hero { object-position: 48% 22%; }
.hero__frame {
  position: absolute; z-index: 0; top: -16px; right: -10px;
  width: 38%; aspect-ratio: 1; border: 1px solid var(--c-gold);
  border-radius: var(--r-md); opacity: .6; pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0);
  transition: transform .6s var(--ease);
}
.hero__media .media { z-index: 1; }
.hero__line {
  position: absolute; z-index: 2; left: 18%; top: 0; width: 1px; height: 42%;
  background: linear-gradient(var(--c-gold-light), rgba(226, 188, 90, 0));
  transform-origin: top; animation: draw-y 1.6s .3s var(--ease) both;
}
.hero__card {
  position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--c-paper); border-radius: var(--r-md); box-shadow: var(--sh-md);
  animation: float 7s ease-in-out infinite;
}
.hero__card p { display: grid; gap: 2px; font-size: .875rem; color: var(--c-muted); line-height: 1.35; }
.hero__card strong { font-family: var(--f-display); font-stretch: 108%; font-size: 1rem; color: var(--c-ink); }
.hero__card-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c-ink); color: var(--c-gold-light); }
.hero__card-icon .icon { width: 22px; height: 22px; }

/* Franja de confianza */
.trust { background: var(--c-graphite); color: var(--c-on-dark); }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust__item {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line-dark);
}
.trust__item:nth-child(odd) { padding-right: 16px; }
.trust__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--c-line-dark); }
.trust__item:nth-last-child(-n+2) { border-bottom: 0; }
.trust__figure { font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1; color: var(--c-gold-light); }
.trust__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(226, 188, 90, .5); color: var(--c-gold-light); }
.trust__icon .icon { width: 20px; height: 20px; }
.trust__label { font-size: 1rem; font-weight: 500; line-height: 1.35; }

/* Presentación */
.about { display: grid; gap: 56px; }
.about__media { position: relative; max-width: 520px; }
.about__media::before {
  content: ""; position: absolute; inset: 28px -16px -16px 28px;
  border: 1px solid var(--c-gold); border-radius: var(--r-md); z-index: 0;
}
.about__media .media { z-index: 1; }
.about__media--video { width: 100%; max-width: 400px; justify-self: center; }
.about__media--video::before { display: none; }

/* Video vertical (patrón reutilizable) */
.video { position: relative; display: grid; gap: 14px; }
.video__stage { position: relative; padding: 0 20px 20px 0; }
.video__accent {
  position: absolute; right: 0; bottom: 0; width: 62%; height: 44%;
  border: 1px solid var(--c-gold); border-left: 0; border-top: 0; border-radius: 0 0 var(--r-lg) 0;
  pointer-events: none;
}
.video__frame {
  position: relative; z-index: 1; overflow: hidden; aspect-ratio: 9 / 16;
  border-radius: var(--r-lg); background: var(--c-ink); box-shadow: var(--sh-lg);
}
.video__el { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--c-ink); }
.video__play {
  position: absolute; left: 50%; bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 6px 22px 6px 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .96); color: var(--c-ink); box-shadow: var(--sh-md);
  font-weight: 600; font-size: .925rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translate3d(-50%, 0, 0);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.video__play[hidden] { display: none; }
.video__play:hover { transform: translate3d(-50%, -2px, 0); box-shadow: 0 20px 40px -16px rgba(14, 14, 15, .55); }
.video__play:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.video__play-icon {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--c-ink); color: var(--c-gold-light);
}
.video__play-icon .icon { width: 18px; height: 18px; margin-left: 2px; }
.video__play-icon::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid rgba(201, 154, 46, .6);
  animation: ring-pulse 2.4s var(--ease) 1s infinite;
}
.video__play-text { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.video__play-text small { font-size: .78rem; font-weight: 600; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.video__caption { display: flex; align-items: center; gap: 10px; padding-right: 20px; font-size: .9rem; color: var(--c-muted); }
.video__caption .icon { width: 18px; height: 18px; color: var(--c-gold-deep); }

.about__content .h2 { margin-bottom: 1.5rem; }
.attributes { display: grid; gap: 0; margin: 2rem 0 1.75rem; border-top: 1px solid var(--c-line); }
.attributes li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--c-line);
  font-family: var(--f-display); font-stretch: 106%; font-weight: 600; font-size: 1.0625rem; color: var(--c-ink);
}
.attributes .icon { width: 22px; height: 22px; color: var(--c-gold-deep); }

/* Servicios */
.cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card .media { border-radius: 0; }
.card .media__img { transition: transform .9s var(--ease); }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 24px 26px; }
.card__num { font-family: var(--f-mono); font-size: .75rem; color: var(--c-gold-deep); letter-spacing: .06em; }
.card__title { font-size: var(--fs-h3); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.card p { font-size: .975rem; color: var(--c-muted); }
.card__more { display: inline-flex; align-items: center; gap: .5em; margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .925rem; color: var(--c-ink); }
.card__more .icon { width: 1.05em; height: 1.05em; color: var(--c-gold-deep); transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover .media__img { transform: scale(1.04); }
.card:hover .card__more .icon { transform: translateX(4px); }
.card:focus-within { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.card__title a:focus-visible { outline: none; }

/* Sectores */
.sectors { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.sector { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-md); overflow: hidden; isolation: isolate; color: var(--c-on-dark); }
.sector .media { position: absolute; inset: 0; border-radius: 0; }
.sector .media__img { transition: transform 1s var(--ease); }
.sector .media__tag { top: 14px; bottom: auto; }
.sector::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14, 14, 15, 0) 30%, rgba(14, 14, 15, .88) 100%);
  transition: opacity .4s;
}
.sector__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px 24px; }
.sector__body::before {
  content: ""; display: block; width: 32px; height: 2px; margin-bottom: 14px;
  background: var(--c-gold-light); transition: width .5s var(--ease);
}
.sector h3 { font-size: 1.25rem; color: var(--c-on-dark); }
.sector h3 a { color: inherit; text-decoration: none; }
.sector h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.sector p { margin-top: 6px; font-size: .95rem; color: #d9d4ca; max-width: 34ch; }
.sector:hover .media__img { transform: scale(1.05); }
.sector:hover .sector__body::before { width: 72px; }
.sector:focus-within { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.sector h3 a:focus-visible { outline: none; }

/* Plagas */
.pests { background: var(--c-ivory); border-block: 1px solid var(--c-line); }
.pests__inner { display: grid; gap: 20px; padding-block: 36px; align-items: center; }
.pests__title { font-size: 1.25rem; }
.pests__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pests__list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .45em .95em;
  border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper);
  font-size: .925rem; color: var(--c-text);
}
.pests__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-gold); }

/* Tecnología */
.tech { position: relative; overflow: clip; background: var(--c-graphite); color: var(--c-on-dark); }
.tech::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -280px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 154, 46, .16), rgba(201, 154, 46, 0));
}
.tech .h2 { color: var(--c-on-dark); margin-bottom: 1.5rem; }
.tech .lead { color: var(--c-on-dark-muted); }
.tech__grid { position: relative; display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2rem 0 2.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: transparent; color: var(--c-on-dark);
  font-size: .925rem; font-weight: 500; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip .icon { width: 1.05em; height: 1.05em; color: var(--c-gold-light); transition: color .25s; }
.chip:hover { border-color: var(--c-gold-light); }
.chip[aria-pressed="true"] { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.chip[aria-pressed="true"] .icon { color: var(--c-ink); }

/* Dispositivos (interfaz ilustrativa) */
.devices { position: relative; width: 100%; max-width: 780px; margin-inline: auto; padding: 0 6% 10% 0; }
.laptop { margin-inline: 4%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); }
.laptop__lid {
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  padding: 2.2% 2.2% 2.6%;
  background: #0b0b0c; border: 1px solid #3a3a3f; border-radius: 14px 14px 0 0;
}
.laptop__base {
  position: relative; height: clamp(9px, 1.5vw, 16px); margin: 0 -5%;
  background: linear-gradient(#dcd7cd, #8f897e); border-radius: 0 0 16px 16px / 0 0 12px 12px;
}
.laptop__base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 40%; background: #a7a196; border-radius: 0 0 6px 6px; }

.app {
  height: 100%;
  display: grid; grid-template-columns: 21% minmax(0, 1fr); grid-template-rows: 11% minmax(0, 1fr);
  overflow: hidden; border-radius: 3px;
  background: #f6f4ef; color: var(--c-graphite);
  font-size: 9px; font-size: 1.42cqi; line-height: 1.3;
}
.app__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2em; padding: 0 1.4em; background: var(--c-graphite); color: var(--c-on-dark); }
.app__brand { display: flex; align-items: center; gap: .6em; font-weight: 600; white-space: nowrap; }
.app__mark { display: block; width: 1.4em; height: 1.4em; border-radius: 3px; background: linear-gradient(135deg, var(--c-gold-light), #9c7420); }
.app__search { flex: 1; max-width: 38%; height: 2.2em; margin-left: auto; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.app__avatar { width: 2.2em; height: 2.2em; border-radius: 50%; background: #3a3a3f; border: 1px solid var(--c-gold); }
.app__side { display: flex; flex-direction: column; gap: .25em; padding: 1.4em .7em; background: var(--c-stone); }
.app__nav { padding: .75em .8em; border-radius: 4px; color: var(--c-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .35s, color .35s; }
.app__nav.is-active { background: var(--c-graphite); color: var(--c-on-dark); }
.app__main { position: relative; overflow: hidden; }
.app__view {
  position: absolute; inset: 1.6em 1.8em;
  opacity: 0; visibility: hidden; transform: translateY(.8em);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.app__view.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.app__title { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1.1em; font-family: var(--f-display); font-stretch: 106%; font-weight: 600; font-size: 1.55em; }
.app__pill { padding: .4em .9em; border: 1px solid var(--c-line); border-radius: 99px; background: #fff; color: var(--c-muted); font-family: var(--f-text); font-size: .55em; font-weight: 600; white-space: nowrap; }
.app__rows { display: grid; gap: .6em; }
.app__row { display: grid; grid-template-columns: 2.4em 1.2fr 1fr auto; align-items: center; gap: 1em; padding: .8em 1em; background: #fff; border: 1px solid #e7e2d8; border-radius: 5px; }
.app__ico { display: block; width: 2.4em; height: 2.4em; border-radius: 4px; background: var(--c-gold-soft); border: 1px solid var(--c-gold-light); }
.app__row b { font-weight: 600; }
.app__row span { color: var(--c-muted); }
.app__row em, .papp__card em { font-style: normal; font-size: .85em; font-weight: 600; color: #6b4e10; background: var(--c-gold-soft); padding: .3em .8em; border-radius: 99px; justify-self: start; }
.app__gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.app__gallery span { display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: .6em; border-radius: 5px; background: url("../img/general/ph-dark.svg") center / cover; color: #ede7da; font-family: var(--f-mono); font-size: .8em; }
.app__gallery span:nth-child(even) { background-image: url("../img/general/ph-warm.svg"); }
.app__timeline { position: relative; display: grid; gap: .9em; padding-left: 2em; }
.app__timeline::before { content: ""; position: absolute; left: .45em; top: .6em; bottom: .6em; width: 1px; background: #d6cfc1; }
.app__timeline div { position: relative; display: flex; flex-direction: column; gap: .6em; padding: 1em 1.2em; background: #fff; border: 1px solid #e7e2d8; border-radius: 5px; }
.app__timeline div::before { content: ""; position: absolute; left: -2em; top: 1.1em; width: .9em; height: .9em; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 3px #f6f4ef; }
.app__timeline span { display: block; width: 58%; height: .6em; border-radius: 99px; background: var(--c-stone); }
.app__plan {
  position: relative; aspect-ratio: 16 / 8.4;
  background-color: #fff; border: 1px solid #d6cfc1; border-radius: 5px;
  background-image: linear-gradient(#f0ece4 1px, transparent 1px), linear-gradient(90deg, #f0ece4 1px, transparent 1px);
  background-size: 2em 2em;
}
.app__plan i { position: absolute; border: 1.5px solid rgba(27, 27, 29, .25); border-radius: 2px; }
.app__plan .r1 { left: 4%; top: 6%; width: 34%; height: 44%; }
.app__plan .r2 { left: 40%; top: 6%; width: 56%; height: 44%; }
.app__plan .r3 { left: 4%; top: 54%; width: 58%; height: 40%; }
.app__plan .r4 { left: 64%; top: 54%; width: 32%; height: 40%; }
.app__plan b { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--c-graphite); color: var(--c-gold-light); font-size: .75em; font-weight: 600; box-shadow: 0 0 0 .4em rgba(201, 154, 46, .22); }
.app__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; }
.app__tiles div { display: flex; flex-direction: column; gap: .7em; padding: 1.2em; background: #fff; border: 1px solid #e7e2d8; border-radius: 5px; }
.app__tiles b { font-family: var(--f-display); font-size: 1.15em; margin-bottom: .4em; }
.app__tiles span { display: block; height: .6em; border-radius: 99px; background: var(--c-stone); }
.app__tiles span:last-child { width: 60%; }

.phone {
  container-type: inline-size;
  position: absolute; right: 0; bottom: 0; width: 23%; aspect-ratio: 9 / 18.5;
  padding: 5px; background: #0b0b0c; border: 1px solid #3a3a3f; border-radius: clamp(14px, 2.6vw, 26px);
  box-shadow: var(--sh-lg);
}
.papp {
  height: 100%; display: flex; flex-direction: column; gap: .8em;
  padding: 0 1.1em 1.2em; overflow: hidden;
  background: #f6f4ef; color: var(--c-graphite); border-radius: clamp(10px, 2.2vw, 21px);
  font-size: 9px; font-size: 6.2cqi; line-height: 1.3;
}
.papp__top { display: flex; align-items: center; gap: .5em; margin: 0 -1.1em .2em; padding: 2.4em 1.1em .9em; background: var(--c-graphite); color: var(--c-on-dark); font-weight: 600; }
.papp__card { display: flex; flex-direction: column; gap: .5em; padding: 1em; background: #fff; border: 1px solid #e7e2d8; border-top: 2px solid var(--c-gold); border-radius: 6px; }
.papp__card b { font-family: var(--f-display); font-size: 1.05em; }
.papp__card span, .papp__row span { display: block; height: .55em; border-radius: 99px; background: var(--c-stone); }
.papp__card span + span { width: 64%; }
.papp__row { display: flex; align-items: center; gap: .6em; padding: .7em; background: #fff; border: 1px solid #e7e2d8; border-radius: 5px; }
.papp__row i { width: 1.8em; height: 1.8em; flex: none; border-radius: 4px; background: var(--c-gold-soft); }
.papp__row span { flex: 1; }
.papp__btn { margin-top: auto; padding: .9em; border-radius: 6px; background: var(--c-gold); color: var(--c-ink); font-weight: 600; text-align: center; }
.devices__tag { left: 4%; bottom: 0; }

/* Metodología */
.steps-wrap { position: relative; }
.steps__track { position: absolute; left: 25px; top: 26px; bottom: 26px; width: 1px; background: var(--c-line); }
.steps__fill { position: absolute; inset: 0; background: var(--c-gold); transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease); }
.steps-wrap.is-in .steps__fill, .no-js .steps__fill { transform: none; }
.steps { display: grid; gap: 36px; position: relative; }
.step { position: relative; padding-left: 76px; }
.step__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-paper); border: 1px solid var(--c-line); color: var(--c-gold-deep);
  transition: background-color .4s, color .4s, border-color .4s, transform .4s var(--ease);
}
.step__num .icon { width: 22px; height: 22px; }
.step__index { display: block; margin-bottom: 6px; padding-top: 4px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; color: var(--c-gold-deep); }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--c-muted); font-size: .975rem; max-width: 34ch; }
.step:hover .step__num { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-gold-light); transform: scale(1.06); }

/* Equipo */
.team { display: grid; background: var(--c-graphite); color: var(--c-on-dark); }
.team__media .media { aspect-ratio: 4 / 3; border-radius: 0; height: 100%; }
.media__img--team { object-position: 50% 32%; }
.team__content { padding: var(--s-section) var(--gutter); max-width: 680px; }
.team .h2 { color: var(--c-on-dark); margin-bottom: 1.5rem; }
.team .lead { color: var(--c-on-dark-muted); }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.75rem 0 2.5rem; }
.roles li { padding: .45em .9em; border: 1px solid var(--c-line-dark); border-radius: 999px; font-size: .9rem; color: var(--c-on-dark); }
.quote { position: relative; margin-bottom: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--c-line-dark); }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--f-display); font-stretch: 108%; font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; color: var(--c-gold-light);
}
.quote p::before { content: "“"; margin-right: .08em; }
.quote p::after { content: "”"; margin-left: .04em; }
.quote figcaption { margin-top: .75rem; font-size: .875rem; color: var(--c-on-dark-muted); }

/* Contacto */
.contact__grid { display: grid; gap: 56px; align-items: center; }
.contact__content .h2 { margin-bottom: 1.5rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.form-card { padding: clamp(24px, 3.5vw, 40px); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.form-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.form-card__head h3 { font-size: 1.35rem; }
.form-card__badge { padding: .35em .8em; border-radius: 999px; background: var(--c-gold-soft); color: #6b4e10; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--c-ink); }
.field label span { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fbfaf7;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--c-muted) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cbc4b6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-gold); background: #fff; box-shadow: 0 0 0 3px rgba(201, 154, 46, .2); }
.form-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form-card__note { font-size: .8125rem; color: var(--c-muted); max-width: 34ch; }
.form-card__note.is-flash { animation: flash 1.2s var(--ease); }

/* 8. Footer ------------------------------------------------ */
.site-footer { background: var(--c-black); color: var(--c-on-dark-muted); padding-top: clamp(64px, 8vw, 104px); position: relative; overflow: clip; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, rgba(201, 154, 46, 0), var(--c-gold), rgba(201, 154, 46, 0)); }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.footer-top { display: grid; gap: 56px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-brand { display: grid; gap: 18px; justify-items: start; max-width: 440px; }
.footer-brand__logo img { height: 64px; width: auto; }
.footer-brand__motto { font-family: var(--f-display); font-stretch: 108%; font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--c-gold-light); }
.footer-brand__text { font-size: .975rem; margin-bottom: 6px; }
.footer-cols { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-cols > :last-child { grid-column: 1 / -1; }
.footer-col__title { margin-bottom: 18px; font-family: var(--f-text); font-stretch: 100%; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--c-on-dark); }
.footer-col ul:not(.social) { display: grid; gap: 4px; }
.footer-col ul:not(.social) a { display: inline-flex; align-items: center; min-height: 40px; color: var(--c-on-dark-muted); transition: color .2s, transform .3s var(--ease); }
.footer-col ul:not(.social) a::before { content: ""; width: 0; height: 1px; margin-right: 0; background: var(--c-gold-light); transition: width .3s var(--ease), margin .3s var(--ease); }
.footer-col ul:not(.social) a:hover { color: var(--c-on-dark); }
.footer-col ul:not(.social) a:hover::before { width: 14px; margin-right: 8px; }
.footer-col .social { margin-top: 16px; }
.footer-col ul.footer-contact a::before { display: none; }
.footer-col ul.footer-contact a { gap: 10px; white-space: nowrap; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--c-gold-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.footer-legal { display: grid; justify-items: center; text-align: center; gap: 4px 24px; padding-block: 22px 28px; border-top: 1px solid var(--c-line-dark); font-size: .875rem; }
.footer-legal a { color: var(--c-on-dark-muted); min-height: 40px; display: inline-flex; align-items: center; }
.footer-legal a:hover { color: var(--c-gold-light); }
.footer-credit { display: flex; align-items: center; gap: 8px; min-height: 40px; color: #9d988e; }
.footer-credit .icon { width: 16px; height: 16px; color: var(--c-gold); }
.site-footer .footer-credit a { color: var(--c-gold-light); text-decoration: none; transition: color .2s; }
.site-footer .footer-credit a:hover { color: var(--c-on-dark); }

