:root {
    --bg: #fbf7f3;
    --surface: #fffdfb;
    --surface-strong: #ffffff;
    --ink: #332b28;
    --muted: #746963;
    --rose: #c97882;
    --rose-dark: #9e5761;
    --sage: #6f8376;
    --sage-soft: #e7eee7;
    --clay: #b68b6f;
    --line: #eaded8;
    --shadow: 0 18px 42px rgba(75, 48, 43, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1.6;
}

body.lightbox-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg);
}

.site-header::before,
.site-header::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.site-header::before {
    z-index: -2;
    background: url("../imagenes/header/image_header.webp") center top / cover no-repeat;
}

.site-header::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(251, 247, 243, 0.02) 0%, rgba(251, 247, 243, 0.08) 42%, rgba(251, 247, 243, 0.86) 72%, rgba(251, 247, 243, 0.98) 100%),
        linear-gradient(180deg, rgba(251, 247, 243, 0.02) 0%, rgba(251, 247, 243, 0) 54%, rgba(251, 247, 243, 0.16) 100%);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(234, 222, 216, 0.8);
    border-radius: 0;
    margin: 0 0 -86px;
    padding: 14px max(20px, calc((100vw - 1180px) / 2 + 20px));
    background: rgba(255, 253, 251, 0.88);
    box-shadow: 0 12px 32px rgba(75, 48, 43, 0.1);
    backdrop-filter: blur(16px);
    transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.topbar.is-scrolled {
    padding-top: 6px;
    padding-bottom: 6px;
    background: rgba(255, 253, 251, 0.94);
    box-shadow: 0 8px 24px rgba(75, 48, 43, 0.1);
}

.brand img {
    width: 104px;
    mix-blend-mode: multiply;
    transition: width 0.2s ease;
}

.topbar.is-scrolled .brand img {
    width: 78px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a {
    position: relative;
    border-radius: 8px;
    padding: 10px 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--rose-dark);
    background: rgba(201, 120, 130, 0.1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 40px;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 132px 0 78px;
}

.hero-content {
    grid-column: 2;
    max-width: 620px;
    text-shadow: 0 1px 18px rgba(255, 255, 255, 0.72);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rose-dark);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    line-height: 0.98;
}

h1 {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: clamp(4rem, 8vw, 7.8rem);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 4.5vw, 4.7rem);
}

h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.hero-copy {
    max-width: 590px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--rose);
    border-radius: 8px;
    padding: 0 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button.primary {
    color: #fff;
    background: var(--rose);
}

.button.secondary {
    color: var(--rose-dark);
    background: rgba(255, 253, 251, 0.72);
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 92px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-heading p,
.services-grid p,
.category-showcase p,
.color-guide p,
.gallery-meta,
.gallery-item p,
.experience-copy p,
.process-list p,
.clients-section p,
.contact-copy p,
.site-footer {
    color: var(--muted);
}

.services-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 48px;
    align-items: start;
}

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

.services-grid article,
.category-slide,
.color-card,
.gallery-item,
.client-card,
.process-list article,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(75, 48, 43, 0.08);
}

.services-grid article,
.process-list article {
    padding: 24px;
}

.services-grid span {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--sage);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
}

.category-showcase {
    padding: 0 0 72px;
}

