:root {
    --bg: #020402;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: rgba(255, 255, 255, 0.1);
    --panel-soft: rgba(34, 72, 49, 0.24);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.88);
    --line: rgba(255, 255, 255, 0.1);
    --green-300: #8bc38a;
    --green-500: #3f7d4c;
    --green-700: #20412b;
    --section-hero: rgba(0, 0, 0, 0.35);
    --section-services: rgba(10, 40, 23, 0.35);
    --section-gallery: rgba(31, 38, 35, 0.35);
    --section-faq: rgba(16, 34, 24, 0.35);
    --section-location: rgba(0, 0, 0, 0.35);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: min(1120px, calc(100% - 40px));
    --header-height: 84px;
}

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

html {
    scroll-behavior: smooth;
}

section[id],
footer[id] {
    scroll-margin-top: 118px;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../images/logo_fondo.svg') center calc(50% + 74px) / min(62vw, 720px) no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0 auto auto 0;
    width: 30vw;
    max-width: 863px;
    height: 70vw;
    max-height: 923px;
    background-color: #027a48;
    opacity: 0.7;
    filter: blur(6.5vw);
    border-radius: 50%;
    transform: rotate(22deg);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    margin: 16px;
    padding: 12px 16px;
    clip: auto;
    background: #fff;
    color: #000;
    z-index: 1000;
    border-radius: 999px;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 64px 0;
    position: relative;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Roboto Slab', serif;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    max-width: 13ch;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
}

h3 {
    font-size: 1.18rem;
}

p {
    margin: 0;
    line-height: 1.65;
}

.section-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 36px;
}

.section-heading-centered {
    justify-items: center;
    text-align: center;
}

.section-heading-centered .section-lead {
    max-width: 760px;
    font-size: 1.02rem;
    line-height: 1.65;
}

.section-lead,
.hero-subtitle,
.service-card p,
.gallery-note p,
.faq-item p,
.location-copy p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 122, 72, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.brand img {
    width: min(220px, 42vw);
    height: auto;
}

.brand {
    display: inline-flex;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.brand:hover,
.brand:focus-visible {
    transform: translateY(-2px) scale(1.02);
    opacity: 0.94;
    filter: drop-shadow(0 10px 18px rgba(255, 255, 255, 0.16));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--green-300);
}

