/* HEADER: LANGUAGE SWITCH, ACTIVE NAVIGATION AND READING PROGRESS */
.header {
    border-bottom: 1px solid #dbe8de;
}
.nav {
    transition: min-height .25s ease;
}
.header.is-scrolled .nav {
    min-height: 70px;
}
.nav-actions {
    margin-left: auto;
}
.menu {
    gap: 20px;
}
.menu a {
    position: relative;
    padding: 8px 0;
}
.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.menu a:hover::after, .menu a[aria-current="location"]::after {
    transform: scaleX(1);
}
.language-switch {
    display: flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #f1f7f2;
    white-space: nowrap;
}
.language-switch a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 24px;
    font-weight: 800;
    font-size: .875rem;
    transition: background .2s, transform .2s;
}
.language-switch a[aria-current="page"] {
    color: white;
    background: var(--green-800);
}
.language-switch a:hover {
    transform: translateY(-2px);
}
.language-switch span {
    font-size: 1.25rem;
}
.reading-progress {
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
}
section[id] {
    scroll-margin-top: 95px;
}
.btn-primary {
    color: #102719;
}
.btn-primary:hover {
    background: #ff993c;
}
.btn-whatsapp {
    background: #087434;
}
.text-link {
    color: #12632d;
}
.eyebrow {
    color: #a74708;
}
:focus-visible {
    outline: 3px solid #f57f20;
    outline-offset: 5px;
}
/* ALTERNATING SECTIONS AND PHOTOGRAPHIC CARDS */
.credentials {
    background: #eaf3ed;
}
#servicios-especializados, #special-services {
    position: relative;
    background: #073f22;
    color: white;
}
#servicios-especializados .eyebrow, #special-services .eyebrow, .coverage .eyebrow {
    color: #ffb677;
}
.special-card {
    padding: 0 0 20px;
    overflow: hidden;
    color: var(--ink);
}
.special-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 22px;
}
.special-card > h3, .special-card > p {
    margin-left: 20px;
    margin-right: 20px;
}
.special-card h3 {
    font-size: 1.2rem;
    line-height: 1.2;
}
.section-sectors {
    background: #eaf3ed;
}
.sector {
    padding: 0 0 22px;
    overflow: hidden;
    text-align: center;
}
.sector > img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 18px;
    transition: transform .5s;
}
.sector:hover > img {
    transform: scale(1.025);
}
.sector small {
    padding: 6px 16px 0;
}
.sector-more {
    margin-top: 30px;
}
/* FRANCHISE NETWORK */
.franchise-section {
    position: relative;
    background: #fff8ef;
}
.franchise-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.franchise-gallery {
    position: relative;
    padding: 0 35px 95px 0;
}
.franchise-main {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.franchise-detail {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border: 7px solid #fff8ef;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.franchise-stat {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 25px 0;
    border-block: 1px solid #dfd9cd;
    padding: 18px 0;
    font-weight: 800;
}
.franchise-stat strong {
    color: var(--green-800);
    font-size: clamp(4rem,8vw,6rem);
    line-height: 1;
    letter-spacing: -.06em;
}
.franchise-stat small {
    display: block;
    color: #59655d;
    font-size: .875rem;
    font-weight: 400;
}
.franchise-copy .check-list {
    grid-template-columns: 1fr;
}
/* CONTACT: ALIGNED FORM AND DISTINCTIVE TWO-COLUMN PRESENTATION */
.contact {
    background: #073f22;
    color: white;
}
.contact-grid {
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: 0;
    align-items: stretch;
    border-radius: 30px;
    overflow: hidden;
    background: #0a512c;
    box-shadow: 0 24px 60px #002a1840;
}
.contact-intro {
    padding: clamp(26px,4vw,50px);
    align-self: center;
}
.contact-intro .eyebrow {
    color: #ffb677;
}
.contact-intro h2 {
    font-size: clamp(2rem,3.5vw,3.3rem);
}
.contact-intro .lead {
    color: #e0eee4;
}
.contact-intro a {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.contact-promise {
    border-top: 1px solid #ffffff40;
    margin-top: 36px;
    padding-top: 26px;
    color: #d1e6d8;
}
.contact-card {
    color: var(--ink);
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: clamp(24px,4vw,46px);
}
.form-heading h3 {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 10px;
}
.form-heading p {
    color: var(--muted);
    font-size: .875rem;
    margin-bottom: 25px;
}
.form-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px 18px;
}
.field {
    min-width: 0;
}
.field label {
    line-height: 1.4;
    min-height: 2.5em;
    display: flex;
    align-items: end;
}
.field input:not([type="checkbox"]), .field select {
    min-height: 50px;
}
.field input, .field select, .field textarea {
    transition: box-shadow .2s, border-color .2s, background .2s;
    background: #f8fbf9;
}
.field:focus-within > label {
    color: #0b5d32;
}
.field input:focus, .field select:focus, .field textarea:focus {
    background: white;
    box-shadow: 0 0 0 4px #238b4018;
}
.privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    font-weight: 400;
}
.privacy input[type="checkbox"] {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    padding: 0;
    margin: 2px 0 0;
    accent-color: #0b5d32;
}
.contact-card button {
    width: 100%;
    cursor: pointer;
}
.contact-card button:disabled {
    opacity: .7;
    cursor: wait;
}
/* FAQ: CATEGORY FILTERS, SEARCH AND NATIVE DISCLOSURES */
.faq-section {
    background: #f3f6f4;
}
.faq-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 55px;
    align-items: start;
}
.faq-intro h2 {
    font-size: clamp(2rem,4vw,3.1rem);
}
.faq-tools {
    margin-bottom: 24px;
}
.faq-search {
    display: block;
    width: 100%;
    border: 1px solid #aac1b1;
    border-radius: 14px;
    padding: 15px;
    font-size: 1rem;
    background: white;
}
.faq-search-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.faq-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.faq-filters button {
    padding: 9px 14px;
    border-radius: 24px;
    background: white;
    border: 1px solid #c6d8cd;
    color: #16472c;
    font-weight: 700;
    cursor: pointer;
}
.faq-filters button[aria-pressed="true"] {
    background: #073f22;
    color: white;
    border-color: #073f22;
}
.faq-count {
    display: block;
    color: #536359;
    margin-top: 14px;
    font-size: .875rem;
}
.faq-disclosure {
    background: white;
    border: 1px solid #dbe8de;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-disclosure summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 21px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}
.faq-disclosure summary::-webkit-details-marker {
    display: none;
}
.faq-disclosure summary::after {
    content: '+';
    color: #12632d;
    font-size: 1.6rem;
    font-weight: 400;
}
.faq-disclosure[open] {
    border-color: #238b40;
}
.faq-disclosure[open] summary {
    color: #0b5d32;
}
.faq-disclosure[open] summary::after {
    content: '−';
}
.faq-disclosure p {
    margin: 0;
    padding: 0 21px 24px;
    color: #45584c;
    animation: answerIn .22s ease-out;
}
.faq-empty {
    padding: 25px;
    background: white;
    border-radius: 16px;
}
@keyframes answerIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
/* DECORATIVE ONE-SHOT PEST MOTION AND BACK TO TOP */
.micro-pests {
    position: relative;
    width: min(220px,60%);
    height: 68px;
    margin: 25px 6% 0 auto;
    overflow: hidden;
    pointer-events: none;
}
.pest-runner {
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 2rem;
    opacity: 0;
}
.pest-destination {
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 2.4rem;
}
.pest-destination img {
    width: 62px;
    height: 52px;
    object-fit: contain;
    padding: 7px;
    background: white;
    border: 3px solid #f57f20;
    border-radius: 50%;
}
.micro-pests.is-active .pest-runner {
    animation: pestVisit 3.8s ease-in-out forwards;
}
@keyframes pestVisit {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        transform: translateX(145px);
        opacity: 1;
    }
    100% {
        transform: translateX(150px) scale(.15);
        opacity: 0;
    }
}
.back-top {
    position: fixed;
    z-index: 45;
    right: 22px;
    bottom: 22px;
    border: 2px solid white;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    background: #073f22;
    color: white;
    box-shadow: 0 8px 25px #0003;
    font-size: 1.6rem;
    cursor: pointer;
}
.back-top:hover {
    background: #12632d;
}
[hidden] {
    display: none !important;
}
@media (max-width: 1100px) {
    .menu {
        gap: 12px;
        font-size: .9rem;
    }
    .nav {
        gap: 14px;
    }
}
@media (max-width: 980px) {
    .franchise-layout, .contact-grid, .faq-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-grid {
        gap: 0;
    }
    .franchise-gallery {
        max-width: 600px;
    }
    .header.is-scrolled .nav {
        min-height: 82px;
    }
}
@media (max-width: 640px) {
    .brand img {
        width: 125px;
    }
    .nav {
        gap: 8px;
    }
    .language-switch a {
        padding: 5px 6px;
        font-size: .75rem;
    }
    .language-switch span {
        font-size: 1rem;
    }
    .header.is-scrolled .nav {
        min-height: 72px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field label {
        min-height: 0;
    }
    .contact-intro, .contact-card {
        padding: 26px 20px;
    }
    .franchise-gallery {
        padding-right: 20px;
        padding-bottom: 80px;
    }
    .back-top {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .micro-pests {
        display: none;
    }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
@media (max-width: 400px) {
    .brand img {
        width: 105px;
    }
    .language-switch {
        padding: 2px;
        gap: 0;
    }
    .language-switch a {
        padding: 5px;
        gap: 3px;
    }
    .hamb {
        padding: 3px;
    }
}
/* Reveal content remains available when scripting is disabled. */
html:not(.has-motion-js) .reveal, html:not(.has-motion-js) .reveal-stagger > * {
    opacity: 1;
    transform: none;
}
