/* www.sprayandlock.com — the whole site's stylesheet.
 *
 * Rebuilt from the WordPress/Elementor site it replaced: colors, type scale,
 * spacing and breakpoints are the Elementor kit's (tablet ≤1024px, phone
 * ≤767px). Bump the ?v= on every page's <link> when this file changes:
 * .htaccess lets browsers cache it for a month. */

:root {
    --green: #447A46;
    --green-dark: #2E622F;
    --green-deep: #2C572D;
    --green-darkest: #274F28;
    --lime: #99CC03;
    --navy: #1F133A;
    --grey: #6B6B6B;
    --light: #F2F2F2;
    --highlight: #003300;
    --head: "Jost", sans-serif;
    --body: "Manrope", sans-serif;
    --boxed: 1280px;
    --text-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
    margin: 0;
    background: #fff;
    color: var(--grey);
    font: 400 var(--text-size)/1.5 var(--body);
    -webkit-text-size-adjust: 100%;
}

img, svg, video, iframe { display: block; max-width: 100%; }
/* Slide-in animations start up to 60px outside their box; clip, not hidden,
   so the sticky header keeps working. */
main { overflow-x: clip; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

.skip-link {
    position: absolute; left: 8px; top: -100px; z-index: 100;
    background: #fff; color: var(--navy); padding: 8px 12px; border-radius: 5px;
}
.skip-link:focus { top: 28px; }

.boxed { width: 100%; max-width: var(--boxed); margin: 0 auto; }

.title {
    color: #000;
    font: 600 39px/1.1 var(--head);
    letter-spacing: -2px;
}

/* A label set like a button: "Se aplica en superficies como:" */
.tag {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 24px;
    background: var(--green-deep);
    color: #fff;
    font: 500 12px/1.5 var(--head);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: 10px 20px;
    border: 0; border-radius: 5px;
    background: var(--green);
    color: #fff;
    font: 500 12px/1.5 var(--head);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--green-dark); }
.btn .icon { width: 12px; height: 12px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    border-top: 20px solid var(--green);
    border-bottom: 1px solid var(--green);
}
.site-header__inner {
    display: flex; align-items: center;
    max-width: var(--boxed); margin: 0 auto;
    min-height: 65px;
}
.site-header__logo { flex: 1; }
.site-header__logo img { width: 300px; height: 50px; }

.nav ul { display: flex; gap: 33px; margin: 0; padding: 0; list-style: none; }
.nav a {
    position: relative; display: block;
    padding: 21px 0;
    color: #000;
    font: 600 15px/1.5 var(--head);
    text-transform: uppercase;
    text-decoration: none;
    transition: color .3s;
}
.nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 5px; background: var(--green-dark);
    opacity: 0; transition: opacity .3s;
}
.nav a:hover, .nav a:focus-visible { color: var(--navy); }
.nav a:hover::after, .nav a:focus-visible::after { opacity: 1; }

