/* Improve-It · hoja de estilos
   Marca: negro, verde, paneles blancos sobre gris claro, titulares condensados. */

@font-face { font-family: "Anton"; src: url("../fonts/anton.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff") format("woff"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --ground: #EDEDEA;
  --panel: #FFFFFF;
  --panel-2: #F4F4F1;
  --ink: #0B0B0B;
  --ink-2: #45473F;
  --green: #437A1D;        /* texto verde: 4.6:1 sobre blanco */
  --green-field: #BDE896;
  --green-soft: #E3F5D2;
  --on-dark: #F4F4F1;
  --on-dark-2: #B9BBB2;

  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;

  --m: clamp(16px, 2.2vw, 28px);          /* margen exterior */
  --pad: clamp(24px, 5vw, 80px);          /* relleno de panel */
  --r: clamp(24px, 3vw, 40px);            /* radio de panel */
  --gap: clamp(12px, 1.6vw, 20px);        /* espacio entre paneles */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green-field); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(42px, 6vw, 92px); line-height: .92; letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--green); }
.display--sm { font-size: clamp(34px, 3.6vw, 56px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }

/* ---------- Estructura ---------- */
main { display: grid; gap: var(--gap); padding-left: max(var(--m), env(safe-area-inset-left, 0px)); padding-right: max(var(--m), env(safe-area-inset-right, 0px)); }
main > *, .tabs__panel > *, .hero > *, .tabs > *, .change > *, .contact__grid > *, .section-head > * { min-width: 0; }
.panel { background: var(--panel); border-radius: var(--r); padding: var(--pad); }
.panel--dark { background: var(--ink); color: var(--on-dark); }
.section-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.section-head .lead { justify-self: end; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 8px 10px 8px 26px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--on-dark); font-weight: 600; font-size: 17px; text-decoration: none;
  cursor: pointer; transition: transform .18s var(--ease-out), background-color .18s;
}
.btn__arrow {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green-field); flex: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E");
  background-size: 18px; background-repeat: no-repeat; background-position: center;
  transition: transform .25s var(--ease-out);
}
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--panel); color: var(--ink); }
.btn--light .btn__arrow { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; }
.link:hover { color: var(--green); }

/* ---------- Barra ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 24px;
  margin: 0 0 var(--gap); padding-left: max(calc(var(--m) + 12px), env(safe-area-inset-left, 0px)); padding-right: max(calc(var(--m) + 12px), env(safe-area-inset-right, 0px));
  background: var(--ink); color: var(--on-dark);
}
.brand { display: flex; align-items: center; flex: none; padding: 6px 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--on-dark-2); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--on-dark); background: #232421; }
.bar__cta { min-height: 48px; font-size: 15px; padding-left: 20px; }
.bar__cta .btn__arrow { width: 32px; height: 32px; }
.bar__toggle { display: none; }
.nav .nav__cta { display: none; }
@media (min-width: 1101px) {
  .bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { margin: 0; justify-self: center; }
  .bar__cta { justify-self: end; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav { flex: 1; justify-content: center; margin: 0; }
}

/* ---------- Hero (portada por capas) ----------
   Capas: fondo de luces difusas > logo 3D flotante > conversación > círculos desenfocados en primer plano.
   El parallax (JS, solo escritorio con ratón) mueve cada .layer con --dx/--dy (ratón) y --k (scroll). */
