/* Envoy Property Wash Solutions - sitio publico
   Mobile first. Breakpoints 640 y 1024. Diseñado primero a 390px. */

:root {
    --blue: #1F5AC8;
    --navy: #12306B;
    --cyan: #29B6F6;
    --bg: #F5F7FA;
    --ink: #111827;
    --green: #3FA34D;

    --white: #FFFFFF;
    --gray-100: #EDF1F7;
    --gray-200: #DCE3ED;
    --gray-400: #8D9AAE;
    --gray-600: #56637A;
    --danger: #C0392B;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(18, 48, 107, .10);
    --shadow: 0 4px 16px rgba(18, 48, 107, .12);
    --shadow-lg: 0 12px 32px rgba(18, 48, 107, .18);

    --wrap: 1120px;
    --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    /* Espacio para la barra sticky de llamada en movil */
    padding-bottom: 72px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: 20px;
}

.section { padding-block: 48px; }
.section--tight { padding-block: 32px; }
.section--gray { background: var(--bg); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section__head { max-width: 620px; margin-bottom: 28px; }
.section__head p { color: var(--gray-600); margin-bottom: 0; }
.section--navy .section__head p { color: rgba(255, 255, 255, .82); }

.eyebrow {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .5em;
}
.section--navy .eyebrow { color: var(--cyan); }

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); }

.btn--cta { background: var(--cyan); color: var(--navy); }
.btn--cta:hover { background: var(--white); }

.btn--ghost {
    background: transparent;
    color: var(--blue);
    border-color: var(--gray-200);
}
.btn--ghost:hover { border-color: var(--blue); background: var(--bg); }

.btn--ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .4);
}
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }

.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 1.06rem; padding-inline: 30px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo__mark { flex: 0 0 auto; }
.logo__text small {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .66rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.nav { display: none; }
.nav a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--gray-600);
    padding: 8px 2px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }

.site-header .btn { display: none; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .85rem;
    color: var(--navy);
    cursor: pointer;
}

.nav-drawer {
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}
.nav-drawer ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.nav-drawer a {
    display: block;
    padding: 14px 20px;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-100);
}
.nav-drawer .nav-drawer__cta { padding: 16px 20px 0; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 85% 0%, rgba(41, 182, 246, .28), transparent 60%),
        linear-gradient(160deg, #12306B 0%, #0D2350 100%);
    z-index: 0;
}
.hero__inner { position: relative; z-index: 1; padding-block: 52px 48px; }
.hero h1 { font-size: 2.1rem; max-width: 18ch; }
.hero__sub {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, .88);
    max-width: 40ch;
    margin-bottom: 26px;
}
.hero__actions { display: grid; gap: 12px; }
.hero__points {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .9);
}
.hero__points li { display: flex; align-items: flex-start; gap: 10px; }
.hero__points svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- Grids y cards ---------- */

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(31, 90, 200, .1);
    color: var(--blue);
    margin-bottom: 14px;
}
.service-card--lawn .service-card__icon { background: rgba(63, 163, 77, .12); color: var(--green); }
.service-card h3 { margin-bottom: .3em; font-size: 1.1rem; }
.service-card p { color: var(--gray-600); font-size: .95rem; margin-bottom: 16px; }
.service-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}
.price {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.1;
}
.price small {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
}
.service-card__link { font-weight: 600; font-size: .92rem; white-space: nowrap; }

.line-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.line-badge--washing { background: rgba(31, 90, 200, .1); color: var(--blue); }
.line-badge--lawn { background: rgba(63, 163, 77, .12); color: var(--green); }

/* ---------- Comparador antes/despues ---------- */

.compare {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: var(--shadow);
}
.compare__pair { position: relative; aspect-ratio: 4 / 3; }
.compare__pair img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compare__after { clip-path: inset(0 0 0 50%); }
.compare__range {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
.compare__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 48px; height: 100%;
    cursor: ew-resize;
}
.compare__range::-moz-range-thumb {
    width: 48px; height: 200px;
    border: 0; background: transparent; cursor: ew-resize;
}
.compare__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(18, 48, 107, .2);
    pointer-events: none;
}
.compare__handle::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2312306B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M9 7 4 12l5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
    box-shadow: var(--shadow);
}
.compare__tag {
    position: absolute;
    top: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(18, 48, 107, .82);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    pointer-events: none;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; background: rgba(41, 182, 246, .92); color: var(--navy); }

.compare__meta { padding: 14px 18px; background: var(--white); border-top: 1px solid var(--gray-200); }
.compare__meta strong { display: block; font-family: var(--font-head); color: var(--navy); }
.compare__meta span { font-size: .88rem; color: var(--gray-600); }

/* Sin JS el range no hace nada: mostramos las dos fotos lado a lado. */
.no-js .compare__pair { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 8 / 3; }
.no-js .compare__pair img { position: static; clip-path: none; }
.no-js .compare__range, .no-js .compare__handle { display: none; }

.gallery-empty {
    padding: 40px 24px;
    text-align: center;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    background: var(--white);
}

/* ---------- Reseñas ---------- */

.review { display: flex; flex-direction: column; height: 100%; }
.stars { color: #F5A623; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-size: .97rem; margin-bottom: 16px; }
.review__who {
    margin-top: auto;
    font-size: .88rem;
    color: var(--gray-600);
    font-weight: 600;
}

/* ---------- Areas ---------- */

.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.areas li {
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-600);
}
.section--navy .areas li {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .92);
}