.menu-toggle {
    display: none;
    padding: 7px; border: 0; border-radius: 3px;
    background: none; color: var(--navy);
    font-size: 28px; line-height: 0;
    cursor: pointer;
}
.menu-toggle:hover { color: var(--green-dark); }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-menu { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.site-header__actions {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    width: 273px; margin-left: 14px;
}

.lang { display: flex; margin: 0; padding: 0; list-style: none; }
.lang li + li { border-left: 1px solid #000; }
.lang a {
    display: block; padding: 0 8px;
    color: var(--green-dark);
    font: 700 16px/1.5 var(--body);
    text-decoration: none;
    transition: color .3s;
}
.lang li:first-child a { padding-left: 0; }
.lang a:hover { color: #1A1A1A; }

/* ── Floating contact bar ───────────────────────────────────────────────── */
.float-bar {
    position: fixed; right: 0; top: 50%; z-index: 40;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
}
.float-bar a {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    background: var(--green-darkest);
    color: #fff;
    font-size: 25px;
    transition: background-color .3s;
}
.float-bar a:hover, .float-bar a:focus-visible { background: var(--green); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    min-height: 100vh;
    background: #000 url(../img/hero-poster.jpg) center / cover;
    color: #fff;
}
/* The YouTube video covers the hero like a background: sized 16:9 to the
   larger of the hero's sides, plus 120px so YouTube's title bar and logo fall
   outside it. It fades in once its start-up controls are gone; the poster
   shows until then. */
.hero__video { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.hero__video iframe {
    position: absolute; top: 50%; left: 50%;
    width: 100%; height: 100%;
    width: calc((max(56.25cqw, 100cqh) + 120px) * 16 / 9);
    height: calc(max(56.25cqw, 100cqh) + 120px);
    max-width: none;
    transform: translate(-50%, -50%);
    border: 0; pointer-events: none;
    opacity: 0;
    animation: hero-video-in 1s ease 3s forwards;
}
@keyframes hero-video-in { to { opacity: 1; } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hero__inner { position: relative; z-index: 1; }
.hero__content {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    width: 60%;
    padding: 48px 48px 48px 0;
}
.hero__logo { width: 56%; }
.hero__divider { width: 50px; margin: 0; border: 0; border-top: 2px solid var(--green-deep); }
.hero__text { font: 400 25px/1.3 var(--head); }
.hero__text strong { font-weight: 700; }
.hero .btn { padding: 15px 20px; font-size: 20px; }

/* ── ¿Qué es Spray & Lock? ──────────────────────────────────────────────── */
.about { display: flex; min-height: 100vh; }
.about__text {
    display: flex; flex-direction: column; gap: 20px;
    width: 50.5%;
    padding: 128px 48px 48px 16px;
}
.about__text .title { text-align: center; }
.about__text strong { color: var(--highlight); }
.about__small { font-size: 13px; line-height: 19px; }
.about__media { display: flex; align-items: center; justify-content: center; flex: 1; padding: 10px; }
.about__media img { width: 75%; }

.checks { display: flex; gap: 20px; }
.checks ul { margin: 0; padding: 10px; list-style: none; }
.checks li { display: flex; align-items: center; gap: 4px; }
.checks li + li { margin-top: 3px; }
.checks .icon { width: 14px; height: 14px; margin-right: 4px; color: var(--green); }
.checks--surfaces ul:first-child { width: 278px; }
.checks--properties ul:first-child { width: 162px; }

/* ── Beneficios ─────────────────────────────────────────────────────────── */
.benefits {
    display: flex; align-items: center;
    min-height: 100vh;
    padding: 90px 0;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
}
.benefits__inner { display: flex; align-items: center; gap: 20px; padding: 0 10px; }
.benefits__media { width: 39.6%; flex: none; }
.benefits__media img { width: 100%; max-width: 499px; margin: 0 auto; }
.benefits__body { flex: 1; min-width: 0; }
.benefits .title { color: #fff; text-align: center; margin-bottom: 30px; }
.benefits__grid { display: grid; grid-template-columns: 387fr 399fr; }
.benefits__col { display: flex; flex-direction: column; gap: 45px; padding: 16px 32px 48px 16px; }

.benefit { display: flex; align-items: flex-start; gap: 14px; }
.benefit img { width: 70px; height: 70px; flex: none; object-fit: contain; }
.benefit h3 { color: #fff; font: 600 20px/1.4 var(--head); }
.benefit p { font-size: 16px; line-height: 1.4; }

/* ── Servicio Integral ──────────────────────────────────────────────────── */
.service {
    position: relative;
    display: flex; align-items: center;
    min-height: 100vh;
    background: #fff;
}
.service::before {
    content: ""; position: absolute; inset: 0;
    background: url(../img/img_1.png) center / cover;
    opacity: .29;
}
.service__inner {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 652px;
    padding: 30px;
}
.service__text {
    display: flex; flex-direction: column; align-items: center; gap: 40px;
    width: 54%; flex: none;
}
.service__text .tag {
    align-self: center;
    padding: 12px 24px;
    font-size: 25px;
    text-transform: none;
}
.service__body {
    align-self: stretch;
    color: #000;
    font-size: 20px; line-height: 25px; letter-spacing: .3px;
}
.service__media { flex: 1; display: flex; justify-content: center; }
.service__media img { width: 100%; max-width: 550px; }

/* ── Contacto ───────────────────────────────────────────────────────────── */
.contact { display: flex; min-height: 66vh; }
.contact__info {
    display: flex; flex-direction: column; justify-content: center; gap: 20px;
    width: 49.65%;
    padding: 48px 96px 48px 80px;
    background: var(--green-deep);
    color: #fff;
}
.contact__info .title { color: #fff; }
.contact__ways { display: flex; margin-top: 20px; }
.contact__way {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    width: 160px; padding: 10px 10px 0;
    text-align: center;
}
.contact__way .icon { width: 35px; height: 35px; }
.contact__way h3 { font: 600 23px/1.1 var(--head); letter-spacing: .1px; color: #fff; }
.contact__way a, .contact__way p { color: #fff; font-size: 16px; line-height: 1.5; }

.contact__form {
    display: flex; flex-direction: column; justify-content: center; gap: 20px;
    flex: 1;
    padding: 48px 96px;
    background: var(--light);
    border-radius: 5px;
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.form__full { grid-column: 1 / -1; }
.form label.visually-hidden, .visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.form input, .form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light);
    border-radius: 5px 5px 2px 2px;
    background: #fff;
    box-shadow: inset 0 -3px 0 0 #DED9D9;
    color: var(--navy);
    font: 400 var(--text-size)/1.5 var(--body);
    transition: box-shadow .2s, border-color .2s;
}
.form input { height: 45px; }
.form textarea { height: 109px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #757575; }
.form input:focus, .form textarea:focus {
    outline: none;
    border-color: var(--green-deep);
    box-shadow: inset 0 -3px 0 0 var(--lime);
    color: var(--grey);
}
.form .btn { justify-self: start; min-width: 100px; margin-top: 12px; }
.form__error {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-left: 4px solid #c0392b;
    background: #fff;
    color: #8a1f13;
}
.form__error a { font-weight: 700; }
/* The honeypot: people never see it, bots fill it in. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Nosotros band ──────────────────────────────────────────────────────── */
.about-us {
    position: relative;
    background: url(../img/ecology-concept.jpg) center;
    color: #fff;
}
.about-us::before { content: ""; position: absolute; inset: 0; background: var(--green-dark); opacity: .88; }
.about-us__inner { position: relative; display: flex; align-items: center; padding: 32px; }
.about-us__logo { width: 33.95%; flex: none; padding: 10px; }
.about-us__logo img { width: 349px; margin: 0 auto; }
.about-us__text { flex: 1; padding: 0 10px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    background: var(--green);
    color: #fff;
}
.site-footer::before {
    content: ""; position: absolute; inset: 0;
    background: url(../img/img_1.png) center / cover;
    opacity: .2;
}
.site-footer__inner {
    position: relative;
    padding: 26px 10px;
    font: 600 12px/2 var(--body);
    text-align: center;
    text-transform: uppercase;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Inner pages (privacy notices, thank-you) ──────────────────────────── */
.page {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    max-width: var(--boxed);
    margin: 140px auto 120px;
    padding: 0 10px;
}
.page h1 {
    color: #000;
    font: 600 48px/1 var(--head);
    letter-spacing: -2px;
    text-align: center;
}
.page__lead { color: var(--navy); font: 400 25px/1.3 var(--head); text-align: center; }
/* The privacy text asked for Montserrat, which the old site never loaded, so it
 * always rendered in the system sans-serif; this keeps that look. */
.page__legal { color: var(--navy); font: 400 16px/32.5px sans-serif; }
.page__legal a { color: inherit; text-decoration: none; }
.page .btn { padding: 12px 24px; }
.page--notfound { margin: 100px auto; }
.page--notfound .page__lead { font-size: 20px; }
.page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ── Entrance animations (only once site.js has marked the page) ──────── */
.anim [data-anim] { opacity: 0; transition: opacity 1.25s ease, transform 1.25s ease; }
.anim [data-anim="up"] { transform: translateY(60px); }
.anim [data-anim="left"] { transform: translateX(-60px); }
.anim [data-anim="right"] { transform: translateX(60px); }
.anim [data-anim].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim [data-anim] { opacity: 1; transform: none; transition: none; }
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root { --text-size: 15px; }
    html { scroll-padding-top: 71px; }
    .title { font-size: 31px; }

    .site-header__inner { min-height: 50px; padding: 0 20px; }
    .site-header__logo img { width: 230px; height: auto; }
    .site-header__actions { width: auto; }
    .site-header .btn { font-size: 11px; }
    .menu-toggle { display: block; margin: 0 24px 0 auto; }
    .nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        padding: 10px 21px;
        background: #fff;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, .1);
    }
    .menu-open .nav { display: block; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav li + li { border-top: 1px solid var(--light); }
    .nav a { padding: 10px 0; color: var(--navy); font-size: 17px; text-align: center; }
    .nav a::after { display: none; }
    .nav a:hover { color: var(--green-dark); }

    .hero { min-height: 900px; padding: 45px 0; }
    .hero__content { padding: 45px 45px 45px 30px; }
    .hero__text { font-size: 21px; }

    .about { min-height: 0; padding: 45px 0; }
    .about__text { padding: 30px; }
    .checks--surfaces ul:first-child { width: 50%; }
    .checks--properties ul:first-child { width: 40%; }

    .benefits { min-height: 0; padding: 45px 0; }
    .benefits__inner { flex-direction: column; }
    .benefits__media { width: 100%; }
    .benefits__media img { max-width: 420px; }
    .benefits__col { padding: 30px; }
    .benefit h3 { font-size: 18px; }

    .service { min-height: 0; padding-bottom: 45px; }
    .service__text { width: 60%; }

    .contact { flex-direction: column; min-height: 0; }
    .contact__info, .contact__form { width: 100%; padding: 60px; }
    .contact__ways { justify-content: center; }

    .about-us__inner { padding: 45px; }
    .about-us__logo img { width: 280px; }
}

/* ── Phone ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    :root { --text-size: 14px; }
    html { scroll-padding-top: 138px; }
    .title { font-size: 29px; }

    .site-header__inner { flex-wrap: wrap; padding: 20px 20px 0; }
    .site-header__logo img { width: 218px; }
    .menu-toggle { margin-right: 18px; }
    .site-header__actions { width: 100%; margin: 10px 0; gap: 20px; }
    .site-header .btn { font-size: 10px; }
    .lang a { font-size: 17px; line-height: 21px; }

    .hero { min-height: 100vh; min-height: 100svh; padding: 0; }
    .hero__inner { padding: 0; }
    .hero__content { width: 100%; align-items: center; padding: 21px; text-align: center; }
    .hero__logo { width: 75%; }
    .hero__text { font-size: 20px; line-height: 1.3; }

    .about { flex-direction: column; padding: 28px 0; }
    .about__text, .about__media { width: 100%; padding: 21px; }
    .about__media img { width: 80%; }
    .checks--surfaces { flex-direction: column; }
    .checks--surfaces ul:first-child { width: auto; }
    .checks--properties ul:first-child { width: auto; min-width: 139px; }
    .tag { font-size: 10px; }

    .benefits { padding: 0 0 21px; }
    .benefits__inner { padding: 0; gap: 0; }
    .benefits__media { padding: 36px 0 0; }
    .benefits__media img { width: 68%; }
    .benefits .title { margin: 0; padding-top: 50px; }
    .benefits__grid { grid-template-columns: 1fr; }
    .benefits__col { padding: 58px 31px 0; }
    .benefits__col + .benefits__col { padding-top: 45px; }
    .benefit h3 { font-size: 16px; }

    .service { padding-bottom: 28px; }
    .service__inner { flex-direction: column; padding: 30px; }
    .service__text { width: 100%; padding: 21px 21px 0; }
    .service__text .tag { font-size: 25px; text-align: center; }
    .service__media { width: 100%; padding: 21px; }

    .contact__info, .contact__form { padding: 28px; }
    .contact__info { text-align: center; }
    .contact__ways { flex-direction: column; align-items: center; gap: 20px; margin-top: 10px; }
    .contact__way { width: 100%; }
    .contact__way .icon { width: 48px; height: 48px; }
    .contact__way h3 { font-size: 37px; }
    .contact__way a, .contact__way p { font-size: 27px; line-height: 1.1; }
    .form { grid-template-columns: 1fr; gap: 20px; }
    .form input { height: 52px; }

    .about-us__inner { flex-direction: column; padding: 21px; text-align: center; }
    .about-us__logo { width: 100%; }
    .about-us__logo img { width: 256px; }

    .site-footer__inner { padding: 24px 14px; line-height: 21px; }

    .page { margin: 140px auto 100px; padding: 0 20px; }
    .page h1 { font-size: 34px; }
    .page__lead { font-size: 20px; }
    .page__legal { line-height: 26px; text-align: center; }
}