.menu-toggle,
.button,
.lightbox-nav,
.lightbox-close {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.button-primary {
    background: linear-gradient(135deg, #4f9a5d, #2d603a);
    color: #fff;
    box-shadow: 0 18px 34px rgba(17, 54, 28, 0.34);
}

.button:hover,
.button:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
    transform: translateY(-1px);
}

.hero {
    padding: 68px 0;
    background: var(--section-hero);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-copy {
    width: 100%;
    max-width: 980px;
    padding: 0;
}

.hero-copy h1 {
    font-weight: 800;
    max-width: none;
    line-height: 1.08;
}

.hero-subtitle {
    margin-top: 18px;
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.1rem, 2vw, 1.34rem);
    line-height: 1.5;
}

.services {
    background: var(--section-services);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.services-grid,
.gallery-grid {
    display: grid;
    gap: 20px;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.faq-item,
.location-copy {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.service-card {
    padding: 28px 22px 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.service-card-dark {
    background: rgba(9, 20, 13, 0.82);
}

.service-card-light {
    background: rgba(224, 229, 224, 0.9);
    color: #0d130f;
    border-color: rgba(255, 255, 255, 0.18);
}

.service-card-light p {
    color: rgba(13, 19, 15, 0.78);
}

.service-card-light .service-icon {
    background: rgba(2, 122, 72, 0.14);
    color: #1c5a37;
}

.service-icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: rgba(110, 178, 118, 0.12);
    color: #c9f1cd;
}

.service-icon svg {
    width: 42px;
    height: 42px;
}

.service-card h3 {
    margin-bottom: 10px;
    line-height: 1.28;
}

.gallery-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 12px;
}

.gallery {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery h2,
.gallery h3,
.gallery p,
.gallery .section-lead {
    color: #ffffff;
}

.gallery-cta,
.map-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.gallery-cta {
    padding: 30px;
    background: rgba(255, 255, 255, 0.06);
    justify-items: center;
    text-align: center;
}

.gallery-cta .button {
    margin-top: 20px;
}

.gallery-note {
    margin-bottom: 28px;
    text-align: center;
}

.gallery-note p {
    max-width: 980px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.65;
}

.gallery-note-inline {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: 1.02rem;
    line-height: 1.65;
}

.gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.gallery-item {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #111;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.32));
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.04);
    opacity: 0.96;
}

.gallery-item:nth-child(5) img {
    object-position: center 35%;
}

.faq {
    background: var(--section-faq);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    padding: 0 24px;
    border-radius: var(--radius-md);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 800;
    position: relative;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--green-300);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.34s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.location {
    background: var(--section-location);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.map-card,
.location-copy {
    min-height: 100%;
}

.map-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.location-copy {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: rgba(214, 219, 216, 0.9);
    color: #101511;
}

.location-copy h2,
.location-copy p,
.location-copy li {
    color: #101511;
    line-height: 1.6;
}

.location-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.location-list li {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(16, 21, 17, 0.08);
    font-weight: 700;
    line-height: 1.45;
}

.site-footer {
    width: 100%;
    padding: 34px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 16, 11, 0.15);
    text-align: center;
}

.footer-inner {
    width: min(860px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.footer-inner-rich {
    width: min(1180px, 100%);
}

.footer-logo {
    display: inline-flex;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.footer-logo img {
    width: 160px;
    height: auto;
}

.footer-signature {
    display: inline-flex;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.footer-signature img {
    width: 120px;
    height: auto;
}

.footer-signature:hover,
.footer-signature:focus-visible {
    transform: translateY(-2px) scale(1.03);
    opacity: 0.9;
    filter: drop-shadow(0 10px 18px rgba(139, 195, 138, 0.25));
}

.footer-logo:hover,
.footer-logo:focus-visible {
    transform: translateY(-2px) scale(1.02);
    opacity: 0.94;
    filter: drop-shadow(0 10px 18px rgba(255, 255, 255, 0.16));
}

.footer-center {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-contact:hover,
.footer-contact:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
}

.footer-contact-icon img {
    width: 22px;
    height: 22px;
    display: block;
    filter: brightness(0) invert(1);
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
    z-index: 70;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.is-hidden-whatsapp {
    display: none !important;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
    display: block;
    filter: brightness(0) invert(1);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
}

.menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.form-row input:focus,
.form-row textarea:focus,
.menu-toggle:focus-visible,
.gallery-item:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.lightbox-nav:focus-visible,
.lightbox-close:focus-visible {
    outline: 2px solid rgba(139, 195, 138, 0.58);
    outline-offset: 3px;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 90;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    margin: 0;
    justify-self: center;
    max-width: min(920px, 100%);
}

.lightbox-content img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-content figcaption {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.86);
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 2rem;
}

.lightbox-nav {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    font-size: 1.6rem;
}

@media (max-width: 980px) {
    .section {
        padding: 62px 0;
    }

    .section-heading-split,
    .location-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        white-space: normal;
    }

    .hero-copy {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-links {
        width: 100%;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        display: grid;
        gap: 8px;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 22px;
        background: rgba(0, 0, 0, 0.9);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .site-header.menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 12px 10px;
        border-radius: 12px;
    }
}

@media (max-width: 1180px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --container: min(100% - 28px, 1120px);
    }

    .section > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    body::before {
        background-size: 90vw;
        opacity: 0.36;
    }

    body::after {
        width: 52vw;
        height: 92vw;
    }

    .hero {
        padding: 72px 0 34px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-height: 250px;
    }

    .lightbox {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        position: absolute;
        bottom: 22px;
    }

    .lightbox-prev {
        left: 22px;
    }

    .lightbox-next {
        right: 22px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}