/* ---------- Formulario ---------- */

.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow);
}

.field { margin-bottom: 20px; }
.field label, .field legend {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .88rem;
    color: var(--navy);
    margin-bottom: 7px;
    padding: 0;
}
.field__hint { display: block; font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--gray-400); margin-top: 3px; }
.field .optional { font-weight: 600; color: var(--gray-400); text-transform: none; letter-spacing: 0; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; }
select {
    appearance: none;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356637A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 20px no-repeat;
    padding-right: 40px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 90, 200, .15);
}

.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__error { display: block; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--danger); }

.row { display: grid; gap: 0; }

/* Toggle washing / lawn */
.line-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.line-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.line-toggle label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 14px 16px;
    text-align: left;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: border-color .15s ease, background-color .15s ease;
}
.line-toggle label small {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: .82rem;
    color: var(--gray-400);
}
.line-toggle input:checked + label { border-color: var(--blue); background: rgba(31, 90, 200, .06); }
.line-toggle input:focus-visible + label { box-shadow: 0 0 0 3px rgba(31, 90, 200, .15); }
.line-toggle input[value="lawn"]:checked + label { border-color: var(--green); background: rgba(63, 163, 77, .07); }

/* Radios de contacto */
.radio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-row label {
    margin: 0;
    padding: 13px 8px;
    text-align: center;
    font-size: .95rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
}
.radio-row input:checked + label { border-color: var(--blue); background: rgba(31, 90, 200, .06); }
.radio-row input:focus-visible + label { box-shadow: 0 0 0 3px rgba(31, 90, 200, .15); }

/* Upload de fotos */
.photo-drop {
    position: relative;
    padding: 22px 18px;
    text-align: center;
    background: var(--bg);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
}
.photo-drop:hover { border-color: var(--blue); }
.photo-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.photo-drop__icon { color: var(--blue); margin-bottom: 8px; }
.photo-drop strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .98rem; }
.photo-drop span { font-size: .85rem; color: var(--gray-600); }
.photo-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.photo-list li {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 9px 12px;
    background: var(--bg);
    border-radius: 8px;
    font-size: .88rem;
    color: var(--gray-600);
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zip-note {
    margin-top: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--green);
}
.zip-note--out { color: var(--gray-600); font-weight: 400; }

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    font-size: .95rem;
}
.alert--error { background: #FDECEA; border: 1px solid #F5C6C0; color: #8E2B20; }
.alert--warn { background: #FFF6E5; border: 1px solid #FFE0A3; color: #8A5B00; }
.alert--ok { background: #EAF7EC; border: 1px solid #BEE5C4; color: #1F6B2B; }

.form-legal { font-size: .82rem; color: var(--gray-400); margin: 14px 0 0; }

/* ---------- Thanks ---------- */

.thanks { text-align: center; padding-block: 56px; }
.thanks__icon {
    width: 72px; height: 72px;
    margin: 0 auto 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(63, 163, 77, .12);
    color: var(--green);
}
.thanks__next {
    max-width: 460px;
    margin: 28px auto 0;
    text-align: left;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}
.thanks__next li {
    display: flex; gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: .95rem;
}
.thanks__next b { font-family: var(--font-head); color: var(--navy); }

/* ---------- Contacto / mapa ---------- */

.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list svg { flex: 0 0 auto; color: var(--blue); margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); }
.contact-list a { font-size: 1.05rem; font-weight: 600; }

.map-frame {
    border: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
}

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { font-size: 1.7rem; }
.cta-band p { max-width: 44ch; margin-inline: auto; color: rgba(255, 255, 255, .85); }
.cta-band__actions { display: grid; gap: 12px; margin-top: 26px; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .78);
    padding-block: 40px 32px;
    font-size: .92rem;
}
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer h4 {
    font-size: .8rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Barra sticky movil ---------- */

.call-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 16px rgba(18, 48, 107, .1);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.call-bar .btn { min-height: 50px; font-size: .97rem; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 18px;
    background: var(--navy);
    color: var(--white);
}
.skip-link:focus { left: 0; }

/* ---------- Error ---------- */

.error-page { text-align: center; padding-block: 72px; }
.error-page__code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--gray-200);
}

/* ---------- 640px ---------- */

@media (min-width: 640px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero__inner { padding-block: 76px 68px; }
    .hero h1 { font-size: 3rem; }
    .hero__sub { font-size: 1.18rem; }
    .hero__actions { grid-auto-flow: column; justify-content: start; }
    .hero__points { grid-template-columns: 1fr 1fr; gap: 12px 24px; }

    .grid--2 { grid-template-columns: 1fr 1fr; }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .grid { gap: 20px; }

    .row--2 { grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-card { padding: 32px; }
    .section { padding-block: 64px; }
    .cta-band__actions { grid-auto-flow: column; justify-content: center; }
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- 1024px ---------- */

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
    .call-bar { display: none; }

    .nav { display: flex; align-items: center; gap: 26px; }
    .nav-toggle, .nav-drawer { display: none; }
    .site-header .btn { display: inline-flex; }
    .site-header__inner { min-height: 76px; }

    .hero__inner { padding-block: 96px 88px; }
    .hero h1 { font-size: 3.4rem; }

    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .section { padding-block: 80px; }

    .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
    .split--form { grid-template-columns: .9fr 1.1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
