:root {
  --teal-900: #123f48;
  --teal-700: #1d5c66;
  --teal-500: #3f8f8c;
  --sage-400: #8fbf98;
  --sage-200: #cfe3c4;
  --sun: #e9b949;
  --ink: #17282b;
  --muted: #5a6d70;
  --bg: #ffffff;
  --bg-soft: #f3f8f5;
  --line: #dce8e3;
  --grad: linear-gradient(120deg, var(--teal-700) 0%, var(--teal-500) 55%, var(--sage-400) 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 63, 72, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Montserrat, sans-serif; line-height: 1.15; margin: 0 0 .5em; color: var(--teal-900); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 110px) 0; }
.eyebrow { display: inline-block; font: 700 .78rem Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 700 .98rem Montserrat, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #25a35a; color: #fff; box-shadow: 0 8px 20px rgba(37, 163, 90, .3); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn svg { width: 20px; height: 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 40px; object-fit: contain; }
.brand span { font: 800 1.25rem Montserrat, sans-serif; color: var(--teal-900); letter-spacing: .04em; }
.brand small { display: block; font: 600 .62rem Montserrat, sans-serif; letter-spacing: .16em; color: var(--teal-500); }
.menu { display: flex; gap: 28px; align-items: center; }
.menu a { text-decoration: none; font-weight: 500; color: var(--muted); font-size: .95rem; }
.menu a:hover { color: var(--teal-700); }
.menu .btn { padding: 10px 20px; font-size: .9rem; color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; stroke: var(--teal-900); }

/* Hero */
.hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; padding: clamp(70px, 10vw, 130px) 0; }
.hero::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(233,185,73,.45), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: #ffe59a; }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .92rem; opacity: .95; }
.hero-badges span::before { content: "✓ "; color: #ffe59a; font-weight: 700; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); border: 6px solid rgba(255,255,255,.18); }
.hero-photo img { aspect-ratio: 4/3.2; object-fit: cover; object-position: center; width: 100%; }

/* Stats */
.stats { margin-top: -54px; position: relative; z-index: 2; padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 28px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 2rem Montserrat, sans-serif; color: var(--teal-700); }
.stat span { color: var(--muted); font-size: .92rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); margin-bottom: 18px; font-size: 1.6rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Simulator */
.soft { background: var(--bg-soft); }
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sim-box { background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.sim-box label { font-weight: 600; display: flex; justify-content: space-between; margin-bottom: 14px; }
.sim-box label output { font: 800 1.3rem Montserrat, sans-serif; color: var(--teal-700); }
input[type=range] { width: 100%; accent-color: var(--teal-500); height: 6px; }
.sim-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.sim-results div { background: var(--bg-soft); border-radius: 14px; padding: 16px; }
.sim-results small { color: var(--muted); font-size: .82rem; display: block; }
.sim-results b { font: 800 1.35rem Montserrat, sans-serif; color: var(--teal-900); }
.sim-results .hl { background: var(--grad); color: #fff; grid-column: 1 / -1; }
.sim-results .hl small, .sim-results .hl b { color: #fff; }
.note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.step { position: relative; padding-top: 62px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 1.1rem Montserrat, sans-serif; }
.step::after { content: ""; position: absolute; top: 23px; left: 56px; right: -10px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 16px; margin-top: 44px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--line); grid-column: span 4; }
.gallery figure.wide { grid-column: span 6; height: 320px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(18,63,72,.85); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: .85rem; font-weight: 600; }

.gallery figure:nth-child(n+3) img { object-position: center; }
.brands { text-align: center; margin-top: 46px; }
.brands small { font: 700 .75rem Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brands p { font: 700 1.05rem Montserrat, sans-serif; color: var(--teal-700); margin-top: 8px; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.filters button { font: 600 .9rem Inter, sans-serif; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.filters button.on { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.work { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(18,63,72,.07); }
.work.hide { display: none; }
.work img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.work-body { padding: 18px 20px 20px; }
.work-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.work-top b { font: 800 1.35rem Montserrat, sans-serif; color: var(--teal-700); }
.work-top span { font-size: .85rem; color: var(--muted); text-align: right; }
.work ul { margin: 0; padding: 0; list-style: none; font-size: .93rem; color: var(--ink); }
.work li::before { content: "▸ "; color: var(--teal-500); }

.btn-outline { background: #fff; color: var(--teal-700); border: 1.5px solid var(--teal-700); }
.btn-outline:hover { background: var(--teal-700); color: #fff; }

/* Reviews */
.rating { color: var(--muted); font-size: 1.05rem; }
.rating b { color: var(--teal-900); font-family: Montserrat, sans-serif; }
.stars { color: #f4b400; letter-spacing: 2px; }
.reviews-wrap { position: relative; margin-top: 40px; }
.reviews { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 16px; scrollbar-width: thin; }
.reviews .review { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.rv-nav { position: absolute; top: 50%; transform: translateY(-60%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal-700); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.rv-nav.prev { left: -22px; }
.rv-nav.next { right: -22px; }
.rv-nav:disabled { opacity: 0; pointer-events: none; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; color: var(--ink); font-size: .95rem; flex: 1; }
.review figcaption b { display: block; font-family: Montserrat, sans-serif; color: var(--teal-900); }
.review figcaption span { font-size: .82rem; color: var(--muted); }

/* Página de obras */
.page-head { background: var(--grad); color: #fff; padding: clamp(56px, 8vw, 90px) 0 clamp(40px, 6vw, 60px); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.page-head p { opacity: .92; max-width: 620px; font-size: 1.1rem; }
.back { display: inline-block; color: #fff; opacity: .85; text-decoration: none; margin-bottom: 18px; font-weight: 500; }
.back:hover { opacity: 1; }
.count { text-align: center; color: var(--muted); margin-top: 18px; font-size: .92rem; }

/* B2B */
.b2b { background: var(--teal-900); color: #dcebe8; }
.b2b h2, .b2b h3 { color: #fff; }
.b2b .eyebrow { color: var(--sage-400); }
.b2b .lead { color: #b9d2cd; }
.b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.b2b ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.b2b li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 18px; }
.b2b li b { color: #fff; display: block; font-family: Montserrat, sans-serif; }
.b2b li span { font-size: .9rem; color: #a9c4bf; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
summary { font: 700 1.05rem Montserrat, sans-serif; color: var(--teal-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-500); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; margin-top: 26px; }
.contact-info a, .contact-info div { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.contact-info a:hover { border-color: var(--teal-500); }
.contact-info i { font-style: normal; font-size: 1.4rem; }
.contact-info small { display: block; color: var(--muted); font-size: .8rem; }
.contact-info strong { font-weight: 600; }
form { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 14px; }
form h3 { margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; }
form .btn { justify-content: center; }

footer { background: #0d2e35; color: #9fbab5; padding: 44px 0 28px; font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
footer a { color: #cfe3de; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 20px; font-size: .8rem; }

.wa-float { position: fixed; right: 20px; bottom: 64px; width: 60px; height: 60px; border-radius: 50%; background: #25a35a; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); z-index: 60; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid, .sim, .b2b-grid, .contact { grid-template-columns: 1fr; }
  .cards, .works { grid-template-columns: 1fr 1fr; }
  .reviews .review { flex-basis: calc((100% - 20px) / 2); }
  .rv-nav.prev { left: -8px; }
  .rv-nav.next { right: -8px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { padding: 0 0 0 64px; min-height: 46px; }
  .step::after { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery figure, .gallery figure.wide { grid-column: span 1; height: auto; }
  .gallery figure.wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 18px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .burger { display: block; }
  .cards, .works { grid-template-columns: 1fr; }
  .reviews .review { flex-basis: 86%; }
  .rv-nav { display: none; }
  .sim-box, form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
