  :root {
    --bg: #dcebd8;
    --ink: #380e34;
    --plum: #254a4e;
    --violet: #972855;
    --lilac: #c2dcbe;
    --lime: #95b995;
    --coral: #bf562c;
    --muted: #5c4a5a;
    --line: rgba(56, 14, 52, .16);
    --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Playfair Display", Georgia, serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
  h1, h2, h3 { font-weight: 300; letter-spacing: .05em; text-transform: uppercase; line-height: 1.08; margin: 0; }
  h2 { font-size: clamp(1.45rem, 2.9vw, 2.4rem); }
  em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--violet); }
  .card.c1 em, .card.c2 em { color: var(--lime); }
  .card.c4 em { color: var(--lime); }
  .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: blink 1.8s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: .25; } }

  /* Botones */
  .btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 999px; font: 500 1rem var(--sans); text-decoration: none; border: 1px solid var(--ink); cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s; }
  .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
  .btn:hover::before { transform: none; }
  .btn-dark { background: var(--ink); color: var(--bg); }
  .btn-dark::before { background: var(--violet); }
  .btn-dark:hover { border-color: var(--violet); }
  .btn-line::before { background: var(--ink); }
  .btn-line:hover { color: var(--bg); }
  .btn-sage { background: var(--lime); color: var(--ink); border-color: var(--lime); }
  .btn-sage::before { background: #fff; }
  .btn-sage:hover { color: var(--ink); border-color: #fff; }
  .btn-magenta { background: var(--violet); color: var(--bg); border-color: var(--violet); }
  .btn-magenta::before { background: #fff; }
  .btn-magenta:hover { color: var(--ink); border-color: #fff; }
  .btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
  .btn-lime::before { background: #fff; }
  .btn svg { width: 18px; height: 18px; fill: currentColor; }
  .btn .arrow { transition: transform .35s var(--ease); }
  .btn:hover .arrow { transform: translate(3px, -3px); }

  /* Navegación */
  .nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; }
  .nav .bar { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 10px 0 20px; background: rgba(220, 235, 216, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 999px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; font-size: .88rem; }
  .brand i { width: 30px; height: 42px; background: url(logo-transparente.png) -21px -2px / 72px no-repeat; }
  .nav-links { display: flex; align-items: center; gap: 30px; }
  .nav-links a:not(.btn) { font-size: .95rem; text-decoration: none; position: relative; }
  .nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-links .btn { padding: 11px 22px; font-size: .92rem; }

  /* Menú desplegable para tablet y celular */
  .nav .bar { position: relative; }
  .menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-btn span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
  .bar.open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .bar.open .menu-btn span:nth-child(2) { opacity: 0; }
  .bar.open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .menu-panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px 24px; background: rgba(220, 235, 216, .97); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 40px rgba(56, 14, 52, .16); }
  .menu-panel a { display: block; padding: 15px 0; font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid var(--line); }
  .menu-panel a:last-child { border-bottom: 0; }
  @media (max-width: 900px) {
    .nav-links { gap: 10px; }
    .nav-links a:not(.btn) { display: none; }
    .menu-btn { display: flex; }
    .bar.open .menu-panel { display: block; }
  }

  /* Hero */
  .hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 112px 0 32px; overflow: hidden; }
  .blobs { position: absolute; inset: 0; z-index: -2; filter: blur(90px); opacity: .5; }
  .blobs b { position: absolute; border-radius: 50%; }
  .blobs b:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: var(--lilac); animation: drift1 16s ease-in-out infinite alternate; }
  .blobs b:nth-child(2) { width: 38vw; height: 38vw; right: -6vw; top: 8vh; background: #b3d2ae; animation: drift2 19s ease-in-out infinite alternate; }
  .blobs b:nth-child(3) { width: 34vw; height: 34vw; left: 34vw; bottom: -14vw; background: #e9f3e5; animation: drift3 22s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform: translate(16vw, 12vh) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(-18vw, 16vh) scale(.85); } }
  @keyframes drift3 { to { transform: translate(-14vw, -18vh) scale(1.2); } }
  .hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgb(56, 14, 52) 0, rgba(56, 14, 52, .62) 34%, rgba(56, 14, 52, .22) 66%, rgba(56, 14, 52, 0) 100%); }
  .hero .wrap { width: 100%; position: relative; }
  #onda { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
  .hero h1 { font-size: clamp(1.7rem, min(4.3vw, 7.2vh), 4.6rem); line-height: 1.16; margin: 22px 0 0; width: fit-content; }
  .hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
  .hero h1 .ln > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
  .hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
  .hero h1 .ln:nth-child(3) > span { animation-delay: .24s; }
  .hero h1 .ln:nth-child(4) > span { animation-delay: .36s; }
  @keyframes rise { to { transform: none; } }
  .hero h1 em { color: var(--violet); }
  .hero-foot { max-width: 560px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
  .hero-foot p { margin: 0 0 22px; font-size: 1.12rem; max-width: 46ch; color: #3b2238; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; width: fit-content; }
  .badge { position: absolute; right: 120px; bottom: 0; width: 150px; height: 150px; display: grid; place-items: center; text-decoration: none; }
  .badge svg.ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
  .badge svg.ring text { font: 500 12.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; fill: var(--violet); }
  .badge span { width: 74px; height: 74px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 1.7rem; transition: transform .4s var(--ease), background .3s; }
  .badge:hover span { transform: scale(1.12) rotate(45deg); background: var(--violet); }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Cinta */
  .tape { background: var(--violet); color: var(--bg); overflow: hidden; white-space: nowrap; padding: 14px 0; margin: 30px 0; }
  .tape > div { display: inline-flex; align-items: center; animation: slide 30s linear infinite; }
  .tape span { font-size: clamp(1.05rem, 2.1vw, 1.7rem); font-weight: 300; letter-spacing: .08em; text-transform: uppercase; margin: 0 20px; }
  .tape span.alt { color: var(--lime); }
  .tape i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); flex: none; }
  @keyframes slide { to { transform: translateX(-50%); } }

  section { padding: 76px 0; }
  .head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
  .head p { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 42ch; justify-self: end; }
  .head .tag { margin-bottom: 22px; }
  .head.apilado { grid-template-columns: 1fr; gap: 22px; }
  .head.apilado p { justify-self: start; max-width: 68ch; }

  /* Servicios: tarjetas que se apilan al hacer scroll */
  .stack { display: grid; gap: 28px; }
  .card { position: sticky; top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; min-height: 480px; padding: 44px; border-radius: 34px; overflow: hidden; }
  .card:nth-child(2) { top: 116px; }
  .card:nth-child(3) { top: 136px; }
  .card:nth-child(4) { top: 156px; }
  .card.c1 { background: var(--violet); color: var(--bg); }
  .card.c2 { background: var(--plum); color: var(--bg); }
  .card.c3 { background: var(--lime); }
  .card.c4 { background: var(--ink); color: var(--bg); }
  .card .txt { display: flex; flex-direction: column; }
  .card .n { font: italic 500 1.6rem var(--serif); opacity: .75; }
  .card h3 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); margin: 10px 0 22px; }
  .card p { margin: 0; font-size: 1.1rem; max-width: 44ch; opacity: .82; }
  .card .mas { margin-top: auto; padding-top: 30px; }
  .card .ideal { font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin: 0 0 6px; max-width: none; }
  .card .lista { font-size: 1.1rem; margin: 0 0 24px; opacity: 1; }
  .card .pic { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; }
  .card .pic.sin-foto { display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, .55); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .1) 0 14px, transparent 14px 28px); }
  .card .pic.sin-foto span { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
  .card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .card:hover .pic img { transform: scale(1.07); }

  /* Trabajos: dos filas en movimiento */
  .work { padding-bottom: 40px; }
  .row { overflow: hidden; margin-bottom: 14px; }
  .row .track { display: flex; gap: 18px; width: max-content; animation: slide 74s linear infinite; }
  .row.rev .track { animation-name: slide-vuelta; animation-duration: 88s; }
  @keyframes slide-vuelta { from { transform: translateX(-50%); } to { transform: translateX(0); } }
  .row:hover .track { animation-play-state: paused; }
  .row figure { position: relative; margin: 0; height: clamp(180px, 31vh, 300px); flex: none; border-radius: 22px; overflow: hidden; }
  .row img { height: 100%; width: auto; max-width: none; transition: transform .8s var(--ease); }
  .row figure:hover img { transform: scale(1.06); }
  .row figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; background: var(--bg); font-size: .82rem; font-weight: 500; transform: translateY(160%); transition: transform .4s var(--ease); }
  .row figure:hover figcaption { transform: none; }

  /* Proceso */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .step { padding: 30px 26px 34px; border-radius: 26px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); transition: transform .45s var(--ease), background .35s, color .35s; }
  .step:hover { transform: translateY(-8px); background: var(--violet); color: #fff; }
  .step b { display: block; font: italic 500 3.6rem/1 var(--serif); color: var(--violet); margin-bottom: 44px; transition: color .35s; }
  .step:hover b { color: var(--lime); }
  .step h3 { font-size: 1.25rem; margin-bottom: 10px; }
  .step p { margin: 0; opacity: .75; }

  /* Cotización */
  .quote { position: relative; background: var(--plum); color: var(--bg); border-radius: 44px 44px 0 0; overflow: hidden; isolation: isolate; }
  .quote { padding-bottom: 150px; }
  .quote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 340px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--ink)); pointer-events: none; }
  .quote .glow { position: absolute; z-index: -1; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(120px); opacity: .5; background: var(--violet); left: -20vw; bottom: -30vw; animation: drift1 18s ease-in-out infinite alternate; }
  .quote .glow.g2 { background: var(--coral); left: auto; right: -25vw; top: -30vw; bottom: auto; opacity: .3; animation-name: drift2; }
  .quote .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
  .quote .tag { border-color: rgba(255, 255, 255, .25); margin-bottom: 22px; }
  .quote .tag::before { background: var(--lime); }
  .quote h2 em { color: var(--lime); }
  .quote .intro { font-size: 1.15rem; opacity: .75; margin: 24px 0 0; max-width: 40ch; }
  .contact { list-style: none; margin: 46px 0 0; padding: 0; }
  .contact li { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
  .contact small { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55; padding-top: 4px; }
  .contact a { text-decoration: none; font-size: 1.15rem; }
  .contact a:hover { color: var(--lime); }
  form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; padding: 40px; border-radius: 30px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
  form .full { grid-column: 1 / -1; }
  label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
  input, select, textarea { width: 100%; padding: 10px 0; font: 400 1.05rem var(--sans); color: var(--bg); background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); border-radius: 0; transition: border-color .3s; }
  input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .35); }
  select option { color: var(--ink); }
  input:focus, select:focus, textarea:focus { outline: 0; border-bottom-color: var(--lime); }
  textarea { min-height: 96px; resize: vertical; }
  form .btn { width: 100%; justify-content: center; }
  .form-msg { display: none; margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
  .form-msg.show { display: block; }
  .form-msg a { color: var(--lime); }

  /* Página Nosotros */
  .page-head { position: relative; padding: 150px 0 50px; overflow: hidden; }
  .page-head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgb(56, 14, 52) 0, rgba(56, 14, 52, .62) 34%, rgba(56, 14, 52, .22) 66%, rgba(56, 14, 52, 0) 100%); }
  .page-head h1 { font-size: clamp(2.2rem, 6vw, 5rem); margin: 22px 0 0; }
  .page-head .lead { font-size: 1.25rem; max-width: 52ch; margin: 28px 0 0; color: #3b2238; }
  .story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
  .story p { font-size: 1.12rem; margin: 0 0 20px; }
  .story-foto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 22px; margin-top: 34px; }
  .hitos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .hitos li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
  .hitos b { font: italic 500 2rem/1 var(--serif); color: var(--violet); }
  .hitos h3 { font-size: 1.05rem; letter-spacing: .1em; margin-bottom: 8px; }
  .hitos p { font-size: 1rem; margin: 0; opacity: .85; }
  .hitos { margin-top: 44px; }
  .story .sub { font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin: 0 0 8px; }
  .story p + .sub { margin-top: 30px; }
  .valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .valor { padding: 32px 28px 36px; border-radius: 26px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }
  .valor h3 { font-size: 1.35rem; margin-bottom: 12px; }
  .valor p { margin: 0; opacity: .8; }
  .pendiente { border: 1px dashed var(--violet); border-radius: 14px; padding: 16px 18px; background: rgba(151, 40, 85, .06); }
  .pendiente::before { content: "Texto por definir"; display: block; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); margin-bottom: 6px; }
  .cierre { text-align: center; padding: 50px 0 240px; background: linear-gradient(to bottom, rgba(56, 14, 52, 0) calc(100% - 270px), rgba(56, 14, 52, .06) calc(100% - 225px), rgba(56, 14, 52, .18) calc(100% - 180px), rgba(56, 14, 52, .38) calc(100% - 130px), rgba(56, 14, 52, .62) calc(100% - 85px), rgba(56, 14, 52, .84) calc(100% - 40px), rgb(56, 14, 52) 100%); }
  .cierre h2 { margin-bottom: 34px; }

  /* Pie */
  footer { position: relative; background: var(--ink); color: var(--bg); padding: 30px 0 34px; overflow: hidden; }
  footer .wrap { position: relative; }
  #onda-pie { position: absolute; inset: 0; width: 100%; height: 100%; }
  footer .big { font-size: clamp(2.2rem, 10.5vw, 11rem); font-weight: 300; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; margin: 0 0 30px; cursor: default; }
  footer .big span { display: inline-block; transform: translateY(calc(var(--p, 0) * -.16em)); color: var(--bg); color: color-mix(in srgb, var(--lime) calc(var(--p, 0) * 100%), var(--bg)); transition: transform .35s var(--ease), color .35s; }
  @keyframes sheen { to { background-position: -300% 0; } }
  footer .flogo { width: 150px; height: 150px; filter: invert(1); margin: 10px 0 6px -22px; }
  footer .meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; opacity: .6; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }

  /* WhatsApp flotante */
  .wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: #25d366; display: grid; place-items: center; transition: transform .3s var(--ease); }
  .wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.2s ease-out infinite; }
  @keyframes ping { to { transform: scale(1.7); opacity: 0; } }
  .wa:hover { transform: scale(1.1); }
  .wa svg { width: 32px; height: 32px; fill: #fff; }

  /* Aparición al hacer scroll */
  [data-r] { opacity: 0; transform: translateY(46px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  [data-r].in { opacity: 1; transform: none; }

  @media (max-width: 980px) {
    .head, .quote .wrap { grid-template-columns: 1fr; gap: 26px; }
    .story { grid-template-columns: 1fr; gap: 30px; }
    .story-foto { aspect-ratio: 4 / 3; object-position: 50% 12%; max-width: 560px; }
    .valores { grid-template-columns: 1fr; }
    .head p { justify-self: start; }
    .card { grid-template-columns: 1fr; padding: 30px; gap: 26px; min-height: 0; }
    .card .pic { min-height: 0; aspect-ratio: 16 / 10; }
    .steps { grid-template-columns: 1fr 1fr; }
    section { padding: 54px 0; }
    .quote .wrap { gap: 50px; }
  }
  @media (max-width: 640px) {
    .hero { padding-top: 210px; }
    .brand { font-size: .72rem; letter-spacing: .2em; gap: 6px; white-space: nowrap; }
    .brand .bt { display: flex; flex-direction: column; line-height: 1.25; }
    .brand .pre { font-size: .56rem; letter-spacing: .34em; }
    .nav .bar { padding-left: 14px; }
    .nav-links .btn { padding: 10px 16px; }
    .hero h1 .ln, .hero h1 .ln > span { display: inline; overflow: visible; transform: none; animation: none; }
    .badge { display: none; }
    .wrap { padding: 0 18px; }
    .card { border-radius: 26px; padding: 24px; }
    .row figure { height: clamp(150px, 24vh, 200px); border-radius: 16px; }
    .steps { grid-template-columns: 1fr; }
    .page-head { padding: 130px 0 40px; }
    .hitos li { grid-template-columns: 90px 1fr; }
    .step b { margin-bottom: 20px; }
    form { grid-template-columns: 1fr; padding: 26px 20px; }
    .quote { border-radius: 28px 28px 0 0; }
    .wa { right: 16px; bottom: 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    [data-r] { opacity: 1; transform: none; }
    .hero h1 .ln > span { transform: none; }
  }
