:root{color-scheme:light;--ink:#122844;--muted:#334e6e;--paper:#f7faff;--navy:#0b2b50;--sky:#b9ddff;--line:#b9cfe5}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:1.0625rem/1.6 system-ui,sans-serif}
.wrap{width:min(1120px,calc(100% - 48px));margin-inline:auto}
footer{background:var(--navy);color:white}
header{background:#fff;color:var(--navy);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:72px}
a{color:inherit;text-decoration:none}
nav{display:flex;gap:22px;flex-wrap:wrap;font-size:.95rem}
nav a:hover{text-decoration:underline}
.hero{min-height:570px;display:grid;align-items:center;color:white;background:linear-gradient(90deg,#071d38f5 0%,#071d38e8 32%,#071d3814 78%),#173f6e url(hero.webp) center/cover no-repeat}
.hero-copy{padding-block:76px}
.eyebrow{font-size:.875rem;text-transform:uppercase;letter-spacing:.13em;font-weight:750;margin:0 0 12px;color:#24558d}
.hero .eyebrow{color:var(--sky)}
h1,h2{letter-spacing:-.05em;line-height:1.04;margin:0}
h1{font-size:clamp(2.65rem,7vw,5.6rem);max-width:850px}
h2{font-size:clamp(2rem,4vw,3.2rem)}
.hero p:not(.eyebrow){font-size:1.2rem;max-width:32rem;margin:22px 0 28px}
.button{display:inline-block;background:var(--sky);border:0;border-radius:7px;padding:.83rem 1.25rem;color:#0c2b51;font:inherit;font-weight:750;cursor:pointer}
.button:hover{background:#9ccfff}
.service{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,80px);padding-block:70px}
.service p:not(.eyebrow){color:var(--muted);margin:0 0 15px}
#cotizar h2+p{margin-top:18px}
.coverage{background:#e8f2ff}
.coverage ul{list-style:none;margin:0;padding:0}
.coverage li{padding:10px 0;border-bottom:1px solid var(--line);font-weight:650}
form{display:grid;gap:14px}
label{display:grid;gap:5px;font-size:.95rem;font-weight:650}
input,select,textarea{width:100%;border:1px solid #718da9;border-radius:6px;padding:10px;font:inherit;background:white;color:var(--ink)}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
form button{justify-self:start}
.secondary{margin-top:10px}
:focus-visible{outline:3px solid #2563bd;outline-offset:3px}
footer{padding-block:12px}
@media(max-width:680px){.wrap{width:calc(100% - 32px)}.bar{flex-wrap:wrap;padding-block:13px;gap:8px}.hero{min-height:460px;background-position:60% center}.service{grid-template-columns:1fr;padding-block:42px}}
.service h3{font-size:1.2rem;line-height:1.35;margin:0 0 10px}
nav a{white-space:nowrap}
@media(max-width:790px){header .bar{flex-wrap:wrap;padding-block:13px}nav{column-gap:16px;row-gap:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* Render the symbol and wordmark from the supplied logo in a horizontal layout. */
header .brand{display:inline-flex;align-items:center;gap:10px;flex:none;padding-block:8px;mix-blend-mode:multiply}
.brand-symbol,.brand-wordmark{display:block;background-image:url(logo-rapiservi.webp);background-repeat:no-repeat}
.brand-symbol{width:56px;height:45px;background-size:146px 90px;background-position:-46px -10px}
.brand-wordmark{width:149px;height:28px;background-size:160px 99px;background-position:-4px -63px}
header nav{font-weight:600}
header nav a:hover{color:#24558d}
.hero a:focus-visible{outline-color:var(--sky)}
@media(max-width:680px){
  .hero{min-height:auto;background:var(--navy);display:block}
  .hero-copy{padding-block:48px 36px}
  .hero::after{content:"";display:block;aspect-ratio:16/9;background:url(hero.webp) right 58%/cover no-repeat}
}

.hero-services{display:grid;grid-template-columns:repeat(2,max-content);column-gap:2rem;row-gap:.35rem;margin:1.45rem 0 1.75rem;padding-inline-start:1.2em;font-weight:600}
.hero-services li::marker{color:var(--sky)}
@media(max-width:460px){.hero-services{grid-template-columns:1fr}}

.whatsapp-contact{position:fixed;z-index:5;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#087844;color:white;box-shadow:0 4px 16px #071d3840}
.whatsapp-contact:hover{background:#056238}
footer .bar{padding-right:70px}

nav a[aria-current="page"]{color:#24558d;text-decoration:underline;text-underline-offset:.35em}
.page-heading{background:var(--navy);color:white;padding-block:54px}
.page-heading h1{font-size:clamp(2.55rem,6vw,4.5rem)}
.page-content{padding-block:42px 64px;min-height:50vh}
.page-content h2{font-size:clamp(1.35rem,3vw,2rem)}
.page-content p{max-width:68ch;color:var(--muted)}
.page-content article+article{margin-top:26px}
.service-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px;margin-bottom:28px}
.service-cards article{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px}
.service-cards article+article{margin-top:0}
.page-content #cotizar{width:100%;padding:24px 0 0}
.inline-link{text-decoration:underline;color:#24558d}

.services-page{position:relative;isolation:isolate;background:#0b2b50}
.services-background{position:absolute;inset:0;z-index:-1;overflow:hidden}
.services-background img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% center;opacity:0;transition:opacity .9s ease}
.services-background img.is-visible{opacity:1}
.services-background::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#071d38a6 0%,#071d3820 36%,#071d38bd 100%)}
.services-page .page-heading{background:none;padding-block:clamp(58px,10vw,128px) 26px}
.services-page .page-heading h1{text-shadow:0 2px 14px #071d38}
.services-page .page-content{min-height:0;padding-top:20px}
.services-page .service-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:18px}
.services-page .service-cards article{background:#f7fafff7;padding:18px 20px}
.services-page .service-cards h2{font-size:clamp(1.0625rem,1.8vw,1.25rem);line-height:1.2;letter-spacing:-.025em}
.services-page .service-cards p{font-size:.9375rem;line-height:1.48;margin:.6rem 0 0;text-align:justify;hyphens:auto}
.background-toggle{margin-top:1rem;border:1px solid #b9ddff80;border-radius:7px;background:#0b2b50;color:white;padding:.5rem .85rem;font:inherit;font-size:.875rem;cursor:pointer}
.background-toggle:hover{background:#24558d}
.background-toggle:focus-visible{outline-color:var(--sky)}
@media(max-width:680px){
  .services-background{position:fixed}
  .services-background img{object-position:76% center}
}
@media(prefers-reduced-motion:reduce){.services-background img{transition:none}}

.company-history{text-align:justify;hyphens:auto}

.site-footer{padding:0;background:linear-gradient(135deg,var(--navy),var(--ink));color:var(--paper)}
.footer-content{display:grid;justify-items:center;text-align:center;gap:26px;padding-block:clamp(36px,6vw,66px)}
.footer-content p{margin:.75rem 0 1.25rem}
.footer-content .footer-brand{margin:0 0 .65rem;color:var(--sky);font-size:.875rem;font-weight:750;letter-spacing:.1em}
.footer-content h2{font-size:clamp(2rem,5vw,3.4rem)}
.footer-actions,.footer-emails,.footer-bottom{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 22px}
.footer-emails{margin-top:14px;overflow-wrap:anywhere}
.footer-actions a:not(.button),.footer-emails a,.footer-location a,.footer-bottom a{color:var(--sky);text-decoration:underline;text-underline-offset:.22em}
.footer-location{border:1px solid #b9ddff55;background:#b9ddff10;border-radius:12px;padding:clamp(18px,3vw,30px)}
.footer-location h3{margin:0}
.footer-location p{margin:.4rem 0 .8rem}
.footer-bottom{border-top:1px solid #b9ddff55;padding:16px 0 22px;font-size:.9375rem}
.site-footer a:focus-visible{outline-color:var(--sky)}
@media(max-width:720px){.footer-emails{flex-direction:column}.footer-bottom{padding-bottom:76px}}

.company-page{position:relative;isolation:isolate}
.company-page::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(logo-rapiservi.webp) center clamp(40px,8vw,105px)/min(78%,680px) auto no-repeat;opacity:.12;mix-blend-mode:multiply}

.blog-video {
  display: block;
  width: min(75%, 33rem);
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.blog-content {
  position: relative;
  isolation: isolate;
}
.blog-background {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  margin-inline: auto;
  width: min(75%, 48rem);
  height: auto;
  aspect-ratio: 752 / 416;
  object-fit: contain;
  opacity: .13;
  pointer-events: none;
  z-index: -1;
}
.blog-motion {
  display: block;
  margin-block-end: 1rem;
}
.blog-motion[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .blog-background {
    display: none;
  }
}