.hero {
  --mx: 0; --my: 0; --sy: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center;
  min-height: clamp(540px, calc(100svh - var(--bar-h) - 56px), 760px);
  padding-block: clamp(32px, 4.2vw, 60px);
}
.hero > * { min-width: 0; }
.layer { transform: translate3d(calc(var(--mx, 0) * var(--dx, 0) * 1px), calc(var(--my, 0) * var(--dy, 0) * 1px + var(--sy, 0) * var(--k, 0) * 1px), 0); }
.hero.is-parallax .layer { will-change: transform; }

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.orb--a { width: clamp(380px, 48vw, 780px); aspect-ratio: 1; right: -10%; top: -26%; }
.orb--a i { background: radial-gradient(circle, rgba(189, 232, 150, .5), rgba(189, 232, 150, 0) 68%); animation: drift-a 22s ease-in-out infinite alternate; } /* taste-skill-ignore: degradado/sombra pedidos expresamente para la portada */
.orb--b { width: clamp(340px, 42vw, 680px); aspect-ratio: 1; left: -14%; bottom: -40%; }
.orb--b i { background: radial-gradient(circle, rgba(67, 122, 29, .8), rgba(67, 122, 29, 0) 68%); animation: drift-b 27s ease-in-out infinite alternate; } /* taste-skill-ignore: degradado/sombra pedidos expresamente para la portada */
.orb--c { width: clamp(240px, 30vw, 480px); aspect-ratio: 1; left: 36%; top: 34%; }
.orb--c i { background: radial-gradient(circle, rgba(227, 245, 210, .11), rgba(227, 245, 210, 0) 68%); animation: drift-c 31s ease-in-out infinite alternate; } /* taste-skill-ignore: degradado/sombra pedidos expresamente para la portada */
@keyframes drift-a { to { transform: translate3d(-9%, 12%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(14%, -10%, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-12%, 8%, 0) scale(.88); } }

.hero__copy { position: relative; z-index: 2; }
.hero .display { font-size: clamp(40px, 6.2vw, 108px); color: var(--on-dark); }
.hero .display em { color: var(--green-field); }
.display .line { display: block; }
.hero .w { display: inline-block; animation: word-in .9s var(--ease-out) calc(var(--i) * 110ms + 150ms) backwards; }
@keyframes word-in { from { opacity: 0; transform: translate3d(0, .45em, 0) scale(.96); filter: blur(10px); } }
.hero .lead { margin-top: 36px; color: var(--on-dark); animation: fade-up .9s var(--ease-out) .65s backwards; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; animation: fade-up .9s var(--ease-out) .85s backwards; }
.hero .link { color: var(--on-dark); }
.hero .link:hover { color: var(--green-field); }
.hero :focus-visible { outline-color: var(--green-field); }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 24px, 0); } }

/* Botón principal: verde de marca, grande, con un halo que late */
.btn--hero { position: relative; min-height: 64px; padding: 10px 12px 10px 32px; font-size: 19px; background: var(--green-field); color: var(--ink); }
.btn--hero:hover { background: #CDF0AC; }
.btn--hero .btn__arrow { width: 44px; height: 44px; background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); background-size: 20px; }
.btn--hero::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--green-field); opacity: 0; pointer-events: none; animation: ping 2.8s var(--ease-out) 2.6s infinite; }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.16, 1.5); } }

/* Logo plano: se dibuja al cargar y flota suavemente */
.hero__visual { position: relative; z-index: 2; display: grid; }
.hero__logo { position: absolute; z-index: 1; top: -2%; right: -1%; width: clamp(230px, 23vw, 340px); }
.logo-flat { position: relative; aspect-ratio: 1; }
.logo-flat__float { position: absolute; inset: 0; animation: float 8s ease-in-out 2.4s infinite alternate; }
@keyframes float { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(0, -14px, 0) rotate(-2.2deg); } }
.mk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mk--main { animation: pop 1.2s var(--ease-out) .1s backwards; } /* taste-skill-ignore: degradado/sombra pedidos expresamente para la portada */
.m-ring { animation: draw 1.15s var(--ease-out) .2s backwards; }
.m-m { animation: draw 1s var(--ease-out) 1s backwards; }
.m-arrow { animation: draw .6s var(--ease-out) 1.75s backwards; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.88); } }

