:root {
    --white: #ffffff;
    --black: #0a0a0a;
    --green: #47c184;
    --red: #ff003d;
    --gray: #cfe0f4;
    --off-white: #f7f7f7;
}

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

html,
body {
    font-family: "Funnel Sans", sans-serif;
    background-color: var(--white);
    color: var(--black);
    margin: 0;
    padding: 0;
}

h2 {
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 0.5rem;
}
/* ─────────────── NAVBAR ─────────────── */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--white);
    border-bottom: 1.5px solid var(--black);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.navbar-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 60px;
    text-decoration: none;
}

.nav-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.nav-logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-left: 0.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--green);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    width: 100%;
}

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    transition: all 0.25s;
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1.5px solid var(--black);
    z-index: 99;
    padding: 1.5rem 2rem;
}

.nav-mobile.is-open {
    display: block;
}

.nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-mobile a {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
}

/* ─────────────── HERO ─────────────── */
.hero-section {
    margin-top: 60px;
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    min-height: 520px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.55) 48%,
        rgba(255, 255, 255, 0) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: normal;
    color: var(--green);
}

.hero-body {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 400;
    line-height: 1.75;
    color: #444;
    max-width: 460px;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    font-family: "Funnel Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border: 2px solid var(--black);
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--black);
    font-family: "Funnel Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border: 2px solid var(--black);
    transition:
        background 0.2s,
        color 0.2s;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Badge */
.hero-badge {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 3;
    background-color: var(--green);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
}

@media (max-width: 768px) {
    .hero-badge {
        display: none;
    }
    .hero-image::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.6) 60%,
            rgba(255, 255, 255, 0) 100%
        );
    }
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
    border-top: 1.5px solid var(--black);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* ─────────────── PRODUCTOS PAGE ─────────────── */
.productos-header {
    margin-top: 60px;
    padding: 4rem 2rem 3rem;
    border-bottom: 1.5px solid var(--black);
}
.productos-header-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.productos-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}

.productos-header h1 {
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 1rem;
}
.productos-header p {
    font-size: 1rem;
    color: #555;
    max-width: 500px;
    line-height: 1.7;
}

/* ─────────────── ACCORDION ─────────────── */
.accordion-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion-item {
    border: 1.5px solid var(--black);
    margin-top: -1.5px;
    background: var(--white);
    transition: background 0.2s ease;
}
.accordion-item:first-child {
    margin-top: 0;
}
.accordion-item.is-open {
    background: var(--off-white);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1.75rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: "Funnel Sans", sans-serif;
    transition: background 0.15s;
}
.accordion-trigger:hover {
    background: var(--gray);
}
.accordion-item.is-open .accordion-trigger,
.accordion-item.is-open .accordion-trigger:hover {
    background: transparent;
}
.accordion-trigger:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

.thumb-placeholder {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 1.5px solid var(--black);
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.accordion-title-block {
    flex: 1;
}
.product-name {
    font-weight: 800;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.product-tag {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
}

.product-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #aaa;
    flex-shrink: 0;
    width: 2rem;
    text-align: right;
}

.accordion-chevron {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    color: var(--black);
    transition:
        transform 0.3s ease,
        color 0.2s;
}
.accordion-item.is-open .accordion-chevron {
    transform: rotate(180deg);
    color: var(--green);
}

.accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}
.accordion-item.is-open .accordion-body {
    grid-template-rows: 1fr;
}
.accordion-body-inner {
    overflow: hidden;
}
.accordion-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 2rem 2.5rem;
    align-items: start;
    border-top: 1.5px solid var(--black);
    transition:
        border-color 0.2s ease,
        grid-template-columns 0.3s ease;
}

.accordion-item.is-open .accordion-content {
    border-top: none;
}

/* Make the open area taller so there's room for image + multi-column text */
.accordion-item.is-open .accordion-body-inner {
    min-height: 320px; /* adjust value as needed */
}

/* On wider screens, use a 2/1 grid when open: text (2fr) + image (1fr).
   Also split the text into two columns on the left side. */
@media (min-width: 641px) {
    .accordion-item.is-open .accordion-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }

    /* Remove column-count — just let the text be a normal block */
    .accordion-item.is-open .accordion-content .product-description {
        padding-top: 0.5rem;
    }

    .accordion-content .product-image-wrap {
        align-self: start;
        width: 100%;
        height: auto;
        max-width: 420px;
    }
}

.product-image-wrap {
    flex-shrink: 0;
    width: 200px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-image-placeholder {
    font-size: 4.5rem;
}

.product-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.75;
    padding-top: 1.75rem;
    max-width: 620px;
}

@media (max-width: 640px) {
    .accordion-trigger {
        padding: 1.25rem;
        gap: 1rem;
    }
    .accordion-content {
        flex-direction: column;
        padding: 0 1.25rem 1.75rem;
        gap: 1.25rem;
    }
    .product-image-wrap {
        width: 100%;
        height: 220px;
    }
    .product-description {
        padding-top: 0;
    }
    .product-number {
        display: none;
    }
}

/* ─────────────── CONTACTO PAGE ─────────────── */
.contact-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.contact-inner {
    max-width: 560px;
}

.contact-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
    text-decoration: none;
    border-bottom: 3px solid var(--green);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.contact-email:hover {
    color: var(--green);
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
    background-color: #25d366;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border: 2px solid #25d366;
    transition:
        background 0.2s,
        color 0.2s;
}

.contact-whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-whatsapp:hover {
    background-color: transparent;
    color: #25d366;
}
