:root {
    --landing-green: #8cc63f;
    --landing-green-dark: #6f9f32;
    --landing-text: #30343b;
    --landing-muted: #5f6670;
    --landing-border: #d8dde3;
    --landing-dark: #171b20;
    --landing-max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.spanish-landing-page {
    margin: 0;
    overflow-x: hidden;
    color: var(--landing-text);
    background: #fff;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    line-height: 1.55;
}

body.spanish-landing-page img,
body.spanish-landing-page svg {
    max-width: 100%;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.screen-reader-text:focus,
.skip-link:focus {
    position: fixed !important;
    z-index: 100000 !important;
    top: 12px !important;
    left: 12px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    clip: auto !important;
    overflow: visible !important;
    color: #fff !important;
    background: #111 !important;
    border-radius: 4px;
    text-decoration: none;
}

body.spanish-landing-page :focus-visible {
    outline: 3px solid #245ca6 !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

#contenido-principal,
#comparar-tarifas,
#preguntas-frecuentes {
    scroll-margin-top: 96px;
}

.landing-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--landing-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.landing-header__inner {
    width: min(calc(100% - 40px), var(--landing-max-width));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.landing-header .landing-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 190px;
    max-width: 190px;
}

.landing-header .landing-logo img {
    display: block;
    width: 190px !important;
    max-width: 100% !important;
    height: auto !important;
}

.landing-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.landing-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--landing-text);
    text-decoration: none;
    line-height: 1.25;
}

.landing-phone span {
    font-size: 0.84rem;
    color: var(--landing-muted);
}

.landing-phone strong {
    font-size: 1.12rem;
}

.landing-button,
.landing-final-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border: 2px solid var(--landing-green);
    border-radius: 3px;
    color: #fff;
    background: var(--landing-green);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.landing-button:hover,
.landing-final-cta__button:hover {
    color: var(--landing-green-dark);
    background: #fff;
    border-color: var(--landing-green-dark);
}

/* The Elementor/child-theme styles include more specific link-color rules.
 * Keep the standalone header CTA white on green in every interaction state. */
.landing-header .landing-button,
.landing-header .landing-button:visited {
    color: #fff !important;
    background: var(--landing-green) !important;
    border-color: var(--landing-green) !important;
}

.landing-header .landing-button:hover,
.landing-header .landing-button:focus-visible {
    color: #fff !important;
    background: var(--landing-green-dark) !important;
    border-color: var(--landing-green-dark) !important;
}

/* Retain the visual behavior of the original ZIP-code forms without loading
 * the database-generated WordPress custom-CSS block. */
.form_signup.form-horizontal form {
    display: flex;
    width: 100%;
    max-width: 560px;
    margin: 0;
}

.form_signup.form-horizontal form input {
    min-width: 0;
    min-height: 52px;
    padding: 10px 18px;
    border: 2px solid #b8bec5;
    border-radius: 0;
    font: inherit;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
}

.form_signup.form-horizontal form input[type="text"] {
    flex: 2 1 260px;
    color: #222;
    background: #fff;
    border-right-width: 0;
}

.form_signup.form-horizontal form input[type="text"]::placeholder {
    color: #737a83;
    opacity: 1;
}

.form_signup.form-horizontal form button[type="submit"] {
    flex: 0 1 170px;
    min-width: 0;
    min-height: 52px;
    padding: 10px 18px;
    border: 2px solid var(--landing-green);
    border-radius: 0;
    font: inherit;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: var(--landing-green);
    border-color: var(--landing-green);
    transition: background-color 160ms ease, color 160ms ease;
}

.form_signup.form-horizontal form button[type="submit"]:hover {
    color: var(--landing-green-dark);
    background: #fff;
    border-color: var(--landing-green-dark);
}

.elementor,
.elementor-section,
.elementor-container,
.elementor-widget,
.elementor-widget-wrap,
.elementor-form,
.elementor-form-fields-wrapper,
.elementor-field-group,
.elementor-field,
input,
select,
textarea {
    max-width: 100%;
}