.hero__demo-layer { position: relative; z-index: 2; width: min(100%, 420px); margin-top: clamp(160px, 16.5vw, 236px); }
.hero__demo { margin: 0; background: var(--green-field); border-radius: calc(var(--r) - 8px); padding: clamp(20px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 18px; color: var(--ink);
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 90px rgba(189, 232, 150, .16); animation: rise-in 1.1s var(--ease-out) .9s backwards; } /* taste-skill-ignore: degradado/sombra pedidos expresamente para la portada */
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 44px, 0); } }
.hero__demo figcaption { font-size: 15px; color: #26401A; max-width: 34ch; }
.hero .chat__log { min-height: 176px; }

/* Chat (fragmento de interfaz) */
.chat { background: #F2F2EE; border-radius: 22px; overflow: hidden; }
.chat__head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--ink); color: var(--on-dark); }
.chat__head strong { display: block; font-size: 15px; }
.chat__head small { color: var(--on-dark-2); font-size: 15px; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-field); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.chat__log { display: grid; gap: 10px; padding: 18px 16px 8px; min-height: 230px; align-content: start; }
.msg { max-width: 82%; padding: 10px 14px 8px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.msg time { display: block; text-align: right; font-size: 15px; color: #4E5148; margin-top: 2px; }
.msg--in { background: #FFF; border-bottom-left-radius: 4px; }
.msg--out { background: #D8F2BF; justify-self: end; border-bottom-right-radius: 4px; }
.msg--typing p { letter-spacing: .2em; }
.chat__slots { display: flex; gap: 8px; padding: 8px 16px 18px; flex-wrap: wrap; }
.slot { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, transform .15s var(--ease-out); }
.slot:hover { background: var(--ink); color: var(--on-dark); }
.slot:active { transform: scale(.95); }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.slot:disabled { opacity: .45; cursor: default; }

/* ---------- Antes / después ---------- */
.change { display: grid; gap: clamp(40px, 6vw, 88px); }
.change__intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px 64px; align-items: end; }
.change__intro .lead { justify-self: end; }
.change__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: 0; }
.change__col { border-radius: calc(var(--r) - 10px); padding: clamp(26px, 3.2vw, 48px); }
.change__col h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; margin-bottom: 20px; }
.change__col li { position: relative; display: flex; align-items: center; min-height: 72px; margin-top: 10px; padding: 14px 20px 14px 66px; border-radius: 18px; background: var(--row); }
.change__col li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 18px; }
/* Antes: apagado, gris, con cruces */
.change__col--before { --row: rgba(255, 255, 255, .45); background: #DEDFD8; color: #6A6D63; }
.change__col--before h3 { font-size: clamp(30px, 2.8vw, 44px); color: #7B7F73; }
.change__col--before li { font-size: 18px; }
.change__col--before li::before { border: 2px solid #A9ABA1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B7F73' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E"); }
/* Después: negro con borde verde, texto grande y checks de marca */
.change__col--after { --row: #2A2C27; background: var(--ink); color: var(--on-dark); outline: 3px solid var(--green-field); outline-offset: -3px; }
.change__col--after h3 { font-size: clamp(36px, 3.6vw, 58px); color: var(--green-field); }
.change__col--after li { font-size: clamp(19px, 1.5vw, 22px); font-weight: 700; color: #fff; }
.change__col--after li::before { width: 32px; height: 32px; background-color: var(--green-field); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
/* Flecha de transformación entre las dos columnas */
.change__arrow { position: absolute; z-index: 2; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--green-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5l7 7-7 7'/%3E%3C/svg%3E") center / 30px no-repeat; border: 7px solid var(--panel); }
/* En escritorio las filas de las dos columnas quedan emparejadas y a la misma altura */
@media (min-width: 901px) {
  @supports (grid-template-rows: subgrid) {
    .change__col { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
    .change__col ul { display: contents; }
  }
}

/* ---------- Listas con check ---------- */
.checks li { position: relative; padding: 8px 0 8px 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23437A1D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.nots { margin-top: 6px; }
.nots li { position: relative; padding: 6px 0 6px 36px; color: #6B6E64; font-size: 15px; }
.nots li::before { content: ""; position: absolute; left: 6px; top: 17px; width: 12px; height: 2px; background: #9A9C93; }

/* ---------- Servicios ---------- */
.tabs { display: grid; grid-template-columns: minmax(220px, .55fr) 2fr; gap: var(--gap); }
.tabs__list { display: flex; flex-direction: column; gap: 10px; }
.tabs__list [role="tab"] {
  text-align: left; min-height: 72px; padding: 0 28px; border-radius: 22px; border: 0;
  background: var(--panel-2); font-size: 20px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.tabs__list [role="tab"]:hover { background: #E8E8E3; }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--on-dark); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); background: var(--panel-2); border-radius: calc(var(--r) - 8px); padding: clamp(24px, 4vw, 56px); align-items: center; }
.tabs__panel[hidden] { display: none; }
.svc__text h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 54px); line-height: .95; }
.svc__text > p { margin: 20px 0 22px; color: var(--ink-2); }
.svc__demo { background: var(--ink); border-radius: 22px; padding: clamp(14px, 2vw, 22px); min-height: 360px; display: flex; flex-direction: column; justify-content: center; }

.site { background: #FFF; border-radius: 14px; overflow: hidden; font-size: 15px; }
.site__bar { display: flex; gap: 14px; align-items: center; padding: 12px 16px; }
.site__bar b { font-family: var(--display); font-weight: 400; font-size: 17px; text-transform: uppercase; margin-right: auto; }
.site__hero i { font-style: normal; background: var(--ink); color: #FFF; padding: 6px 12px; border-radius: 999px; }
.site__hero { background: var(--ink); color: #FFF; margin: 0 10px; border-radius: 12px; padding: 26px 18px; display: grid; gap: 12px; justify-items: start; }
.site__hero small { color: var(--green-field); }
.site__hero strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: .95; }
.site__hero strong span { color: var(--green-field); }
.site__hero i { background: var(--green-field); color: var(--ink); }
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.site__cards span { background: #F2F2EE; border-radius: 10px; padding: 12px; font-weight: 600; }
.site__cards small { font-weight: 400; color: #5E6158; font-size: 13px; }

.mini-chat { display: grid; gap: 10px; }
.mini-chat p { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.mini-chat .in { background: #FFF; color: var(--ink); border-bottom-left-radius: 4px; }
.mini-chat .out { background: #D8F2BF; color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }

.cal { background: #FFF; border-radius: 14px; padding: 18px; font-size: 15px; }
.cal__head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.cal__head i { font-style: normal; font-size: 15px; background: #FFF1C2; padding: 4px 10px; border-radius: 999px; }
.cal li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 12px; background: #F2F2EE; border-radius: 10px; margin-top: 6px; }
.cal li span { font-weight: 700; }
.cal__ok { margin-top: 14px; text-align: center; background: var(--ink); color: #FFF; border-radius: 999px; padding: 10px; font-weight: 600; }


.flow { display: grid; gap: 10px; counter-reset: f; }
.flow li { background: #FFF; border-radius: 14px; padding: 16px 18px 16px 58px; position: relative; display: grid; gap: 2px; font-size: 15px; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--green-field); display: grid; place-items: center; font-weight: 700; }
.flow span { color: #5E6158; }
.svc__cap { margin-top: 14px; font-size: 15px; color: var(--on-dark-2); }

.nudge { margin-top: var(--gap); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; background: var(--green-field); border-radius: calc(var(--r) - 8px); padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px); }
.nudge p { font-size: clamp(18px, 1.6vw, 22px); max-width: 52ch; }
.nudge--soft { background: var(--panel-2); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { border-radius: calc(var(--r) - 10px); padding: clamp(24px, 2.6vw, 36px); background: var(--panel-2); }
.step:first-child { background: var(--green-field); }
.step__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font-family: var(--display); font-size: 24px; margin-bottom: 40px; }
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 2.4vw, 40px); line-height: 1; margin-bottom: 14px; }
.step p { color: var(--ink-2); }

/* ---------- Packs ---------- */
.packs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.pack { display: flex; flex-direction: column; gap: 18px; background: var(--panel-2); border-radius: calc(var(--r) - 8px); padding: clamp(28px, 3vw, 44px); position: relative; }
.pack h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(42px, 4vw, 64px); line-height: .95; }
.pack__for { color: var(--ink-2); }
.pack__price { display: flex; align-items: baseline; gap: 8px; }
.pack__for { padding-bottom: 22px; border-bottom: 2px solid #E2E2DC; }
.pack__price b { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 5vw, 80px); line-height: 1; }
.pack__price small { font-size: 15px; color: var(--ink-2); }
.pack .checks { flex: 1; }
.pack--featured { background: var(--ink); color: var(--on-dark); }
.pack--featured .pack__for, .pack--featured .pack__price small { color: var(--on-dark-2); }
.pack--featured .pack__for { border-color: #2C2D29; }
.pack--featured .pack__price b { color: var(--green-field); }
.pack--featured .checks li::before { background-color: var(--green-field); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.pack--featured .nots li { color: #9A9C93; }
.pack__rec { color: var(--green-field); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: var(--gap); }
.contact__head { text-align: center; display: grid; justify-items: center; gap: 28px; background: var(--green-field); }
.contact__head em { color: var(--ink); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .08em; }
.contact__head .lead { color: #1F3313; max-width: 46ch; }
.contact__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); }
.form h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 54px); line-height: .95; }
.form__sub { margin: 14px 0 32px; color: var(--ink-2); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.form__wide { grid-column: 1 / -1; }
.opt { font-weight: 400; color: #6B6E64; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 16px;
  border: 2px solid #E2E2DC; background: #FAFAF8; font-weight: 400; font-size: 17px;
  transition: border-color .15s, background-color .15s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); background: #FFF; }
.form [aria-invalid="true"] { border-color: #B3261E !important; }
.form ::placeholder { color: #66695F; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; font-weight: 400 !important; margin: 24px 0; }
.check input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form__error { color: #B3261E; font-weight: 600; margin-bottom: 16px; }
.form__ok { margin-top: 18px; background: var(--green-soft); padding: 14px 18px; border-radius: 14px; }
.direct { display: flex; flex-direction: column; gap: 14px; }
.direct h3 { margin-bottom: 18px; }
.direct__item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: #1A1B18; text-decoration: none; font-size: 17px; transition: background-color .15s; overflow-wrap: anywhere; }
.direct__item:hover { background: #262723; }
.direct__item small { display: block; color: var(--on-dark-2); font-size: 15px; }
.ico { width: 52px; height: 52px; border-radius: 50%; background: var(--green-field) center / 24px no-repeat; flex: none; }
.ico--mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.ico--wa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-3.9A8 8 0 1 1 8 19z'/%3E%3C/svg%3E"); }
.ico--ig { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6' fill='%230B0B0B'/%3E%3C/svg%3E"); }
.direct__note { margin-top: auto; padding-top: 24px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }

/* ---------- Pie ---------- */
.foot { margin: var(--gap) max(var(--m), env(safe-area-inset-right, 0px)) var(--m) max(var(--m), env(safe-area-inset-left, 0px)); background: var(--ink); color: var(--on-dark); border-radius: var(--r); padding: var(--pad) var(--pad) 28px; overflow: hidden; }
.foot__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__claim { max-width: 36ch; font-size: 20px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 520px; }
.foot__links a { color: var(--on-dark-2); text-decoration: none; padding: 4px 0; }
.foot__links a:hover { color: var(--green-field); }
.foot__name { font-family: var(--display); font-size: clamp(64px, 18.4vw, 330px); line-height: .9; letter-spacing: -0.01em; color: var(--green-field); margin: clamp(40px, 6vw, 80px) 0 20px; white-space: nowrap; }
.foot__small { color: var(--on-dark-2); font-size: 15px; }

/* ---------- Entradas ---------- */
/* El contenido es visible por defecto; solo se anima al entrar en pantalla. */
.reveal.is-in { animation: rise .7s var(--ease-out) var(--d, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.tabs__panel.is-swap { animation: swap .45s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg.is-new { animation: pop .35s var(--ease-out); transform-origin: bottom left; }
.msg--out.is-new { transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .hero *::after { animation: none !important; }
  .layer { transform: none; }
  html { scroll-behavior: auto; }
  .reveal.is-in { animation: none; }
  .tabs__panel.is-swap, .msg.is-new { animation: none; }
  .btn, .btn__arrow, .slot { transition: none; }
}

/* ---------- Páginas de servicio y lista de precios ---------- */
.svchead { display: grid; gap: 8px; justify-items: start; }
.svchead .section-head { width: 100%; margin-bottom: clamp(24px, 3vw, 40px); }
.svchead .lead { color: var(--ink); }
.svchead .link { margin-top: 12px; }
@media (max-width: 1100px) { .svchead .lead { max-width: none; } }
.pagenav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pagenav a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--panel-2); font-size: 17px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.pagenav a:hover { background: #E8E8E3; }
.pagenav a[aria-current="page"] { background: var(--ink); color: var(--on-dark); }
.pack__fee { margin-top: -10px; color: var(--ink-2); font-weight: 600; }
.pack .checks + .btn { margin-top: auto; }
.plist { flex: 1; display: grid; align-content: start; }
.plist div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 2px solid #E2E2DC; }
.plist div:last-child { border-bottom: 0; }
.plist dt { font-weight: 600; }
.plist dd { margin: 0; color: var(--ink-2); white-space: nowrap; }
.panel > .nudge:only-child { margin-top: 0; }
.pack__fee:empty { margin: 0; }
.packs__grid.packs__grid--wide { max-width: none; }
/* En escritorio las tres tarjetas comparten filas: título, precio, texto, lista y botón quedan alineados */
@media (min-width: 1101px) {
  @supports (grid-template-rows: subgrid) {
    .packs__grid .pack { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 18px; align-content: start; }
  }
}

/* ---------- Quiénes somos: cómo trabajamos ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.how li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 28px 12px; align-content: space-between; min-height: 232px; padding: clamp(22px, 2.4vw, 32px); border-radius: calc(var(--r) - 10px); background: var(--panel-2); }
.how li:last-child { background: var(--green-field); }
.how__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--green-field); }
.how__n { justify-self: end; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid currentColor; font: 700 16px/1 var(--text); color: var(--green); }
.how li:last-child .how__n { color: var(--ink); }
.how h3 { grid-column: 1 / -1; align-self: end; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; text-wrap: balance; }
.how li:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 50%; right: calc(var(--gap) / -2 - 16px); width: 32px; height: 32px; transform: translateY(-50%); border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BDE896' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- Logo: marca de agua, separador y pie ---------- */
.panel--wm { position: relative; overflow: hidden; }
.panel--wm > * { position: relative; z-index: 1; }
.panel--wm::after { content: ""; position: absolute; z-index: 0; top: clamp(16px, 3vw, 40px); right: clamp(16px, 4vw, 64px); width: clamp(180px, 24vw, 340px); aspect-ratio: 1; background: url("../img/logo-icono-claro.svg") center / contain no-repeat; opacity: .07; pointer-events: none; }
.brandline { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin-bottom: clamp(28px, 4vw, 56px); }
.brandline span { flex: 1; height: 2px; background: #E2E2DC; }
.brandline img { width: 48px; height: 48px; flex: none; }
.foot__logo { display: inline-block; margin-bottom: clamp(32px, 4vw, 52px); }
.foot__logo img { height: 40px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 10px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { display: contents; }
  .hero__logo { position: relative; top: auto; right: auto; order: -1; width: clamp(112px, 22vw, 168px); }
  .hero__demo-layer { margin-top: 0; width: min(100%, 520px); }
  .how { grid-template-columns: 1fr 1fr; }
  .how li:not(:last-child)::after { display: none; }
  .change__intro { grid-template-columns: 1fr; }
  .change__intro .lead { justify-self: start; }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; flex-wrap: wrap; }
  .tabs__list [role="tab"] { min-height: 52px; padding: 0 20px; white-space: nowrap; font-size: 17px; border-radius: 999px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .packs__grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  .change__grid { grid-template-columns: 1fr; row-gap: 0; }
  .change__arrow { position: relative; left: auto; top: auto; justify-self: center; width: 60px; height: 60px; margin: -16px 0; transform: rotate(90deg); }
  .bar { padding-left: max(calc(var(--m) + 4px), env(safe-area-inset-left, 0px)); padding-right: max(var(--m), env(safe-area-inset-right, 0px)); gap: 12px; }
  .bar__cta { display: none; }
  .bar__toggle { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #232421; cursor: pointer; }
  .bar__toggle span { display: block; width: 20px; height: 2px; background: var(--on-dark); transition: transform .25s var(--ease-out); }
  .bar__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .bar__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .js .nav { position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px max(var(--m), env(safe-area-inset-right, 0px)) 20px max(var(--m), env(safe-area-inset-left, 0px)); background: var(--ink); display: none; }
  .js .nav.is-open { display: flex; }
  .nav a { font-size: 20px; padding: 14px 8px; color: var(--on-dark); }
  .nav { flex-wrap: wrap; }
  .js .nav .nav__cta { display: inline-flex; justify-content: space-between; margin-top: 14px; padding: 8px 10px 8px 24px; font-size: 17px; color: var(--ink); background: var(--panel); }
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .tabs__panel { grid-template-columns: 1fr; }
  .svc__demo { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand img { height: 28px; }
  .hero .display { font-size: clamp(38px, 11vw, 72px); }
  .hero { gap: 28px; }
  .hero__logo { width: clamp(92px, 26vw, 116px); }
  .orb--c { display: none; }
  .orb--a { width: 420px; right: -30%; top: -12%; }
  .orb--b { width: 380px; left: -34%; bottom: -26%; }
  .btn--hero { min-height: 60px; font-size: 17px; padding-left: 22px; }
  .how { grid-template-columns: 1fr; }
  .how li { min-height: 0; gap: 18px 12px; }
  .how__ic { width: 52px; height: 52px; }
  html:not(.js) .bar { height: auto; flex-wrap: wrap; padding-block: 10px; }
  .steps { grid-template-columns: 1fr; }
  .step__n { margin-bottom: 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .nudge .btn { width: 100%; }
  .site__cards { grid-template-columns: 1fr 1fr; }
  .site__cards span:last-child { display: none; }
  .site__bar span { display: none; }
  .tabs__panel { background: none; padding: 8px 0 0; gap: 24px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 22px 20px; }
  .step__n { width: 44px; height: 44px; margin: 0; font-size: 20px; }
  .step h3 { margin: 0; }
  .step p { grid-column: 1 / -1; margin-top: 12px; }
  .change__col, .pack { padding: 24px 20px; }
  .foot__links { gap: 0 22px; }
  .foot__links a { padding: 11px 0; }
}

.how__tail { display: block; margin-top: 6px; font-family: var(--text); font-weight: 600; font-size: .5em; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.svc__sub { display: block; margin: 10px 0 0; line-height: 1.2; font-family: var(--text); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.faq__list { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: 18px; background: var(--panel-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--green-field); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { background: var(--green-soft); }
.faq details p { max-width: 62ch; padding: 0 24px 22px; color: var(--ink-2); }
.faq summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 18px; }

/* Botones de las tarjetas de precios: tamaño contenido y pegados abajo */
.pack .btn--block { align-self: end; min-height: 48px; padding: 5px 7px 5px 22px; font-size: 16px; }
.pack .btn--block .btn__arrow { width: 34px; height: 34px; background-size: 16px; }
