:root {
  /* Cálido y editorial: crema + grafito del logo, con los tres destellos (magenta, naranja, ámbar) como acento. */
  --cream: #F6F0E7;
  --cream-2: #EDE4D6;
  --paper: #FFFDF9;
  --ink: #2A2829;
  --ink-2: #575556;
  --muted: #7A7576;
  --mag: #C42A55;
  --ora: #D85A2E;
  --amb: #E8952F;
  --line: rgba(42,40,41,.12);
  --r: 22px;
  --wrap: 1180px;
  --fh: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --fb: 'DM Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--fb); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: var(--fh); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px; }
.rays { width: 30px; height: 15px; overflow: visible; }
.rays path { fill: none; stroke-width: 4.2; stroke-linecap: round; }
.rays .r1 { stroke: var(--ora); } .rays .r2 { stroke: var(--mag); } .rays .r3 { stroke: var(--amb); }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .98rem; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--fb); transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--mag); box-shadow: 0 12px 28px -10px rgba(196,42,85,.6); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(246,240,231,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 54px; width: auto; }
.menu { display: flex; align-items: center; gap: 34px; font-weight: 600; font-size: .95rem; }
.menu a:not(.btn) { position: relative; color: var(--ink-2); }
.menu a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--ora), var(--mag), var(--amb)); transition: width .25s; }
.menu a:not(.btn):hover { color: var(--ink); }
.menu a:not(.btn):hover::after { width: 100%; }
.menu .btn { padding: 11px 22px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: .25s; }