.landing-state-item {
    pointer-events: none;
}

/* State tiles now link to the corresponding state page. The anchor wraps the
 * existing Elementor icon box so the full icon/label area is clickable without
 * changing its visual styling. */
.landing-state-link,
.landing-state-link:visited {
    display: block;
    color: inherit;
    text-decoration: none;
}

.landing-state-link:hover,
.landing-state-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.landing-state-link:hover .elementor-icon-box-wrapper {
    cursor: pointer;
}

/* Native details/summary keeps the FAQ functional without Elementor JS. */
.e-n-accordion details > summary {
    cursor: pointer;
}

.e-n-accordion details > summary::-webkit-details-marker {
    display: none;
}

.e-n-accordion details:not([open]) .e-opened {
    display: none;
}

.e-n-accordion details[open] .e-closed {
    display: none;
}

.e-n-accordion details > summary .e-n-accordion-item-title-text {
    display: inline;
}

.landing-final-cta {
    padding: clamp(46px, 7vw, 84px) 20px;
    color: #fff;
    background: linear-gradient(135deg, #1f2933 0%, #11171d 100%);
    text-align: center;
}

.landing-final-cta__inner {
    width: min(100%, 820px);
    margin: 0 auto;
}

.landing-final-cta__eyebrow {
    margin: 0 0 8px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.landing-final-cta__eyebrow span {
    color: var(--landing-green);
}

.landing-final-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.landing-final-cta p {
    margin: 0 auto 24px;
    max-width: 680px;
    color: #eef1f4;
    font-size: 1.08rem;
}

.landing-final-cta .form_signup form {
    margin: 0 auto;
}

.landing-final-cta__note {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    color: #d5dbe0 !important;
}

.landing-footer {
    color: #f2f4f6;
    background: var(--landing-dark);
}

.landing-footer__inner {
    width: min(calc(100% - 40px), var(--landing-max-width));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.7fr) minmax(260px, 1fr);
    gap: 38px;
}

.landing-footer__logo {
    display: block;
    width: min(220px, 100%);
    height: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.landing-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.2rem;
}

.landing-footer p {
    margin: 0;
    color: #d5dbe0;
}

.landing-footer a {
    color: #fff;
    text-underline-offset: 3px;
}

.landing-footer a:hover {
    color: var(--landing-green);
}

.landing-footer__legal {
    width: min(calc(100% - 40px), var(--landing-max-width));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.88rem;
}

.landing-footer__legal p {
    margin: 0;
}

@media (max-width: 820px) {
    .landing-header__inner {
        min-height: 76px;
    }

    .landing-header .landing-logo {
        flex-basis: 170px;
        max-width: 170px;
    }

    .landing-header .landing-logo img {
        width: 170px !important;
    }

    .landing-phone span {
        display: none;
    }

    .landing-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .landing-footer__inner > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .landing-header__inner {
        width: min(calc(100% - 28px), var(--landing-max-width));
        gap: 12px;
    }

    .landing-header .landing-logo {
        flex-basis: 135px;
        max-width: 135px;
    }

    .landing-header .landing-logo img {
        width: 135px !important;
    }

    .landing-phone {
        display: none;
    }

    .landing-button {
        min-height: 42px;
        padding: 9px 14px;
        font-size: 0.92rem;
    }

    .form_signup.form-horizontal form {
        flex-direction: column;
        max-width: 100%;
    }

    .form_signup.form-horizontal form input[type="text"],
    .form_signup.form-horizontal form button[type="submit"] {
        flex: 1 1 auto;
        width: 100%;
        border-width: 2px;
    }

    .form_signup.form-horizontal form input[type="text"] {
        border-bottom-width: 0;
    }

    .landing-footer__inner {
        width: min(calc(100% - 32px), var(--landing-max-width));
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .landing-footer__inner > :first-child {
        grid-column: auto;
    }

    .landing-footer__legal {
        width: min(calc(100% - 32px), var(--landing-max-width));
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
