:root {
  --navy: #07194a;
  --navy-deep: #04102f;
  --blue: #123b79;
  --red: #ed1c24;
  --red-dark: #cb1118;
  --ink: #121b2d;
  --muted: #697386;
  --line: #e5e9f0;
  --surface: #f5f7fb;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(7, 25, 74, .12);
  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: white; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 99; padding: 12px 18px; background: white; color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.topbar { padding: 9px 0; color: rgba(255,255,255,.82); background: var(--navy-deep); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 20px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #54d68b; box-shadow: 0 0 0 4px rgba(84,214,139,.12); }

.header { position: sticky; z-index: 30; top: 0; background: var(--navy-deep); border-bottom: 0; transition: transform .3s ease; will-change: transform; }
.header.header--hidden { transform: translateY(-105%); }
.header__inner { min-height: 82px; display: flex; align-items: center; gap: 27px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--navy); }
.brand { position: relative; z-index: 2; cursor: pointer; }
.brand img { width: 176px; height: auto; }
.brand__mark { width: 47px; height: 42px; margin-right: 9px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 5.4; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .brand__swoosh { stroke: var(--red); stroke-width: 5.7; }
.brand__type { font: 800 16px/.83 var(--font-display); letter-spacing: -.06em; }
.brand__type strong { font-size: 20px; }
.brand__type small { display: block; margin-top: 6px; color: var(--red); font: 800 5.5px/1 var(--font-display); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 23px; margin-left: auto; font-size: 13px; font-weight: 700; color: #30394a; }
.nav a { padding: 30px 0; color: rgba(255,255,255,.82); transition: color .2s; }
.nav a:hover { color: var(--red); }
.header-phone { display: flex; gap: 9px; align-items: center; color: white; font-weight: 800; font-size: 14px; line-height: 1.05; }
.header-phone small { display: block; margin-bottom: 4px; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 600; }
.header-phone__icon { display: grid; width: 34px; height: 34px; place-items: center; color: white; border-radius: 50%; background: rgba(255,255,255,.1); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; margin-left: auto; border: 0; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: white; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 54px; padding: 0 24px; color: white; border: 0; border-radius: 10px; background: var(--red); box-shadow: 0 12px 28px rgba(237,28,36,.22); font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: var(--red-dark); box-shadow: 0 15px 32px rgba(237,28,36,.3); }
.button--small { min-height: 45px; padding: 0 17px; font-size: 12px; }
.button--light { color: var(--navy); background: white; box-shadow: 0 12px 35px rgba(0,0,0,.13); }
.button--light:hover { color: var(--red); background: white; }
.button--wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 11px; color: white; font-weight: 800; font-size: 14px; }
.pulse { display: grid; width: 43px; height: 43px; place-items: center; color: var(--red); border-radius: 50%; background: white; }

.hero { position: relative; min-height: 725px; overflow: hidden; color: white; background: var(--navy-deep); }
.hero__media { position: absolute; inset: 0; background: url("assets/hero-e-parebrise.png") center 44%/cover no-repeat; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,16,47,.99) 0%, rgba(4,16,47,.94) 26%, rgba(4,16,47,.57) 52%, rgba(4,16,47,.05) 82%); }
.hero__accent { position: absolute; left: -13vw; bottom: -390px; width: 58vw; height: 570px; border: 18px solid rgba(237,28,36,.8); border-radius: 50%; transform: rotate(-13deg); }
.hero__inner { position: relative; min-height: 625px; display: flex; align-items: center; padding-bottom: 35px; }
.hero__content { width: min(670px, 59%); padding-top: 5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #dce5ff; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span { display: grid; width: 22px; height: 22px; place-items: center; color: white; border-radius: 50%; background: var(--red); font-size: 11px; }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); }
h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(45px, 5vw, 69px); line-height: 1.04; letter-spacing: -.055em; }
h1 em, h2 em { color: var(--red); font-style: normal; }
.hero__lead { max-width: 600px; margin-bottom: 32px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.65; }
.hero__actions { display: flex; align-items: center; gap: 26px; }
.hero__proofs { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 31px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 700; }
.hero__proofs b { margin-right: 5px; color: #67d89b; }
.trust-strip { position: absolute; inset: auto 0 0; background: rgba(255,255,255,.97); color: var(--ink); border-top: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(15px); }
.trust-strip__inner { min-height: 100px; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip__inner > div { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid var(--line); }
.trust-strip__inner > div:last-child { border-right: 0; }
.trust-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: var(--red); border-radius: 50%; background: #fff1f1; font: 800 17px var(--font-display); }
.trust-icon span { margin-left: 1px; font-size: 9px; }
.trust-strip p { margin: 0; font-size: 13px; line-height: 1.2; }
.trust-strip p b { display: block; margin-bottom: 5px; color: var(--navy); }
.trust-strip p small { color: var(--muted); font-size: 11px; }

.section { padding: 110px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 80px; margin-bottom: 48px; }
.section-heading > p { max-width: 430px; margin: 0 0 9px; color: var(--muted); font-size: 16px; line-height: 1.7; }
#services .section-heading > p { color: #475671; font-weight: 500; }
.kicker { display: block; margin-bottom: 15px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.kicker--light { color: #ff6970; }
h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.05em; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
.service-card { position: relative; min-height: 470px; height: 100%; padding: 35px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 45px rgba(7,25,74,.06); }
.service-card--large { display: flex; flex-direction: column; justify-content: end; color: white; border: 0; background: var(--navy); }
.service-card--navy { color: white; border: 0; background: linear-gradient(145deg, var(--blue), var(--navy)); }
.service-card__number { position: absolute; top: 24px; right: 27px; color: #cbd3df; font: 800 12px var(--font-display); letter-spacing: .1em; }
.service-card--large .service-card__number, .service-card--navy .service-card__number { color: rgba(255,255,255,.42); }
.windshield-visual { position: absolute; top: 10px; left: 20px; width: 93%; opacity: .23; }
.windshield-visual svg { fill: none; stroke: white; stroke-width: 7; }
.windshield-visual .crack { stroke: var(--red); stroke-width: 5; fill: rgba(237,28,36,.12); }
.service-card__body { position: relative; }
.service-card__body > span { color: #ff6970; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.service-card h3 { margin: 15px 0 13px; color: var(--navy); font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.service-card--large h3, .service-card--navy h3 { color: white; }
.service-card p { margin: 0 0 25px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.service-card--large p, .service-card--navy p { color: rgba(255,255,255,.7); }
.service-card a { color: var(--red); font-size: 13px; font-weight: 800; }
.service-card a span { margin-left: 9px; }
.service-card__body { max-width: 390px; }
.service-icon { display: grid; width: 54px; height: 54px; margin-top: 36px; place-items: center; color: var(--red); border-radius: 15px; background: #fff0f0; font-size: 25px; }
.service-card--navy .service-icon { color: white; background: rgba(255,255,255,.1); }

.process { padding: 105px 0; color: white; background: var(--navy) url("assets/brand-pattern.png") center/cover; }
.process__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; align-items: center; }
.process h2 { color: white; }
.process__intro p { max-width: 480px; margin: 26px 0 32px; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.7; }
.steps { counter-reset: steps; }
.step { position: relative; display: grid; grid-template-columns: 67px 1fr; gap: 24px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.step:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.step > span { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #ff7177; font: 800 12px var(--font-display); }
.step:not(:last-child)::after { position: absolute; left: 24px; bottom: -16px; width: 1px; height: 31px; content: ""; background: rgba(255,255,255,.18); }
.step h3 { margin: 2px 0 6px; font-size: 18px; }
.step p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.5; }

.offer { overflow: hidden; }
.offer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.offer__content > p { max-width: 530px; margin: 25px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.offer__content > p strong { color: var(--navy); }
.check-list { padding: 0; margin: 25px 0 30px; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 11px; margin: 13px 0; font-size: 14px; font-weight: 600; }
.check-list span { display: grid; width: 23px; height: 23px; place-items: center; color: #16864f; border-radius: 50%; background: #e9f8f0; font-size: 11px; }
.legal { display: block; max-width: 550px; margin-top: 18px; color: #8992a1; font-size: 10px; line-height: 1.5; }
.offer__visual { position: relative; min-height: 510px; border-radius: 36px; background: radial-gradient(circle at 50% 45%, #183e83 0, var(--navy) 60%, var(--navy-deep) 100%); box-shadow: var(--shadow); }
.offer__visual::before { position: absolute; inset: 0; content: ""; opacity: .35; background: url("assets/brand-pattern.png") center/cover; border-radius: inherit; }
.offer-ring { position: absolute; top: 50%; left: 50%; width: 350px; height: 350px; border: 13px solid rgba(237,28,36,.8); border-radius: 50%; transform: translate(-50%,-50%) rotate(-15deg); }
.offer-ring::after { position: absolute; left: -150px; bottom: -45px; width: 510px; height: 150px; content: ""; border-top: 13px solid var(--red); border-radius: 50%; transform: rotate(10deg); }
.offer-card { position: absolute; display: grid; place-items: center; text-align: center; color: white; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.09); box-shadow: 0 20px 50px rgba(0,0,0,.2); backdrop-filter: blur(14px); }
.offer-card--main { top: 85px; left: 70px; width: 245px; height: 270px; padding: 34px; border-radius: 32px; transform: rotate(-5deg); }
.offer-card--main small { font-size: 11px; letter-spacing: .16em; }
.offer-card--main b { display: block; font: 800 92px/.75 var(--font-display); letter-spacing: -.08em; }
.offer-card--main b span { font-size: 34px; }
.offer-card--main p { margin: 0; color: #ff969b; font-size: 16px; font-weight: 800; }
.offer-card--gift { right: 27px; bottom: 48px; width: 230px; min-height: 180px; padding: 12px 15px 16px; overflow: hidden; border-radius: 24px; transform: rotate(4deg); }
.offer-card--gift > span { position: absolute; z-index: 2; top: 11px; left: 15px; color: #ff5c63; font-size: 24px; text-shadow: 0 4px 12px rgba(0,0,0,.25); }
.offer-card__gifts { width: 200px; height: 112px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); transform: rotate(-4deg); }
.offer-card--gift p { position: relative; z-index: 2; margin: -1px 0 0; font-size: 13px; }
.offer-card--gift b { font-size: 16px; }
.offer-badge { position: absolute; top: 49px; right: 45px; color: white; font-size: 11px; font-weight: 800; line-height: 1.4; transform: rotate(3deg); }
.offer-badge span { display: inline-grid; width: 27px; height: 27px; margin-right: 5px; place-items: center; border-radius: 50%; background: var(--red); }

.reviews { background: var(--surface); }
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.google-score { display: flex; align-items: center; gap: 14px; padding: 17px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.google-score { transition: transform .2s, box-shadow .2s; }
.google-score:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,25,74,.1); }
.google-g { color: #4285f4; font: 800 30px var(--font-display); }
.google-score b { display: block; font-size: 13px; }
.google-score p { margin: 1px 0; color: #f6ae2d; font-size: 13px; letter-spacing: .1em; }
.google-score small { color: var(--muted); font-size: 9px; }
.review-carousel { position: relative; }
.review-carousel__viewport { overflow: hidden; }
.review-grid { display: flex; align-items: stretch; gap: 20px; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.review-card { display: flex; flex: 0 0 calc((100% - 40px) / 3); min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 35px rgba(7,25,74,.04); flex-direction: column; }
.stars { color: #f6ae2d; font-size: 13px; letter-spacing: .14em; }
.review-card > p { min-height: 88px; margin: 21px 0 26px; color: #3f4859; font-size: 15px; line-height: 1.7; }
.review-card footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-card footer > span { display: grid; width: 40px; height: 40px; place-items: center; color: white; border-radius: 50%; background: var(--navy); font-size: 11px; font-weight: 800; }
.review-card footer b { display: block; font-size: 12px; }
.review-card footer small { color: var(--muted); font-size: 10px; }
.review-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--navy); box-shadow: 0 10px 28px rgba(7,25,74,.22); font-size: 30px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .2s, transform .2s; }
.review-arrow:hover { background: var(--red); transform: translateY(-50%) scale(1.05); }
.review-arrow:focus-visible { outline: 3px solid rgba(230,38,47,.28); outline-offset: 3px; }
.review-arrow--prev { left: -23px; }
.review-arrow--next { right: -23px; }
.reviews__actions { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 34px; }
.reviews__write { color: var(--navy); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.centre { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 640px; background: var(--navy); }
.centre__photo { background: linear-gradient(90deg, transparent 70%, rgba(7,25,74,.7)), url("assets/centre-firminy.png") center/cover no-repeat; }
.centre__content { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(40px, 7vw, 110px); color: white; }
.centre h2 { color: white; }
.centre__content > p { max-width: 480px; margin: 25px 0 32px; color: rgba(255,255,255,.68); line-height: 1.7; }
.centre__details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 34px; }
.centre__details > div { display: flex; gap: 12px; }
.centre__details > div > span { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: #ff747a; border-radius: 50%; background: rgba(255,255,255,.08); }
.centre__details p { margin: 1px 0 0; }
.centre__details small { display: block; margin-bottom: 7px; color: rgba(255,255,255,.5); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.centre__details b { font-size: 12px; line-height: 1.5; }
.centre__actions { display: flex; align-items: center; gap: 28px; }

.contact { background: white url("assets/brand-pattern-light.png") center/cover; }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.contact__copy > p { max-width: 470px; margin: 26px 0 35px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact__call { display: flex; align-items: center; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact__call > span { display: grid; width: 48px; height: 48px; place-items: center; color: white; border-radius: 50%; background: var(--red); }
.contact__call p { margin: 0; }
.contact__call small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.contact__call a { color: var(--navy); font: 800 19px var(--font-display); }
.contact__channels { display: flex; flex-wrap: wrap; gap: 11px 20px; margin-top: 18px; }
.contact__channels a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
.contact__channels a:first-child span { color: #16a765; }
.contact__channels a:last-child span { color: var(--red); }
.mini-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 25px 0 0; color: #4d5869; list-style: none; font-size: 11px; font-weight: 700; }
.mini-proof li::first-letter { color: #16864f; }
.lead-form { padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.lead-form__head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.lead-form__head > span { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; color: white; border-radius: 50%; background: var(--navy); font: 800 11px var(--font-display); }
.lead-form__head h3 { margin: 0 0 4px; color: var(--navy); font-size: 19px; }
.lead-form__head p { margin: 0; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: grid; gap: 7px; color: #404a5b; font-size: 11px; font-weight: 700; }
.form-grid .full { grid-column: 1/-1; }
.form-grid input, .form-grid select { width: 100%; height: 49px; padding: 0 14px; color: var(--ink); border: 1px solid #dce1e9; border-radius: 9px; outline: none; background: #fbfcfe; font-size: 13px; transition: border .2s, box-shadow .2s; }
.form-grid input:focus, .form-grid select:focus { border-color: #6485b6; box-shadow: 0 0 0 4px rgba(18,59,121,.08); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.consent input { accent-color: var(--red); }
.form-note, .form-status { display: block; margin: 11px 0 0; color: #8992a1; text-align: center; font-size: 9px; }
.form-status { color: #16864f; font-weight: 700; }
.form-status.is-success { color: #138a55; }
.form-status.is-error { color: #c81e2b; }
.form-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.lead-form button:disabled { cursor: wait; opacity: .72; }

.footer { padding: 50px 0 28px; color: white; background: var(--navy-deep); }
.brand--footer { color: white; }
.footer__top { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 60px; align-items: center; padding-bottom: 40px; }
.footer__top > p { margin: 0; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.6; }
.footer__top > p a { display: inline-block; margin-top: 5px; color: rgba(255,255,255,.8); }
.footer__links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 15px 25px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; color: rgba(255,255,255,.35); border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; }
.whatsapp-float { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; color: white; border-radius: 999px; background: #19a965; box-shadow: 0 14px 35px rgba(16,132,77,.3); font-size: 12px; transition: transform .2s, box-shadow .2s; }
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(16,132,77,.4); }
.whatsapp-float span { font-size: 18px; }
.mobile-actions { display: none; }

.ai-chat { position: fixed; z-index: 60; right: 24px; bottom: 88px; font-family: var(--font-body); }
.ai-chat__toggle { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 7px 18px 7px 8px; color: white; border: 0; border-radius: 999px; background: var(--navy); box-shadow: 0 16px 40px rgba(7,25,74,.3); cursor: pointer; font: 800 12px var(--font-body); }
.ai-chat__avatar { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; flex: 0 0 36px; color: white; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: linear-gradient(145deg, #ed1d25, #b70e19); box-shadow: 0 3px 10px rgba(103,8,18,.28); font: 900 17px var(--font-display); }
.ai-chat__toggle::after { position: absolute; top: 2px; left: 38px; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #19a965; content: ""; }
.ai-chat.is-open .ai-chat__toggle { opacity: 0; pointer-events: none; }
.ai-chat__panel { position: absolute; right: 0; bottom: 0; display: grid; grid-template-rows: auto minmax(180px, 1fr) auto auto auto; width: min(380px, calc(100vw - 28px)); height: min(590px, calc(100vh - 130px)); overflow: hidden; border: 1px solid rgba(7,25,74,.12); border-radius: 22px; background: white; box-shadow: 0 24px 70px rgba(4,16,47,.28); }
.ai-chat__panel[hidden] { display: none; }
.ai-chat__header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; color: white; background: var(--navy); }
.ai-chat__identity { display: flex; align-items: center; gap: 11px; }
.ai-chat__identity .ai-chat__avatar { width: 39px; height: 39px; flex-basis: 39px; font-size: 18px; }
.ai-chat__identity strong, .ai-chat__identity small { display: block; }
.ai-chat__identity strong { font: 800 13px var(--font-display); }
.ai-chat__identity small { margin-top: 4px; color: rgba(255,255,255,.68); font-size: 9px; }
.ai-chat__identity i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #24c878; }
.ai-chat__close { width: 34px; height: 34px; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.14); cursor: pointer; font-size: 24px; line-height: 1; }
.ai-chat__close:hover, .ai-chat__close:focus-visible { background: var(--red); outline: none; }
.ai-chat__messages { display: flex; overflow-y: auto; flex-direction: column; gap: 10px; padding: 18px 15px; background: #f5f7fb; }
.ai-chat__message { max-width: 87%; padding: 11px 13px; color: #253148; border-radius: 15px 15px 15px 4px; background: white; box-shadow: 0 4px 14px rgba(7,25,74,.06); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.ai-chat__message--user { align-self: flex-end; color: white; border-radius: 15px 15px 4px 15px; background: var(--navy); }
.ai-chat__message.is-typing { color: #778195; font-style: italic; }
.ai-chat__suggestions { display: flex; overflow-x: auto; gap: 7px; padding: 9px 13px; border-top: 1px solid var(--line); background: white; scrollbar-width: none; }
.ai-chat__suggestions[hidden] { display: none; }
.ai-chat__suggestions button { flex: 0 0 auto; padding: 8px 10px; color: var(--navy); border: 1px solid #d9e1ee; border-radius: 999px; background: #f7f9fc; cursor: pointer; font-size: 9px; font-weight: 800; }
.ai-chat__form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding: 11px 13px 7px; border-top: 1px solid var(--line); background: white; }
.ai-chat__form textarea { width: 100%; max-height: 84px; resize: none; padding: 11px 12px; color: var(--ink); border: 1px solid #dce1e9; border-radius: 12px; outline: none; font: 12px/1.35 var(--font-body); }
.ai-chat__form textarea:focus { border-color: #6485b6; box-shadow: 0 0 0 3px rgba(18,59,121,.08); }
.ai-chat__form button { width: 42px; height: 42px; color: white; border: 0; border-radius: 12px; background: var(--red); cursor: pointer; font-size: 18px; }
.ai-chat__form button:disabled { cursor: wait; opacity: .55; }
.ai-chat__notice { margin: 0; padding: 0 13px 10px; color: #8b94a3; background: white; font-size: 8px; text-align: center; }

@media (min-width: 901px) {
  .header {
    width: calc(100% + 20px);
    margin: -10px;
  }
  .header__inner,
  .hero__inner { width: calc(100% - 128px); max-width: none; }
  .hero__content { position: relative; top: 24px; }
}

@media (min-width: 1081px) {
  #services > .container { width: min(1320px, calc(100% - 80px)); }
}

@media (min-width: 1400px) {
  .hero__media { background-position: center 20%; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-button { display: block; }
  .header .button--small { display: none; }
  .nav.is-open { position: absolute; top: 82px; left: 0; right: 0; display: grid; gap: 0; padding: 12px 20px 20px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 30px rgba(7,25,74,.25); }
  .nav.is-open a { padding: 12px 5px; }
  .hero__content { width: min(680px, 72%); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card--large { grid-row: span 2; }
  .process__grid { gap: 55px; }
  .offer__grid, .contact__grid { gap: 50px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .container { width: min(100% - 28px, 620px); }
  .topbar, .header-phone { display: none; }
  .header__inner { min-height: 70px; }
  .nav.is-open { top: 70px; }
  .brand img { width: 154px; }
  .hero { min-height: 760px; }
  .hero__media { background-position: 62% center; }
  .hero__shade { background: linear-gradient(90deg, rgba(4,16,47,.98), rgba(4,16,47,.87) 65%, rgba(4,16,47,.52)); }
  .hero__inner { min-height: 640px; align-items: flex-end; padding-bottom: 48px; }
  .hero__content { width: 100%; }
  h1 { font-size: clamp(39px, 12vw, 53px); }
  .hero__lead { font-size: 16px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero__proofs { gap: 9px 15px; }
  .trust-strip { position: relative; }
  .trust-strip__inner { grid-template-columns: 1fr 1fr; }
  .trust-strip__inner > div { padding: 18px 5px; border-bottom: 1px solid var(--line); }
  .trust-icon { width: 40px; height: 40px; }
  .trust-strip p small { display: none; }
  .section { padding: 78px 0; }
  .section-heading, .reviews__head { align-items: flex-start; flex-direction: column; gap: 27px; }
  h2 { font-size: 39px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card--large { min-height: 440px; grid-row: auto; }
  .process { padding: 78px 0; }
  .process__grid, .offer__grid, .contact__grid { grid-template-columns: 1fr; gap: 55px; }
  .offer__visual { min-height: 460px; }
  .offer-card--main { left: 35px; }
  .offer-card--gift { right: 24px; }
  .review-card { flex-basis: 100%; }
  .review-card > p { min-height: 0; }
  .review-arrow { width: 40px; height: 40px; font-size: 26px; }
  .review-arrow--prev { left: -7px; }
  .review-arrow--next { right: -7px; }
  .reviews__actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .reviews__write { text-align: center; }
  .centre { grid-template-columns: 1fr; }
  .centre__photo { min-height: 420px; background-image: linear-gradient(0deg, rgba(7,25,74,.7), transparent 55%), url("assets/centre-firminy.png"); }
  .centre__content { padding: 65px 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .lead-form { padding: 27px 20px; }
  .footer__top { grid-template-columns: 1fr; gap: 27px; }
  .footer__links { justify-content: flex-start; }
  .footer__bottom { flex-direction: column; }
  .whatsapp-float { display: none; }
  .ai-chat { right: 14px; bottom: 78px; }
  .ai-chat__panel { position: fixed; right: 10px; bottom: 74px; width: calc(100vw - 20px); height: min(620px, calc(100vh - 94px)); }
  .ai-chat__toggle { min-height: 48px; padding-right: 15px; }
  .mobile-actions { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: .8fr 1fr 1.25fr; height: 64px; background: white; box-shadow: 0 -5px 25px rgba(7,25,74,.15); }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--navy); font-size: 13px; font-weight: 800; }
  .mobile-actions .mobile-actions__whatsapp { color: white; background: #19a965; }
  .mobile-actions a:last-child { color: white; background: var(--red); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
