:root {
    --bg: #f3efe6;
    --bg-deep: #e8e0d2;
    --ink: #1c1915;
    --ink-soft: #5c554c;
    --accent: #2f5d50;
    --accent-deep: #24463c;
    --gold: #b08d57;
    --gold-line: rgba(176, 141, 87, 0.45);
    --gold-soft: rgba(176, 141, 87, 0.12);
    --whatsapp: #25d366;
    --whatsapp-deep: #17a34a;
    --surface: rgba(255, 252, 246, 0.72);
    --line: rgba(28, 25, 21, 0.08);
    --shadow: 0 18px 40px rgba(28, 25, 21, 0.08);
    --radius: 18px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(47, 93, 80, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(180, 120, 70, 0.1), transparent 50%),
        linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

.page {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3.5rem 0 5rem;
}

.page--center {
    display: grid;
    place-content: center;
    min-height: 100vh;
    text-align: center;
}

.hero {
    margin-bottom: 2.75rem;
    animation: rise 0.7s ease both;
}

.hero__label,
.hero__title,
.hero__meta,
.hero__agency {
    max-width: 44rem;
}

.hero__label {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1 1 0;
    min-width: 0;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent 70%);
    opacity: 0.6;
}

.stat__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 12px;
    color: var(--accent);
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
}

.stat__icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.stat__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.1rem;
}

.stat__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.15rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.stat__detail {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.25;
    color: var(--ink-soft);
}

@media (hover: hover) {
    .stat:hover {
        transform: translateY(-3px);
        box-shadow: 0 24px 48px rgba(28, 25, 21, 0.14);
    }
}

.stat--accent {
    background: linear-gradient(155deg, var(--accent), var(--accent-deep));
    border-color: transparent;
    box-shadow: 0 20px 44px rgba(36, 70, 60, 0.26);
}

.stat--accent::after {
    background: linear-gradient(90deg, var(--gold), transparent 70%);
    opacity: 0.9;
}

.stat--accent .stat__icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.stat--accent .stat__label {
    color: rgba(255, 255, 255, 0.72);
}

.stat--accent .stat__value {
    color: #fff;
}

.stat--accent .stat__detail {
    color: rgba(255, 255, 255, 0.72);
}

.hero__meta {
    margin: 1rem 0 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.empty {
    color: var(--ink-soft);
    font-size: 1.1rem;
}

/* Brand bar */
.brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.15rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--gold-line);
    animation: rise 0.6s ease both;
}

.brandbar__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brandbar__seal {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid var(--gold-line);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    background: radial-gradient(circle at 30% 25%, rgba(176, 141, 87, 0.2), transparent 70%);
}

.brandbar__logo {
    display: block;
    max-height: 3rem;
    max-width: 11rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.brandbar__names {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brandbar__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}

.brandbar__tagline {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.brandbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.brandbar__phone svg {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--gold);
}

.brandbar__phone:hover,
.brandbar__phone:focus-visible {
    color: var(--accent);
    outline: none;
}

/* Agency badge in hero */
.hero__agency {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1.5rem 0 0;
    padding: 0.55rem 1rem 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--gold-line);
    background: rgba(255, 252, 246, 0.6);
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.3;
}

.hero__agency svg {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--gold);
}

.hero__agency strong {
    color: var(--ink);
    font-weight: 600;
}

/* Contact / CTA */
.contact {
    position: relative;
    margin-top: 3.5rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 24px;
    border: 1px solid var(--gold-line);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(176, 141, 87, 0.14), transparent 60%),
        linear-gradient(160deg, rgba(255, 253, 249, 0.94), rgba(246, 240, 229, 0.88));
    box-shadow: 0 24px 60px rgba(28, 25, 21, 0.1);
    overflow: hidden;
    animation: rise 0.7s ease both;
}

.contact__eyebrow {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact__title {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact__text {
    margin: 0 0 1.6rem;
    max-width: 42rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.65;
}

.contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.7rem;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.btn svg {
    width: 1.15rem;
    height: 1.15rem;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.btn--call {
    background: linear-gradient(160deg, var(--accent), var(--accent-deep));
    box-shadow: 0 14px 30px rgba(47, 93, 80, 0.28);
}

.btn--call:hover,
.btn--call:focus-visible {
    box-shadow: 0 20px 40px rgba(47, 93, 80, 0.36);
}

.btn--wa {
    background: linear-gradient(160deg, var(--whatsapp), var(--whatsapp-deep));
    box-shadow: 0 14px 30px rgba(23, 163, 74, 0.26);
}

.btn--wa:hover,
.btn--wa:focus-visible {
    box-shadow: 0 20px 40px rgba(23, 163, 74, 0.34);
}

.contact__phone {
    margin: 1.4rem 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.contact__phone a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-line);
    padding-bottom: 1px;
}

.contact__phone a:hover,
.contact__phone a:focus-visible {
    color: var(--accent);
    outline: none;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.85rem;
    text-align: center;
}

.footer__brand {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
}

.footer__sep {
    margin: 0 0.5rem;
    color: var(--gold);
}

/* Sticky action bar (mobile) */
.actionbar {
    display: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #d9d1c3;
    cursor: zoom-in;
    box-shadow: var(--shadow);
    animation: rise 0.65s ease both;
    animation-delay: calc(var(--i, 0) * 60ms + 80ms);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo:hover,
.photo:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(28, 25, 21, 0.14);
    outline: none;
}

.photo:hover img,
.photo:focus-visible img {
    transform: scale(1.04);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox.is-open {
    animation: fade-in 0.25s ease both;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 14, 12, 0.88);
    backdrop-filter: blur(8px);
}

.lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: zoom-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox__nav--prev {
    left: 1rem;
}

.lightbox__nav--next {
    right: 1rem;
}

.lightbox__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 720px) {
    .page {
        padding-top: 2.25rem;
        padding-bottom: 7rem;
    }

    .brandbar {
        margin-bottom: 2rem;
    }

    .brandbar__phone {
        display: none;
    }

    .contact__actions {
        flex-direction: column;
    }

    .stat {
        flex-basis: 100%;
        padding: 0.9rem 1rem;
    }

    .stat__icon {
        width: 2.6rem;
        height: 2.6rem;
    }

    .btn {
        width: 100%;
    }

    .actionbar {
        display: flex;
        gap: 0.6rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
        background: rgba(243, 239, 230, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--gold-line);
        animation: rise 0.5s ease both;
    }

    .actionbar__btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.9rem 1rem;
        border-radius: 14px;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
    }

    .actionbar__btn svg {
        width: 1.15rem;
        height: 1.15rem;
    }

    .actionbar__btn--call {
        background: linear-gradient(160deg, var(--accent), var(--accent-deep));
    }

    .actionbar__btn--wa {
        background: linear-gradient(160deg, var(--whatsapp), var(--whatsapp-deep));
    }

    .lightbox__nav {
        display: none;
    }

    .lightbox__img {
        max-height: calc(100vh - 6rem);
    }
}

/* Hide the sticky bar while the fullscreen viewer is open */
body.is-lightbox .actionbar {
    display: none;
}

@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;
    }
}
