:root {
    --brand-blue: #00135b;
    --brand-cyan: #00aafc;
    --focus-ring: #ffcf33;
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.hero-contact-section {
    background-image:
        linear-gradient(to right, rgba(0, 19, 91, 0.88), rgba(0, 5, 32, 0.76)),
        url("../img/control-de-plagas-medellin.webp") !important;
}

.hero-primary-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    border: 2px solid #fff;
    border-radius: 0.5rem;
    color: #fff;
    background: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.hero-primary-action.whatsapp {
    background: #137a3f;
}

.marinilla-page .hero-primary-actions {
    justify-content: flex-start;
}

.is-submitting [type="submit"],
[type="submit"][aria-busy="true"] {
    cursor: wait;
    background: #687082 !important;
    color: #fff !important;
    opacity: 0.86;
}

[data-form-status] {
    margin: 0.75rem 0 0;
    font-weight: 600;
}

.form-status-error {
    color: #9d1414;
}

.consent-banner {
    position: fixed;
    z-index: 10000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 760px;
    margin: auto;
    padding: 1rem;
    color: #fff;
    background: #000520;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.75rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.consent-banner p {
    margin: 0 0 0.75rem;
    color: inherit;
    line-height: 1.45;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.consent-actions button,
.consent-actions a {
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid #fff;
    border-radius: 0.35rem;
    color: #fff;
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.consent-actions [data-consent="accept"] {
    color: #00135b;
    background: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    body {
        padding-top: 64px !important;
    }

    header .section-header {
        min-height: 64px !important;
    }

    header .section-header .logo img {
        width: 54px !important;
        height: 54px !important;
    }

    header .info {
        display: none !important;
    }

    .hero-contact-section {
        box-sizing: border-box;
        min-height: min(500px, calc(100svh - 64px));
        height: auto !important;
        margin-top: 0 !important;
        padding: 1.25rem 1rem !important;
        background-position: center;
    }

    .hero-contact-content {
        margin: 0 auto !important;
    }

    .hero-contact-content h1 {
        margin: 0 0 0.65rem;
        font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
        line-height: 1.08;
    }

    .hero-contact-content p {
        margin: 0 auto;
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    .hero-primary-actions {
        margin-top: 1rem;
    }

    .hero-primary-action {
        flex: 1 1 135px;
        max-width: 190px;
    }

    .contact-main-container {
        margin-top: 0 !important;
    }

    .contact-info-column {
        padding-top: 2rem !important;
    }

    .marinilla-page {
        padding-top: 0 !important;
    }

    .marinilla-page header .llamanos,
    .marinilla-page header .roedores,
    .marinilla-page header .navegacion nav,
    .marinilla-page .home .descuento {
        display: none !important;
    }

    .marinilla-page header .navegacion {
        min-height: 64px;
        padding: 0.25rem 1rem;
        flex-direction: row;
        align-items: center;
    }

    .marinilla-page header .navegacion .logo {
        width: auto;
        height: 56px;
        margin: 0;
    }

    .marinilla-page header .navegacion .logo img {
        width: 56px;
        height: 56px;
        margin: 0;
        object-fit: contain;
    }

    .marinilla-page .home {
        min-height: min(520px, calc(100svh - 64px));
        padding: 1.25rem 1rem !important;
        flex-direction: row !important;
        align-items: center;
        background-image:
            linear-gradient(rgba(0, 19, 91, 0.78), rgba(0, 5, 32, 0.78)),
            url("../marinilla/img/expertos-fumigando-en-marinilla.webp") !important;
        background-size: cover;
        background-position: center;
    }

    .marinilla-page .home .control {
        width: 100% !important;
        padding: 0 !important;
    }

    .marinilla-page .home .control h1 {
        width: min(100%, 520px) !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #fff;
        font-family: system-ui, sans-serif;
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
        line-height: 1.12;
    }

    .marinilla-page .hero-primary-actions {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: 100%;
    }

    .marinilla-page .hero-primary-action {
        box-sizing: border-box;
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: none;
        height: auto !important;
        min-height: 48px;
        margin: 0 !important;
        padding: 0.65rem 0.8rem !important;
        font-size: 0.9rem !important;
        line-height: 1.15 !important;
    }

    .consent-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        max-height: 140px;
        padding: 0.65rem;
        overflow-y: auto;
    }

    .consent-banner p {
        margin-bottom: 0.4rem !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
    }

    .consent-actions {
        flex-wrap: nowrap !important;
        gap: 0.4rem;
    }

    .consent-actions button,
    .consent-actions a {
        flex: 0 1 auto;
        width: auto !important;
        min-height: 44px;
        margin: 0 !important;
        padding: 0.4rem 0.55rem !important;
        font-size: 0.78rem !important;
        line-height: 1.1 !important;
        white-space: nowrap;
    }

    html.consent-pending .hero-contact-section,
    html.consent-pending .marinilla-page .home {
        box-sizing: border-box;
        min-height: calc(100svh - 64px);
        align-items: flex-start !important;
        padding-top: 0.75rem !important;
        padding-bottom: 9rem !important;
    }

    html.consent-pending .hero-contact-content {
        margin-bottom: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
