:root {
    --ink: #1a1f1c;
    --ink-soft: #2c3530;
    --mist: #e8efe9;
    --fog: #c5d4c8;
    --sand: #f3ebe0;
    --copper: #b86a3c;
    --copper-deep: #8f4f2d;
    --white: #faf8f5;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink);
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(184, 106, 60, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(44, 53, 48, 0.08), transparent 45%),
        linear-gradient(180deg, var(--sand) 0%, var(--white) 45%, var(--mist) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

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

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

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
    color: var(--white);
}

.brand {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-header nav a {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.site-header nav a:hover {
    opacity: 1;
}

.nav-admin {
    border: 1px solid rgba(250, 248, 245, 0.35);
    padding: 0.35rem 0.85rem;
    border-radius: 2px;
}

.site-header--solid {
    position: relative;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(243, 235, 224, 0.95), rgba(250, 248, 245, 0.75));
    border-bottom: 1px solid rgba(44, 53, 48, 0.08);
}

.site-header--solid .nav-admin {
    border-color: rgba(26, 31, 28, 0.25);
}

.site-header nav a.is-active {
    opacity: 1;
    color: var(--copper-deep);
}

.hero-carousel {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}

.hero-carousel--compact {
    min-height: 0;
    height: clamp(200px, 32vw, 520px);
}

.carousel-track {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s ease;
    pointer-events: none;
}

.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide figcaption {
    position: absolute;
    bottom: 5.5rem;
    left: clamp(1.25rem, 4vw, 3rem);
    z-index: 2;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(1.25rem, 4vw, 3rem) 7rem;
    background:
        linear-gradient(180deg, rgba(26, 31, 28, 0.35) 0%, transparent 35%),
        linear-gradient(0deg, rgba(26, 31, 28, 0.72) 0%, transparent 55%);
    pointer-events: none;
    animation: fade-up 1s ease both;
}

.hero-carousel--compact .carousel-overlay {
    padding: 0 clamp(1.25rem, 4vw, 3rem) 2.75rem;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(26, 31, 28, 0.72) 0%, rgba(26, 31, 28, 0.25) 55%, transparent 100%);
}

.hero-brand {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-carousel--compact .hero-brand {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
}

.hero-tagline {
    margin: 0;
    max-width: 18ch;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    opacity: 0.92;
}

.hero-carousel--compact .hero-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    max-width: 28ch;
}

.carousel-empty {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(1.25rem, 4vw, 3rem) 5rem;
    background:
        radial-gradient(circle at 70% 30%, rgba(184, 106, 60, 0.25), transparent 45%),
        linear-gradient(160deg, var(--ink-soft), var(--ink));
}

.hero-carousel--compact .carousel-empty {
    min-height: 0;
    height: 100%;
    justify-content: center;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.hero-carousel--compact .carousel-slide figcaption {
    bottom: 1.25rem;
    font-size: 0.75rem;
}

.hero-carousel--compact .carousel-dots {
    bottom: 0.85rem;
}

.hero-carousel--compact .carousel-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
}

/* Product carousel on homepage — full width + crossfade */
.product-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--ink);
}

.product-carousel-track {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 55vw, 540px);
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 90% at 18% 50%, rgba(184, 106, 60, 0.12), transparent 58%),
        radial-gradient(ellipse 45% 70% at 88% 20%, rgba(44, 53, 48, 0.06), transparent 50%),
        linear-gradient(120deg, #f6f0e7 0%, #f3ebe0 48%, #e9efe9 100%);
}

.product-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 0 clamp(1.5rem, 6vw, 5rem) 3.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(2.5%);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        visibility 0s linear 0.7s;
    pointer-events: none;
    z-index: 1;
}

.product-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        visibility 0s linear 0s;
    pointer-events: auto;
    z-index: 2;
}

.product-slide.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translateX(-2.5%);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        visibility 0s linear 0.7s;
    z-index: 1;
    pointer-events: none;
}

.product-slide-media {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: 100%;
    align-self: stretch;
}

.product-slide-media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 620px);
    height: 100%;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 18px 30px rgba(26, 31, 28, 0.2));
}