.category-carousel {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.category-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    overflow: hidden;
    transform: scale(0.98);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-slide.is-active {
    box-shadow: var(--shadow);
    transform: scale(1);
}

.category-slide img {
    width: 100%;
    aspect-ratio: 4 / 3.1;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-slide:hover img {
    transform: scale(1.055);
}

.category-slide div {
    padding: 18px;
}

.gallery-item p {
    margin-bottom: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 52px;
    border: 1px solid rgba(234, 222, 216, 0.9);
    border-radius: 8px;
    color: var(--rose-dark);
    background: rgba(255, 253, 251, 0.9);
    box-shadow: 0 10px 24px rgba(75, 48, 43, 0.12);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.carousel-prev {
    left: -18px;
}

.carousel-next {
    right: -18px;
}

.color-guide {
    padding-top: 24px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.color-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
}

.color-card h3 {
    margin-bottom: 4px;
}

.color-card p {
    grid-column: 2;
    margin-bottom: 0;
    font-size: 0.86rem;
}

.swatch {
    display: block;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(75, 48, 43, 0.12);
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.42), 0 8px 18px rgba(75, 48, 43, 0.1);
}

.swatch.pattern.chrome {
    background: linear-gradient(135deg, #fff6f2 0%, #d7d9e8 34%, #f6c9d8 58%, #c7ece8 100%);
}

.swatch.pattern.cat-eye {
    background:
        radial-gradient(ellipse at 38% 48%, rgba(255, 218, 194, 0.92) 0 8%, transparent 9% 100%),
        linear-gradient(135deg, #4b1119, #872a39 46%, #1e171a);
}

.swatch.pattern.confetti {
    background:
        radial-gradient(circle at 28% 26%, #df6f9c 0 7%, transparent 8%),
        radial-gradient(circle at 68% 30%, #72b7d5 0 7%, transparent 8%),
        radial-gradient(circle at 42% 70%, #e8bd51 0 7%, transparent 8%),
        radial-gradient(circle at 75% 74%, #74a983 0 6%, transparent 7%),
        #fff5f7;
}

.swatch.pattern.animal {
    background:
        radial-gradient(ellipse at 30% 34%, #4f2e20 0 12%, transparent 13%),
        radial-gradient(ellipse at 67% 62%, #5c3424 0 14%, transparent 15%),
        radial-gradient(ellipse at 64% 28%, #9c6a43 0 10%, transparent 11%),
        #dfb785;
}

.swatch.pattern.glitter {
    background:
        radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.94) 0 4%, transparent 5%),
        radial-gradient(circle at 68% 36%, rgba(255, 255, 255, 0.9) 0 3%, transparent 4%),
        radial-gradient(circle at 45% 72%, rgba(255, 255, 255, 0.85) 0 5%, transparent 6%),
        linear-gradient(135deg, #d4a55e, #f6e2a8 45%, #c28c45);
}

.swatch.pattern.blooming {
    background:
        radial-gradient(circle at 32% 38%, rgba(235, 98, 135, 0.78) 0 18%, transparent 34%),
        radial-gradient(circle at 64% 58%, rgba(131, 175, 214, 0.72) 0 16%, transparent 32%),
        radial-gradient(circle at 52% 35%, rgba(245, 210, 121, 0.72) 0 12%, transparent 28%),
        #fff3f6;
}

.swatch.pattern.french {
    background:
        radial-gradient(ellipse at 50% 88%, #ffffff 0 24%, transparent 25%),
        linear-gradient(180deg, #f4ddd8 0%, #e7bfb9 100%);
}

.color-card.is-hidden {
    display: none;
}

.color-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.color-actions.is-hidden {
    display: none;
}

.press-on-showcase {
    padding-top: 24px;
}

.press-on-carousel {
    position: relative;
}

.press-on-slide img {
    aspect-ratio: 4 / 4.6;
}

.portfolio-toolbar {
    display: grid;
    gap: 16px;
    width: 100%;
    margin-bottom: 14px;
}

.filter-bar,
.subfilter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.subfilter-bar {
    margin-bottom: 18px;
}

.filter-button,
.subfilter-button {
    flex: 1 1 150px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: #fffdfb;
    font-weight: 700;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.subfilter-button.active,
.subfilter-button:hover {
    border-color: var(--rose);
    color: #fff;
    background: var(--rose);
}

.search-field {
    display: grid;
    gap: 6px;
    width: 100%;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.search-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--surface-strong);
    text-transform: none;
}

.gallery-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.gallery-meta strong {
    color: var(--ink);
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    break-inside: avoid;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.gallery-item button:hover img {
    transform: scale(1.035);
}

.gallery-item figcaption {
    padding: 16px;
}

.gallery-item h3 {
    margin-bottom: 0;
}

.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.gallery-actions.is-hidden {
    display: none;
}

.clients-section {
    padding-top: 24px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.client-card {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.stars {
    color: #c89b42;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.client-card blockquote {
    margin: 0;
}

.client-card blockquote p {
    margin-bottom: 0;
}

.client-name {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.experience-section,
.contact-section {
    display: grid;
    grid-template-columns: 0.72fr 0.88fr 1.1fr;
    gap: 52px;
    align-items: start;
}

.contact-section {
    grid-template-columns: 0.9fr 1.1fr;
}

.experience-media {
    position: sticky;
    top: 110px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.experience-media img {
    width: 100%;
    aspect-ratio: 3 / 4.4;
    object-fit: cover;
    object-position: center top;
}

.experience-copy,
.contact-copy {
    position: sticky;
    top: 110px;
}

.experience-copy a {
    color: var(--rose-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.process-list span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--rose-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.process-list h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.contact-form {
    display: grid;
    gap: 12px;
    padding: 28px;
}

.contact-form label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
}

.contact-form select {
    appearance: none;
    padding-right: 46px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button {
    width: fit-content;
    margin-top: 10px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 36px 72px;
    background: rgba(35, 28, 26, 0.84);
}

.lightbox.is-open {
    display: flex;
}

.lightbox figure {
    display: grid;
    gap: 14px;
    width: min(860px, 100%);
    margin: 0;
}

.lightbox img {
    width: 100%;
    max-height: 78vh;
    border-radius: 8px;
    object-fit: contain;
    background: #111;
}

.lightbox figcaption {
    color: #fff;
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 48px;
    height: 64px;
    font-size: 3rem;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

.site-footer p:first-child {
    color: var(--ink);
    font-weight: 700;
}

.social-link,
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--rose-dark);
    background: var(--surface);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover,
.footer-link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

@media (max-width: 980px) {
    .site-header::before {
        background-image: url("../imagenes/header/image_header_mobile.webp");
        background-position: center top;
    }

    .site-header::after {
        background:
            linear-gradient(180deg, rgba(251, 247, 243, 0.08) 0%, rgba(251, 247, 243, 0.12) 42%, rgba(251, 247, 243, 0.94) 84%, rgba(251, 247, 243, 1) 100%);
    }

    .hero,
    .services-section,
    .experience-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: end;
        min-height: 100vh;
        min-height: 100svh;
        padding-top: 118px;
    }

    .hero-content {
        grid-column: auto;
        max-width: 620px;
        margin-top: auto;
    }

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

    .category-slide {
        flex-basis: calc((100% - 20px) / 2);
    }

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

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

    .portfolio-toolbar {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        column-count: 2;
    }

    .experience-media,
    .experience-copy,
    .contact-copy {
        position: static;
    }
}

@media (max-width: 720px) {
    .topbar {
        top: 0;
        width: 100%;
        align-items: center;
        margin-bottom: -78px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .topbar.menu-open {
        background: rgba(255, 253, 251, 0.96);
        box-shadow: 0 10px 26px rgba(75, 48, 43, 0.08);
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 8px 8px;
        padding: 18px;
        background: rgba(255, 253, 251, 0.96);
        box-shadow: 0 18px 32px rgba(75, 48, 43, 0.08);
    }

    .nav-links.is-open {
        display: flex;
    }

    h1 {
        font-size: 4rem;
    }

    .section {
        padding: 66px 0;
    }

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

    .category-slide {
        flex-basis: 100%;
    }

    .color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .color-card {
        grid-template-columns: 40px 1fr;
        gap: 10px;
        padding: 12px;
    }

    .color-card p {
        display: none;
    }

    .swatch {
        width: 40px;
        height: 40px;
    }

    .filter-bar,
    .subfilter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-bar::-webkit-scrollbar,
    .subfilter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-button,
    .subfilter-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

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

    .carousel-button {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .carousel-prev {
        left: 14px;
    }

    .carousel-next {
        right: 14px;
    }

    .gallery-grid {
        column-count: 1;
    }

    .lightbox {
        padding: 56px 16px;
    }

    .lightbox-nav {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .lightbox-prev {
        left: 16px;
    }

    .lightbox-next {
        right: 16px;
    }

    .site-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-bottom: 96px;
    }

    .social-link,
    .footer-link {
        justify-content: center;
    }
}