/* Hero */
.hero { padding: 64px 0 90px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); font-weight: 800; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; color: var(--mag); }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 99px; background: linear-gradient(90deg, var(--ora), var(--mag), var(--amb)); opacity: .9; z-index: -1; }
.hero .lead { font-size: 1.16rem; color: var(--ink-2); max-width: 540px; margin: 28px 0 36px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.lab { position: relative; aspect-ratio: 1 / 1.05; border-radius: 36px; background: var(--ink); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(42,40,41,.55); }
.lab::before { content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(232,149,47,.45), transparent 65%); }
.lab::after { content: ''; position: absolute; width: 380px; height: 380px; left: -160px; bottom: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(196,42,85,.5), transparent 65%); }
.lab > * { position: relative; z-index: 1; }
.lab .big-rays { width: 150px; height: 75px; }
.lab .big-rays path { stroke-width: 5; stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 1s .3s ease forwards; }
.lab .big-rays .r2 { animation-delay: .45s; } .lab .big-rays .r3 { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lab .k { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 700; }
.lab .rot { font-family: var(--fh); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.1; height: 1.1em; overflow: hidden; letter-spacing: -.03em; }
.lab .rot div { animation: rot 10s cubic-bezier(.7,0,.3,1) infinite; }
.lab .rot span { display: block; height: 1.1em; }
.lab .rot span:nth-child(5n+1) { color: var(--amb); } .lab .rot span:nth-child(5n+2) { color: #F07B9B; } .lab .rot span:nth-child(5n+3) { color: #F28A5E; } .lab .rot span:nth-child(5n+4) { color: #fff; } .lab .rot span:nth-child(5n+5) { color: var(--amb); }
@keyframes rot { 0%,16% { transform: translateY(0); } 20%,36% { transform: translateY(-1.1em); } 40%,56% { transform: translateY(-2.2em); } 60%,76% { transform: translateY(-3.3em); } 80%,96% { transform: translateY(-4.4em); } 100% { transform: translateY(-5.5em); } }
.lab .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: .95rem; color: rgba(255,255,255,.78); }
.lab .foot b { display: block; font-family: var(--fh); color: #fff; font-size: 1.25rem; }

/* Marquee */
.marquee { background: var(--ink); color: #fff; padding: 22px 0; overflow: hidden; }
.marquee .track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee span { font-family: var(--fh); font-weight: 700; font-size: 1.45rem; padding: 0 26px; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 1.1rem; display: flex; align-items: center; }
.marquee i:nth-of-type(3n+1) { color: var(--ora); } .marquee i:nth-of-type(3n+2) { color: var(--mag); } .marquee i:nth-of-type(3n) { color: var(--amb); }
@keyframes marq { to { transform: translateX(-50%); } }

section { padding: 110px 0; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.about h2 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.about h2 .m { color: var(--mag); } .about h2 .o { color: var(--ora); }
.about .txt p { font-size: 1.14rem; color: var(--ink-2); margin-bottom: 20px; }
.about .txt p strong { color: var(--ink); }
.gf { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 20px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; transition: border-color .2s; }
.gf:hover { border-color: var(--mag); }
.gf b { color: var(--mag); }

/* Servicios */
.services { background: var(--paper); border-radius: 48px 48px 0 0; }
.sv-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.sv-head p { max-width: 420px; color: var(--ink-2); font-size: 1.08rem; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.fc { position: relative; border-radius: 32px; padding: 44px 40px 40px; color: #fff; min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .3s; }
.fc:hover { transform: translateY(-6px); }
.fc.a { background: linear-gradient(150deg, #D2365F, #A61F45); }
.fc.b { background: linear-gradient(150deg, #E7742F, #C94E24); }
.fc .ix { font-family: var(--fh); font-weight: 800; font-size: 7rem; line-height: .8; position: absolute; right: 26px; top: 22px; opacity: .14; }
.fc .ico { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 40px; }
.fc .ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fc h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.fc p { font-size: 1.05rem; color: rgba(255,255,255,.9); max-width: 470px; }
.sv-list-h { font-family: var(--fh); font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.sv-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.sv-list li { display: flex; align-items: baseline; gap: 18px; padding: 24px 6px; border-bottom: 1px solid var(--line); transition: padding .25s, color .25s; }
.sv-list li:hover { padding-left: 16px; color: var(--mag); }
.sv-list .n { font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.sv-list .t { font-family: var(--fh); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }

/* Proceso */
.process { background: var(--ink); color: #fff; }
.process .tag { color: rgba(255,255,255,.65); }
.process h2 { max-width: 700px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 60px; counter-reset: s; }
.steps li { position: relative; padding: 34px 28px 32px; border-radius: 26px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); transition: background .3s, transform .3s; }
.steps li:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.steps .pn { font-family: var(--fh); font-weight: 800; font-size: 3.4rem; line-height: 1; display: block; margin-bottom: 26px; }
.steps li:nth-child(1) .pn { color: var(--ora); } .steps li:nth-child(2) .pn { color: var(--mag); } .steps li:nth-child(3) .pn { color: var(--amb); } .steps li:nth-child(4) .pn { color: #F07B9B; }
.steps h3 { font-size: 1.5rem; margin-bottom: 12px; }
.steps p { color: rgba(255,255,255,.72); font-size: .99rem; }
.steps li:not(:last-child)::after { content: '→'; position: absolute; right: -18px; top: 50px; color: rgba(255,255,255,.35); font-size: 1.2rem; z-index: 2; }

/* Contacto */
.ct-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.ct-lead { color: var(--ink-2); font-size: 1.1rem; margin: 18px 0 34px; }
.ct-cards { display: grid; gap: 12px; }
.ct-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
a.ct-card:hover { border-color: var(--mag); transform: translateX(4px); }
.ct-card .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; }
.ct-card .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--mag); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-card .ic.wa { background: #25D366; } .ct-card .ic.wa svg { fill: #fff; stroke: none; }
.ct-card b { display: block; font-weight: 700; }
.ct-card .t { color: var(--muted); font-size: .92rem; }
.ct-card .map { color: var(--mag); font-weight: 700; font-size: .92rem; }
.ct-card .map:hover { text-decoration: underline; }
form { background: var(--paper); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(42,40,41,.35); }
form .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
input, textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--cream-2); background: var(--cream); outline: none; transition: border-color .2s, background .2s; }
input:focus, textarea:focus { border-color: var(--ink); background: #fff; }
input.err, textarea.err { border-color: var(--mag); background: #FCEEF2; }
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 0; }
legend { font-size: .86rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill-opt span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--cream-2); background: var(--cream); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .2s; color: var(--ink); }
.pill-opt span:hover { border-color: var(--ink-2); }
.pill-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-opt input:focus-visible + span { outline: 2px solid var(--mag); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: .88rem; }
.form-msg { display: none; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-weight: 600; font-size: .95rem; }
.form-msg.show { display: block; }
.form-msg a { color: var(--mag); }
button:disabled { opacity: .6; cursor: wait; }

/* WhatsApp + footer */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 46px 0; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 54px; width: auto; }
footer a { color: #fff; font-weight: 600; }
footer a:hover { color: var(--amb); }

/* Aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-grid, .about-grid, .ct-grid { grid-template-columns: 1fr; gap: 44px; }
  .lab { aspect-ratio: auto; min-height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .sv-list { grid-template-columns: 1fr 1fr; }
  .sv-head { flex-direction: column; align-items: start; gap: 18px; }
}
@media (max-width: 760px) {
  .lab br.d { display: none; }
  .menu { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: 10px 28px 26px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .menu.open { transform: none; }
  .menu a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 18px; justify-content: center; }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  section { padding: 80px 0; }
  .hero { padding: 40px 0 70px; }
  .feat, .steps, .sv-list { grid-template-columns: 1fr; }
  .fc { min-height: 0; padding: 36px 28px; }
  form { grid-template-columns: 1fr; padding: 28px 22px; }
  .services { border-radius: 32px 32px 0 0; }
  .brand img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lab .big-rays path { stroke-dashoffset: 0; }
  .rv { opacity: 1; transform: none; }
}