.product-slide-copy {
    padding-bottom: 0.75rem;
    max-width: 28rem;
    align-self: end;
    padding-top: 4.5rem;
    margin-bottom: 1.5rem;
}

.product-slide.is-active .product-slide-copy {
    animation: fade-up 0.8s ease 0.12s both;
}

.product-slide-copy .section-label {
    margin-bottom: 0.45rem;
}

.product-slide-copy h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.product-slide-desc {
    font-size: clamp(1.02rem, 1.7vw, 1.2rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-soft);
}

.product-slide-link {
    display: inline-block;
    margin-top: 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--copper-deep);
    border-bottom: 1px solid rgba(143, 79, 45, 0.35);
    padding-bottom: 0.15rem;
}

.product-slide-link:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.product-carousel-btn {
    color: var(--ink);
    border-color: rgba(26, 31, 28, 0.18);
    background: rgba(250, 248, 245, 0.82);
    backdrop-filter: blur(8px);
}

.product-carousel-btn:hover {
    background: #fff;
    border-color: rgba(26, 31, 28, 0.4);
}

.product-carousel-btn.prev {
    left: clamp(0.5rem, 1.5vw, 1.25rem);
}

.product-carousel-btn.next {
    right: clamp(0.5rem, 1.5vw, 1.25rem);
}

.product-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    z-index: 5;
}

.product-carousel-dots .dot {
    background: rgba(26, 31, 28, 0.2);
}

.product-carousel-dots .dot.is-active {
    background: var(--copper);
    transform: scale(1.25);
}

.product-carousel-empty {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    background: #f3ebe0;
}

@media (min-width: 860px) {
    .product-carousel-track {
        min-height: 540px;
    }

    .product-slide {
        grid-template-columns: 1.25fr 0.85fr;
        gap: clamp(2rem, 5vw, 4rem);
        padding: 0 clamp(3rem, 8vw, 7rem) 3.5rem;
        align-items: start;
        top: -0.75rem;
    }

    .product-slide-media img {
        max-height: 580px;
    }

    .product-slide-copy {
        align-self: center;
        padding-top: 7rem;
        margin-bottom: 2rem;
    }
}

.empty-note {
    margin-top: 1.5rem;
    opacity: 0.65;
    font-size: 0.95rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(250, 248, 245, 0.35);
    background: rgba(26, 31, 28, 0.35);
    color: var(--white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(26, 31, 28, 0.6);
    border-color: rgba(250, 248, 245, 0.7);
}

.carousel-btn.prev {
    left: clamp(0.75rem, 2vw, 1.5rem);
}

.carousel-btn.next {
    right: clamp(0.75rem, 2vw, 1.5rem);
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    z-index: 10;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
}

.dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(250, 248, 245, 0.4);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.dot.is-active {
    background: var(--white);
    transform: scale(1.25);
}

.catalog {
    padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
}

.catalog-intro {
    max-width: 42rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.catalog-intro h1,
.catalog-intro h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
}

.catalog-page {
    padding-top: clamp(2.5rem, 6vw, 4rem);
}

.catalog-list {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 6vw, 4.5rem);
}

.product-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "media"
        "copy";
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    animation: fade-up 0.9s ease both;
}

.product-media {
    grid-area: media;
    margin: 0;
    overflow: visible;
    background: transparent;
    min-height: 0;
    display: block;
    padding: 0;
}

.product-media img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    object-position: center top;
    background: transparent;
    transition: transform 0.7s ease;
}

.product-row:hover .product-media img {
    transform: scale(1.02);
}

.product-copy {
    grid-area: copy;
    padding-top: 0;
}

.product-copy h2,
.product-copy h3 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
}

.product-description {
    font-size: 1.08rem;
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.7;
}

.catalog-empty {
    text-align: center;
    color: var(--ink-soft);
    opacity: 0.8;
}

@media (min-width: 800px) {
    .product-row {
        grid-template-columns: 1.05fr 0.95fr;
        grid-template-areas: "media copy";
        align-items: start;
    }

    .product-row.is-reversed {
        grid-template-columns: 0.95fr 1.05fr;
        grid-template-areas: "copy media";
        align-items: start;
    }

    .product-media img {
        min-height: 0;
        max-height: 420px;
    }
}

.about {
    padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.about-inner {
    max-width: 42rem;
    margin: 0 auto;
    animation: fade-up 0.9s ease 0.15s both;
}

.section-label {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper);
    font-weight: 500;
}

.about h2 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
}

.about-body {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink-soft);
}

.site-footer {
    padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
    opacity: 0.75;
}

.calc-page {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.calc-intro {
    margin: 0.85rem 0 0;
    color: var(--ink-soft);
    font-weight: 300;
}

.calc-shell {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.calc-panel,
.calc-summary {
    background: rgba(250, 248, 245, 0.92);
    border: 1px solid rgba(44, 53, 48, 0.1);
    padding: 0.35rem 0;
}

.calc-summary {
    padding: 1.25rem 1.35rem 1.4rem;
}

.calc-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: center;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(44, 53, 48, 0.08);
}

.calc-line:last-child {
    border-bottom: none;
}

.calc-line-name {
    font-weight: 500;
}

.calc-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(44, 53, 48, 0.18);
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
    background: #fff;
}

.calc-stepper button {
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--ink);
}

.calc-stepper input {
    width: 2.4rem;
    border: none;
    text-align: center;
    font: inherit;
    appearance: textfield;
    -moz-appearance: textfield;
}

.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.calc-unit {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.calc-line-total {
    font-weight: 600;
    text-align: left;
}

.calc-shipping-control select {
    width: 100%;
    max-width: 220px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(44, 53, 48, 0.18);
    border-radius: 999px;
    background: #fff;
    font: inherit;
}

.calc-group-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.15rem;
    border: none;
    border-bottom: 1px solid rgba(44, 53, 48, 0.08);
    background: transparent;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.calc-group-toggle .chevron {
    transition: transform 0.2s ease;
}

.calc-group-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.calc-group-panel {
    display: none;
    background: rgba(232, 239, 233, 0.35);
}

.calc-group-panel.is-open {
    display: block;
}

.calc-progress {
    margin-bottom: 1.15rem;
}

.calc-progress-hint {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.calc-progress-bar {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(44, 53, 48, 0.12);
    overflow: hidden;
}

.calc-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--copper);
    transition: width 0.3s ease;
}

.calc-progress-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.calc-progress-marks .is-reached {
    color: var(--copper-deep);
    font-weight: 600;
}

.calc-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.98rem;
}

.calc-sum-row.is-active strong {
    color: var(--copper-deep);
}

.calc-sum-subtotal {
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(44, 53, 48, 0.1);
}

.calc-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.calc-sum-total strong {
    color: var(--copper);
    font-size: 1.7rem;
}

.calc-fees {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.calc-quote {
    position: relative;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(44, 53, 48, 0.1);
}

.calc-quote h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.calc-quote .muted {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.calc-quote label {
    display: block;
    margin: 0 0 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.calc-quote input,
.calc-quote textarea {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(44, 53, 48, 0.18);
    background: #fff;
    font: inherit;
    color: inherit;
}

.calc-quote textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.calc-quote .btn {
    width: 100%;
    border: none;
    background: var(--ink);
    color: #faf8f5;
    padding: 0.75rem 1rem;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.calc-quote .btn:hover {
    background: var(--copper-deep);
}

.calc-quote .btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.calc-quote-msg {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.calc-quote-msg.is-ok {
    color: #2f6b4f;
}

.calc-quote-msg.is-err {
    color: #9b3b2e;
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width: 720px) {
    .calc-shell {
        grid-template-columns: 1.35fr 0.9fr;
        align-items: start;
    }

    .calc-line {
        grid-template-columns: minmax(0, 1.4fr) auto auto minmax(5.5rem, auto);
        gap: 0.85rem;
    }

    .calc-shipping {
        grid-template-columns: minmax(0, 1.4fr) auto minmax(5.5rem, auto);
    }

    .calc-line-total {
        text-align: right;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .site-header nav a:not(.nav-admin):not([href="#catalogo"]):not([href="/catalogo.php"]):not([href="/calculadora.php"]) {
        display: none;
    }

    .carousel-slide figcaption {
        bottom: 4.5rem;
    }

    .hero-carousel--compact .carousel-slide figcaption {
        bottom: 1.1rem;
    }
}
