:root {
    --primary: #1c1813;
    --primary-dark: #100d09;
    --primary-light: #4d4a44;

    --accent: #e0bd67;
    --accent-light: #f2d98d;
    --accent-pale: #faf3dc;

    --dark: #1a1712;
    --text: #4a4540;
    --text-light: #79726a;

    --white: #ffffff;
    --off-white: #f7f5f0;
    --light: #efece4;
    --border: #e0ddd3;

    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.16);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --container: 1240px;

    --transition: 0.3s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    appearance: none;
    -webkit-appearance: none;

    border: none;
    outline: none;

    background: none;

    font-family: inherit;
    color: inherit;

    text-align: inherit;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.container,
.hero-container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 28px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);

    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary);

    box-shadow:
        0 10px 25px rgba(23, 59, 99, 0.20);
}

.btn-primary:hover {
    background: var(--primary-dark);

    box-shadow:
        0 15px 30px rgba(23, 59, 99, 0.28);
}

.btn-secondary {
    color: var(--primary);
    background: var(--white);

    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light {
    color: var(--primary);
    background: var(--white);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
    background: var(--off-white);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.18);
}

/* Botón "Ver catálogo de cajas" del hero: antes era un btn-secondary
   discreto (blanco con borde) que se perdía junto al botón de
   WhatsApp. Ahora se resalta con el color de acento para que compita
   visualmente y quede claro que también es una acción principal. */
.btn-catalog {
    color: var(--dark);
    background: var(--accent);

    border: 1px solid var(--accent);

    box-shadow: 0 10px 25px rgba(215, 155, 53, 0.35);
}

.btn-catalog:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);

    box-shadow: 0 15px 32px rgba(215, 155, 53, 0.45);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #f7f9fb 0%,
            #ffffff 58%,
            #eef3f7 100%
        );

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 550px;
    height: 550px;

    right: -220px;
    top: -180px;

    border-radius: 50%;

    border: 1px solid rgba(23, 59, 99, 0.08);
}

.hero::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: 8%;
    bottom: -240px;

    border-radius: 50%;

    background: rgba(215, 155, 53, 0.07);
}

.hero-container {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 80px;

    align-items: center;

    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 650px;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.hero-eyebrow::before,
.section-eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background: var(--accent);
}

.hero-eyebrow {
    font-size: 13px;
}

.hero h1 {
    max-width: 680px;

    margin-bottom: 18px;

    color: var(--dark);

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2.2px;
}

.hero-subtitle {
    margin-bottom: 15px;

    color: var(--primary);

    font-size: 24px;

    line-height: 1.3;
}

.hero-description {
    max-width: 610px;

    margin-bottom: 12px;

    color: var(--text-light);

    font-size: 16px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 32px;
}


/* =========================================================
   HERO IMAGEN
   ========================================================= */

.hero-image {
    position: relative;
}

.hero-image-frame {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    transform: rotate(1deg);

    transition: transform 0.5s ease;
}

.hero-image-frame:hover {
    transform: rotate(0deg) scale(1.01);
}

.hero-image-frame img {
    aspect-ratio: 4 / 3;

    object-fit: cover;
}

.hero-badge {
    position: absolute;

    left: -35px;
    bottom: 35px;

    display: flex;
    flex-direction: column;

    min-width: 170px;

    padding: 20px 24px;

    background: var(--white);

    border-radius: 12px;

    box-shadow: var(--shadow-md);
}

.hero-badge strong {
    color: var(--primary);

    font-size: 28px;

    line-height: 1.1;
}

.hero-badge span {
    margin-top: 5px;

    color: var(--text-light);

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   SECCIONES
   ========================================================= */

section {
    position: relative;
}

.benefits,
.about-intro,
.products-section,
.manufacturing {
    padding: 120px 0;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 55px;
}

.section-heading-center {
    margin-right: auto;
    margin-left: auto;

    text-align: center;
}

.section-heading-center .section-eyebrow {
    justify-content: center;
}

.products-photo-note {
    margin-top: 10px;

    color: var(--text-light);

    font-size: 12.5px;
    font-style: italic;
}

.section-heading h2,
.about-content h2,
.manufacturing-content h2,
.cta h2 {
    color: var(--dark);

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.12;

    letter-spacing: -1.5px;

    font-weight: 800;
}

.section-heading p {
    margin-top: 18px;

    color: var(--text-light);

    font-size: 16px;
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.benefits {
    padding: 72px 0 86px;

    background: #f7f7f5;
}

.benefits-heading {
    display: grid;

    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);

    gap: 48px;

    align-items: end;

    margin-bottom: 38px;
}

.benefits-heading h2 {
    margin: 12px 0 0;

    max-width: 760px;
}

.benefits-heading > p {
    margin: 0 0 4px;

    max-width: 470px;

    line-height: 1.75;
}

.benefits-grid {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 14px;
}

.benefit-card {
    position: relative;

    min-height: 285px;

    padding: 22px;

    background: var(--white);

    border: 1px solid #deded9;

    border-radius: 18px;

    overflow: hidden;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.benefit-card::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: #ffd369;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);

    border-color: #d2d2cc;

    box-shadow: var(--shadow-md);
}

.benefit-card:hover::after {
    transform: scaleX(1);
}

.benefit-top {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 42px;
}

.benefit-icon {
    display: grid;

    place-items: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border-radius: 12px;

    background: var(--off-white);

    color: var(--dark);

    font-size: 13px;

    font-weight: 800;

    border: 1px solid var(--border);
}

.benefit-line {
    height: 1px;
    flex: 1;

    background: #e8e8e4;
}

.benefit-content h3 {
    margin: 0 0 13px;

    color: var(--dark);

    font-size: 19px;

    line-height: 1.2;
}

.benefit-content p {
    margin: 0;

    color: var(--text-light);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-intro {
    background: var(--white);
}

.about-grid {
    display: grid;

    grid-template-columns: 0.95fr 1.05fr;

    gap: 90px;

    align-items: center;
}

.about-image {
    position: relative;

    padding: 12px;
}

.about-image::before {
    content: "";

    position: absolute;

    inset: 0;

    border: 1px solid var(--accent);

    border-radius: var(--radius-lg);

    transform: translate(-18px, 18px);

    opacity: 0.35;
}

.about-image img {
    position: relative;
    z-index: 2;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content > p {
    margin-bottom: 16px;

    color: var(--text-light);

    font-size: 15px;
}

.check-list {
    display: grid;

    gap: 12px;

    margin-top: 28px;

    list-style: none;
}

.check-list li {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--dark);

    font-size: 14px;

    font-weight: 600;
}

.check-list li span {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: rgba(23, 59, 99, 0.08);

    color: var(--primary);

    font-size: 12px;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

.products-section {
    background: var(--white);
}

.products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.product-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;

    overflow: hidden;

    background: var(--light);
}

/* Distintivo "Foto propia": deja claro que las imágenes de esta
   sección son de nuestra propia fábrica/producto y no un stock
   genérico de internet. */
.product-image::after {
    content: "Foto propia";

    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;

    padding: 5px 10px;

    background: rgba(26, 23, 18, 0.72);

    color: var(--white);

    font-size: 10.5px;
    font-weight: 700;

    letter-spacing: 0.2px;

    border-radius: 999px;
}

.product-image img {
    aspect-ratio: 1 / 0.82;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-content {
    padding: 28px;
}

.product-number {
    display: block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.product-content h3 {
    margin-bottom: 10px;

    color: var(--dark);

    font-size: 20px;

    line-height: 1.3;
}

.product-content p {
    min-height: 75px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.65;
}

.product-content a {
    display: inline-block;

    margin-top: 18px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 800;

    transition:
        color var(--transition),
        transform var(--transition);
}

.product-content a:hover {
    color: var(--accent);

    transform: translateX(4px);
}


/* =========================================================
   FABRICACIÓN
   ========================================================= */

.manufacturing {
    background: var(--off-white);

    color: var(--dark);

    overflow: hidden;
}

.manufacturing::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -200px;
    top: -250px;

    border: 1px solid rgba(0, 0, 0, 0.06);

    border-radius: 50%;
}

.manufacturing-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.manufacturing-content .section-eyebrow {
    color: var(--accent);
}

.manufacturing-content h2 {
    color: var(--dark);

    margin-bottom: 22px;
}

.manufacturing-content > p {
    max-width: 570px;

    color: var(--text-light);

    font-size: 16px;
}

.manufacturing-features {
    display: grid;

    gap: 0;

    margin-top: 35px;
}

.manufacturing-features > div {
    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid var(--border);
}

.manufacturing-features strong {
    color: var(--dark);

    font-size: 14px;
}

.manufacturing-features span {
    color: var(--text-light);

    font-size: 14px;
}

.manufacturing-image {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius-lg);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.25);
}

.manufacturing-image img {
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.manufacturing-image:hover img {
    transform: scale(1.04);
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    padding: 110px 0;

    background:
        linear-gradient(
            135deg,
            #101010 0%,
            #262626 100%
        );

    overflow: hidden;
}

.cta::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -250px;
    top: -300px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.10);
}

.cta::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -200px;

    border-radius: 50%;

    background: rgba(215, 155, 53, 0.10);
}

.cta-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    margin: 0 auto;

    text-align: center;
}

.cta .section-eyebrow {
    justify-content: center;

    color: var(--accent-light);
}

.cta .section-eyebrow::before {
    display: none;
}

.cta h2 {
    color: var(--white);

    margin-bottom: 18px;
}

.cta p {
    margin-bottom: 32px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 17px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #0b1d31;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeUp 0.8s ease both;
}

.hero-image {
    animation: fadeUp 0.8s 0.15s ease both;
}


/* =========================================================
   SELECCIÓN
   ========================================================= */

::selection {
    color: var(--white);

    background: var(--primary);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .hero-container {
        grid-template-columns: 1fr 0.85fr;

        gap: 50px;
    }

    .hero h1 {
        font-size: 52px;
    }

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

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

    .about-grid,
    .manufacturing-grid {
        gap: 55px;
    }
}


/* =========================================================
   TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 850px) {

    .container,
    .hero-container {
        width: min(
            calc(100% - 36px),
            var(--container)
        );
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;

        padding-top: 80px;
        padding-bottom: 90px;
    }

    .hero-content {
        max-width: 720px;
    }

    .hero-image {
        max-width: 700px;

        margin: 0 auto;
    }

    .about-grid,
    .manufacturing-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        order: 1;
    }

    .about-image {
        order: 2;

        max-width: 700px;

        margin: 0 auto;
    }

    .manufacturing-image {
        max-width: 700px;

        margin: 0 auto;
    }

    .benefits {
        padding: 58px 0 64px;
    }

    .benefits-heading {
        grid-template-columns: 1fr;

        gap: 18px;
    }

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


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .container,
    .hero-container {
        width: calc(100% - 30px);
    }

    .hero-container {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .hero h1 {
        font-size: 32px;

        letter-spacing: -1.1px;

        margin-bottom: 12px;
    }

    .hero-eyebrow {
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 17px;

        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 14px;

        line-height: 1.6;

        margin-bottom: 8px;
    }

    .hero-buttons {
        flex-direction: column;

        margin-top: 20px;

        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;

        min-height: 46px;
    }

    /* La foto del hero + su badge era lo que más alargaba el inicio
       en celular. Se reduce a una franja baja y angosta (sin giro),
       y con el toast "Ir directo a las cajas" ya no hace falta que
       ocupe tanto espacio para dar contexto visual. */
    .hero-image {
        max-width: 320px;

        margin: 12px auto 0;
    }

    .hero-image-frame {
        transform: none;
    }

    .hero-image-frame img {
        aspect-ratio: 16 / 7;
    }

    .hero-badge {
        left: 10px;
        bottom: 10px;

        min-width: auto;

        padding: 10px 14px;
    }

    .hero-badge strong {
        font-size: 18px;
    }

    .hero-badge span {
        font-size: 11px;
    }

    .benefits,
    .about-intro,
    .products-section,
    .manufacturing {
        padding: 44px 0;
    }

    .cta {
        padding: 48px 0;
    }

    .section-heading {
        margin-bottom: 26px;
    }

    .section-heading h2,
    .about-content h2,
    .manufacturing-content h2,
    .cta h2 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    /* 2 columnas en vez de 1 para que las 5 tarjetas de beneficios no
       obliguen a deslizar tanto antes de llegar al catálogo. */
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .benefit-card {
        min-height: auto;

        padding: 16px;
    }

    .benefit-icon {
        font-size: 20px;
    }

    .benefit-top {
        margin-bottom: 14px;
    }

    .benefit-content h3 {
        font-size: 14.5px;
    }

    .benefit-content p {
        font-size: 12.5px;

        line-height: 1.5;
    }

    /* Igual con "Qué podemos fabricarte": 2 columnas, imagen más baja
       y sin el texto de relleno que alargaba cada tarjeta. */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .product-content {
        padding: 14px;
    }

    .product-content h3 {
        font-size: 15px;
    }

    .product-content p {
        min-height: auto;

        font-size: 12.5px;

        line-height: 1.5;
    }

    .product-image::after {
        font-size: 9px;

        padding: 4px 8px;
    }

    .about-grid,
    .manufacturing-grid {
        gap: 45px;
    }

    .about-image {
        padding: 7px;
    }

    .about-image::before {
        transform: translate(-10px, 10px);
    }

    .manufacturing-features > div {
        grid-template-columns: 1fr;

        gap: 4px;
    }

    .cta p {
        font-size: 15px;
    }

    .btn {
        min-height: 52px;

        padding: 0 22px;
    }
}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 35px;
    }

    .section-heading h2,
    .about-content h2,
    .manufacturing-content h2,
    .cta h2 {
        font-size: 30px;
    }

    .hero-eyebrow,
    .section-eyebrow {
        font-size: 10px;

        letter-spacing: 1.3px;
    }
}

/* =========================================================================
   COMPONENTES DE LA APP (header, footer, menú móvil, catálogo, modal,
   FAQ, páginas internas). Estas clases las usan site-header.js,
   site-footer.js, site-menu.js y app.js, pero no tenían ninguna regla
   en este archivo — por eso se veían sin estilo (cajas gigantes sin
   acomodo, menú y footer en texto plano, etc).
   ========================================================================= */

.wrap {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background: var(--accent);
}

.section-head {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}

.section-head h2 {
    margin: 6px 0 0;

    color: var(--dark);

    font-size: clamp(28px, 3.4vw, 40px);

    line-height: 1.15;

    letter-spacing: -1px;

    font-weight: 800;
}

.section-head p {
    margin-top: 12px;

    max-width: 480px;

    color: var(--text-light);

    font-size: 15px;

    line-height: 1.7;
}

.ic {
    display: inline-flex;

    flex-shrink: 0;

    color: var(--text-light);
}


/* ---------------------------------------------------------------
   TOPBAR + HEADER
   --------------------------------------------------------------- */

.topbar {
    background: var(--accent-pale);

    color: var(--dark);

    font-size: 12.5px;
}

.topbar svg {
    color: var(--accent);
}

.topbar .wrap {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 9px 0;
}

.topbar .tb-left {
    display: flex;

    align-items: center;

    gap: 24px;
}

.topbar a {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    opacity: 0.9;

    transition: opacity var(--transition);
}

.topbar a:hover {
    opacity: 1;
}

.topbar.promo-bar {
    background: var(--accent-pale);
}

.topbar.promo-bar .tb-left {
    gap: 28px;
}

.topbar.promo-bar span {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--dark);
}

.topbar-bottom {
    order: 99;
}

header {
    position: sticky;
    top: 0;
    z-index: 90;

    background: var(--dark);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .wrap {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 14px 0;
}

.brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

.brand-mark img {
    width: 46px;
    height: 46px;

    object-fit: contain;
}

.brand-text .name {
    color: var(--white);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.2px;
}

.brand-text .sub {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 11.5px;
}

header nav {
    display: flex;

    align-items: center;

    gap: 32px;
}

header nav a {
    position: relative;

    color: rgba(255, 255, 255, 0.75);

    font-size: 14px;
    font-weight: 600;

    padding: 4px 0;

    transition: color var(--transition);
}

header nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -4px;

    width: 100%;
    height: 2px;

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform var(--transition);
}

header nav a:hover,
header nav a.active {
    color: var(--white);
}

header nav a:hover::after,
header nav a.active::after {
    transform: scaleX(1);
}

.header-right {
    display: flex;

    align-items: center;
}

.hamburger {
    display: none;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: var(--radius-sm);

    background: rgba(255, 255, 255, 0.1);

    color: var(--white);

    cursor: pointer;
}

@media (max-width: 850px) {
    header nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}


/* ---------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------- */

.site-footer {
    background: var(--dark);

    color: rgba(255, 255, 255, 0.7);
}

.footer-main {
    padding: 72px 0 48px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;

    gap: 46px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.footer-logo img {
    width: 44px;
    height: 44px;

    object-fit: contain;

    filter: brightness(0) invert(1);
}

.footer-brand-text .fname {
    color: var(--white);

    font-size: 13.5px;
    font-weight: 800;

    line-height: 1.3;
}

.footer-brand-text .fsub {
    margin-top: 3px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 11.5px;
}

.footer-desc {
    max-width: 340px;

    margin-bottom: 20px;

    font-size: 13.5px;

    line-height: 1.75;
}

.footer-cta {
    display: inline-flex;

    align-items: center;

    padding: 11px 22px;

    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    transition: background var(--transition), border-color var(--transition);
}

.footer-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
    margin-bottom: 16px;

    color: var(--white);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 11px;

    font-size: 13.5px;

    line-height: 1.6;
}

.footer-col a {
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.fitem {
    display: flex;

    align-items: flex-start;

    gap: 9px;
}

.fitem .ic {
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.55);
}

.footer-ext {
    margin-top: -2px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);

    padding: 20px 0;

    font-size: 12.5px;

    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;

    gap: 20px;
}

.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;

        row-gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        row-gap: 34px;
    }
}


/* ---------------------------------------------------------------
   WHATSAPP FLOTANTE
   --------------------------------------------------------------- */

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 86px;
    height: 86px;

    border-radius: 50%;

    background: #25d366;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);

    transition: transform var(--transition);
}

.wa-float:hover {
    transform: scale(1.08);
}

.wa-float svg {
    width: 44px;
    height: 44px;
}

@media (max-width: 600px) {
    .wa-float {
        right: 16px;
        bottom: 16px;

        width: 72px;
        height: 72px;
    }

    .wa-float svg {
        width: 37px;
        height: 37px;
    }
}

/* ============ TOAST MÓVIL "IR A CAJAS" (solo Inicio) ============
   Aviso flotante que solo se muestra en celular en index.html; manda
   directo al catálogo (#productos) para no obligar a deslizar tanto.
   El JS (initMobileJumpToast / goToCajasFromToast / closeMobileJumpToast)
   ya vivía en app.js; aquí solo faltaba el estilo. */
.mobile-jump-toast {
    position: fixed;
    left: 16px;
    bottom: 22px;
    z-index: 59;

    display: none;
    align-items: center;

    gap: 4px;

    max-width: calc(100% - 108px);

    padding: 6px;
    padding-left: 16px;

    background: var(--dark);
    color: var(--white);

    border-radius: 999px;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);

    transform: translateY(140%);
    opacity: 0;

    transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-jump-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.mjt-action {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px 4px;

    background: none;
    border: none;

    color: var(--white);

    font-size: 13.5px;
    font-weight: 700;
    text-align: left;

    cursor: pointer;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mjt-ic {
    font-size: 16px;
    flex-shrink: 0;
}

.mjt-close {
    display: flex;
    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);
    border: none;

    color: var(--white);

    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}

@media (max-width: 600px) {
    .mobile-jump-toast {
        display: flex;
    }
}


/* ---------------------------------------------------------------
   MENÚ MÓVIL
   --------------------------------------------------------------- */

.mm-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;

    background: rgba(10, 10, 10, 0.5);

    opacity: 0;
    visibility: hidden;

    transition: opacity var(--transition);
}

.mm-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 201;

    width: min(360px, 88vw);
    height: 100%;

    display: flex;
    flex-direction: column;

    background: var(--white);

    box-shadow: var(--shadow-lg);

    transform: translateX(100%);

    transition: transform 0.35s ease;

    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mm-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 18px 20px;

    border-bottom: 1px solid var(--border);
}

.mm-brand {
    display: flex;

    align-items: center;

    gap: 10px;
}

.mm-brand-logo img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}

.mm-logo {
    color: var(--dark);

    font-size: 12px;
    font-weight: 800;

    line-height: 1.3;
}

.mm-head button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: var(--radius-sm);

    background: var(--off-white);

    color: var(--dark);

    font-size: 22px;

    cursor: pointer;
}

.mm-search {
    position: relative;

    padding: 16px 20px;

    border-bottom: 1px solid var(--border);
}

.mm-search input {
    width: 100%;

    padding: 12px 14px;

    border-radius: var(--radius-sm);
    border: 1px solid var(--border);

    font-size: 14px;
}

.mm-nav {
    display: flex;
    flex-direction: column;

    padding: 10px 12px 30px;
}

.mm-nav > a {
    padding: 13px 8px;

    color: var(--dark);

    font-size: 15px;
    font-weight: 700;

    border-bottom: 1px solid var(--off-white);
}

.mm-prod-row {
    display: flex;

    align-items: center;

    border-bottom: 1px solid var(--off-white);
}

.mm-prod-link {
    flex: 1;

    padding: 13px 8px;

    color: var(--dark);

    font-size: 15px;
    font-weight: 700;
}

.mm-accordion-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: var(--dark);

    cursor: pointer;
}

.mm-accordion-btn .chev,
.faq-q .chev {
    display: inline-block;

    transition: transform var(--transition);
}

.mm-accordion-btn.open .chev {
    transform: rotate(180deg);
}

.mm-accordion {
    max-height: 0;
    overflow: hidden;

    padding: 0 8px;

    transition: max-height var(--transition), padding var(--transition);
}

.mm-prod-row:has(+ .mm-accordion.open-check) {
    /* placeholder para navegadores sin :has, no afecta nada */
}

.mm-accordion.open,
.mm-accordion:has(.mm-cat-item) {
    max-height: 900px;
}

.mm-sub-label {
    margin: 14px 0 8px;

    color: var(--text-light);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.mm-cat-grid {
    display: grid;

    gap: 6px;
}

.mm-cat-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 10px;

    border-radius: var(--radius-sm);

    background: var(--off-white);

    color: var(--dark);

    font-size: 13.5px;
    font-weight: 600;
}

.mm-cat-ic {
    display: flex;

    width: 18px;
    height: 18px;

    color: var(--primary);
}

.mm-cat-label {
    flex: 1;
}

.mm-cat-arrow {
    color: var(--text-light);
}


/* ---------------------------------------------------------------
   TOASTS
   --------------------------------------------------------------- */

.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 400;

    display: flex;
    flex-direction: column;

    gap: 8px;

    transform: translateX(-50%);
}

.toast {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    border-radius: 999px;

    background: var(--dark);

    color: var(--white);

    font-size: 13.5px;
    font-weight: 600;

    box-shadow: var(--shadow-md);

    opacity: 0;
    transform: translateY(10px);

    transition: opacity 0.22s ease, transform 0.22s ease;

    cursor: pointer;

    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    opacity: 0;
}

.toast-ic {
    display: flex;

    color: #6ee7a0;
}


/* ---------------------------------------------------------------
   MODAL DE ENTRADA (popup de bienvenida)
   --------------------------------------------------------------- */

.entry-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(10, 10, 10, 0.55);

    opacity: 0;
    visibility: hidden;

    transition: opacity var(--transition);
}

.entry-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.entry-modal {
    position: relative;

    width: min(400px, 100%);

    padding: 46px 34px 38px;

    border-radius: var(--radius-lg);

    background: var(--white);

    text-align: center;

    box-shadow: var(--shadow-lg);

    transform: scale(0.92);

    transition: transform var(--transition);
}

.entry-modal-overlay.open .entry-modal {
    transform: scale(1);
}

.entry-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: var(--off-white);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.em-thanks {
    display: block;

    color: var(--text-light);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.em-years {
    display: block;

    margin: 14px 0 6px;

    color: var(--dark);

    font-size: 44px;
    font-weight: 900;

    letter-spacing: -1px;
}

.em-sub {
    display: block;

    margin-bottom: 26px;

    color: var(--text-light);

    font-size: 14px;
}

.em-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 30px;

    border-radius: 7px;

    background: var(--primary);

    color: var(--white);

    font-size: 14px;
    font-weight: 700;

    transition: background var(--transition);
}

.em-cta:hover {
    background: var(--primary-dark);
}


/* ---------------------------------------------------------------
   CATÁLOGO: buscador + navegación de categorías
   --------------------------------------------------------------- */

#productos .section-head {
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;

    width: min(320px, 100%);
}

.search-wrap input,
.mm-search input {
    outline: none;
}

.search-wrap input {
    width: 100%;

    padding: 13px 16px;

    border-radius: var(--radius-sm);
    border: 1px solid var(--border);

    font-size: 14px;

    transition: border-color var(--transition);
}

.search-wrap input:focus {
    border-color: var(--primary);
}

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;

    display: none;
    flex-direction: column;

    max-height: 360px;
    overflow-y: auto;

    padding: 8px;

    border-radius: var(--radius-sm);
    border: 1px solid var(--border);

    background: var(--white);

    box-shadow: var(--shadow-md);
}

.search-suggest.open {
    display: flex;
}

.suggest-item {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 10px;

    border-radius: 8px;

    cursor: pointer;
}

.suggest-item:hover,
.suggest-item.active {
    background: var(--off-white);
}

.suggest-icon svg {
    width: 40px;
    height: 34px;
}

.suggest-name {
    color: var(--dark);

    font-size: 13.5px;
    font-weight: 700;
}

.suggest-dims,
.suggest-meta {
    color: var(--text-light);

    font-size: 12px;
}

.suggest-empty {
    padding: 14px 10px;

    color: var(--text-light);

    font-size: 13px;

    text-align: center;
}

.cat-nav {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    margin-bottom: 34px;
}

.cat-nav button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    border-radius: 999px;
    border: 1px solid var(--border);

    background: var(--white);

    color: var(--text);

    font-size: 13.5px;
    font-weight: 600;

    cursor: pointer;

    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cat-nav button:hover {
    border-color: var(--primary);
}

.cat-nav button.active {
    background: var(--primary);
    border-color: var(--primary);

    color: var(--white);
}

.cat-ic,
.cat-tag-ic {
    display: flex;

    width: 15px;
    height: 15px;
}

.cat-sep {
    width: 1px;
    height: 22px;

    margin: 0 4px;

    background: var(--border);
}


/* ---------------------------------------------------------------
   CATÁLOGO: cuadrícula de tarjetas
   --------------------------------------------------------------- */

.grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));

    gap: 20px;
}

.card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 16px 16px 14px;

    border-radius: var(--radius-md);
    border: 1px solid transparent;

    background: var(--white);
    box-shadow: var(--shadow-sm);

    cursor: pointer;

    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-6px);

    border-color: rgba(217, 168, 79, 0.35);

    box-shadow: var(--shadow-md);
}

.share-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: var(--off-white);

    color: var(--text-light);

    cursor: pointer;

    transition: background var(--transition), color var(--transition);
}

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

.share-btn svg {
    width: 15px;
    height: 15px;
}

.icon-wrap {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 84px;
    margin-bottom: 10px;

    background: var(--off-white);
    border-radius: var(--radius-sm);
}

.icon-wrap svg {
    max-width: 74%;
    height: auto;
}

.cat-tag {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    color: var(--accent);
    filter: brightness(0.85);

    font-size: 11.5px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.prod-name {
    margin-bottom: 4px;

    color: var(--dark);

    font-size: 15.5px;
    font-weight: 800;
}

.dims {
    color: var(--text);

    font-size: 13.5px;
}

.sku {
    margin-top: 2px;

    color: var(--text-light);

    font-size: 12.5px;
}

.detail-hint {
    margin-top: 10px;

    color: var(--text-light);

    font-size: 12px;

    opacity: 0;

    transition: opacity var(--transition);
}

.card:hover .detail-hint {
    opacity: 1;
}

.price-row {
    display: flex;

    align-items: baseline;

    margin-top: 14px;
}

.price {
    color: var(--dark);

    font-size: 18px;
    font-weight: 800;
}

.card-foot {
    margin-top: 14px;
}

.wa-quote-btn {
    display: inline-flex;
    width: 100%;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    border-radius: 7px;

    background: var(--accent);

    color: var(--dark);

    font-size: 13.5px;
    font-weight: 700;

    cursor: pointer;

    transition: background var(--transition), transform var(--transition);
}

.wa-quote-btn:hover {
    background: var(--accent-light);

    transform: translateY(-2px);
}

.no-results,
.cat-empty {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;

    align-items: center;

    padding: 70px 20px;

    text-align: center;
}

.no-results-icon {
    font-size: 34px;

    margin-bottom: 14px;
}

.cat-empty-icon svg {
    width: 40px;
    height: 40px;

    color: var(--text-light);

    margin-bottom: 14px;
}

.no-results-title,
.cat-empty-title {
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 17px;
    font-weight: 800;
}

.no-results-text,
.cat-empty-text {
    max-width: 420px;

    margin-bottom: 20px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.7;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

        gap: 10px;
    }

    /* Las tarjetas del catálogo se sentían demasiado altas en celular
       (icono grande + varios márgenes acumulados). Se achica el icono,
       se recortan los espacios entre bloques y se reduce el botón de
       cotizar para que la tarjeta ocupe bastante menos alto sin perder
       ningún dato. */
    .card {
        padding: 12px 12px 12px;
    }

    .icon-wrap {
        height: 60px;

        margin-bottom: 10px;
    }

    .cat-tag {
        margin-bottom: 5px;

        font-size: 10.5px;
    }

    .prod-name {
        margin-bottom: 2px;

        font-size: 14px;
    }

    .dims {
        font-size: 12.5px;
    }

    .sku {
        margin-top: 1px;

        font-size: 11px;
    }

    .detail-hint {
        margin-top: 6px;
    }

    .price-row {
        margin-top: 8px;
    }

    .price {
        font-size: 16px;
    }

    .card-foot {
        margin-top: 8px;
    }

    .wa-quote-btn {
        min-height: 38px;

        font-size: 12.5px;
    }
}


/* ---------------------------------------------------------------
   MODAL DE FICHA DE PRODUCTO / COMPARTIR
   --------------------------------------------------------------- */

.detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(10, 10, 10, 0.55);

    opacity: 0;
    visibility: hidden;

    transition: opacity var(--transition);
}

.detail-overlay.open {
    opacity: 1;
    visibility: visible;
}

.detail-modal {
    width: min(560px, 100%);
    max-height: 88vh;

    display: flex;
    flex-direction: column;

    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-lg);

    overflow: hidden;

    transform: scale(0.94);

    transition: transform var(--transition);
}

.detail-overlay.open .detail-modal {
    transform: scale(1);
}

.detail-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 18px 22px;

    border-bottom: 1px solid var(--border);
}

.detail-head h3 {
    color: var(--dark);

    font-size: 16px;
    font-weight: 800;
}

.detail-head button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: var(--off-white);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.detail-body {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

    padding: 26px 22px;

    overflow-y: auto;
}

.detail-visual {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;
}

.detail-visual .icon-wrap {
    position: relative;

    width: 100%;
    height: 150px;

    border-radius: var(--radius-sm);

    background: var(--off-white);

    cursor: pointer;
}

.detail-visual .box-closed,
.detail-visual .box-open {
    position: absolute;
    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: opacity var(--transition);
}

.detail-visual .box-open {
    opacity: 0;
}

.detail-visual .icon-wrap:hover .box-closed,
.detail-visual .icon-wrap.locked .box-closed {
    opacity: 0;
}

.detail-visual .icon-wrap:hover .box-open,
.detail-visual .icon-wrap.locked .box-open {
    opacity: 1;
}

.box-caption {
    color: var(--text-light);

    font-size: 12px;

    text-align: center;
}

.detail-info dl {
    display: grid;

    grid-template-columns: auto 1fr;

    gap: 8px 14px;

    margin-bottom: 6px;
}

.detail-info dt {
    color: var(--text-light);

    font-size: 12.5px;
    font-weight: 700;
}

.detail-info dd {
    color: var(--dark);

    font-size: 13.5px;
}

.detail-foot {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 16px;
}

.detail-foot .wa-quote-btn {
    flex: 1;
}

.detail-foot .share-btn {
    position: static;
}

.share-menu {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.share-menu a,
.share-menu button {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    border-radius: var(--radius-sm);
    border: 1px solid var(--border);

    color: var(--dark);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.share-menu a:hover,
.share-menu button:hover {
    border-color: var(--primary);
}

.share-menu svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .detail-body {
        grid-template-columns: 1fr;
    }
}


/* ---------------------------------------------------------------
   FAQ
   --------------------------------------------------------------- */

.faq-section {
    padding: 100px 0;

    background: var(--off-white);
}

.faq-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);

    background: var(--white);

    overflow: hidden;
}

.faq-q {
    display: flex;
    width: 100%;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 20px 22px;

    color: var(--dark);

    font-size: 15px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;
}

.faq-q .chev {
    flex-shrink: 0;

    color: var(--text-light);
}

.faq-a {
    max-height: 0;
    overflow: hidden;

    padding: 0 22px;

    transition: max-height var(--transition), padding var(--transition);
}

.faq-a.open {
    max-height: 2000px;

    padding: 0 22px 20px;
}

.faq-a p {
    color: var(--text-light);

    font-size: 14px;

    line-height: 1.75;
}


/* ---------------------------------------------------------------
   ENLACES CRUZADOS
   --------------------------------------------------------------- */

.cross-links-section {
    padding: 60px 0;
}

.cross-links {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 16px 26px;
}

.cross-links span {
    color: var(--text-light);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cross-links a {
    color: var(--dark);

    font-size: 14.5px;
    font-weight: 700;

    border-bottom: 1px solid var(--border);

    padding-bottom: 2px;

    transition: border-color var(--transition);
}

.cross-links a:hover {
    border-color: var(--primary);
}


/* ---------------------------------------------------------------
   PAGE BANNER (Nosotros / Contacto)
   --------------------------------------------------------------- */

.page-banner {
    position: relative;

    padding: 110px 0 90px;

    background:
        linear-gradient(
            135deg,
            var(--primary) 0%,
            var(--primary-light) 100%
        );

    overflow: hidden;
}

.page-banner::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -250px;
    top: -300px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.10);
}

.page-banner::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -200px;

    border-radius: 50%;

    background: rgba(215, 155, 53, 0.10);
}

.page-banner .wrap {
    position: relative;
    z-index: 2;

    max-width: 760px;
}

.page-banner h1 {
    margin: 10px 0 18px;

    color: var(--white);

    font-size: clamp(32px, 4.2vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;

    font-weight: 800;
}

.page-banner p {
    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 15.5px;

    line-height: 1.75;
}

/* Fondo de la página "Nosotros": antes el page-banner era solo un
   degradado plano, sin usar la textura de cartón que ya se subió al
   sitio (fondo1.jpg). Se agrega como imagen de fondo, oscurecida con
   el mismo degradado de marca encima para que el texto en blanco
   siga siendo legible. */
.page-banner-textura {
    background:
        linear-gradient(
            135deg,
            rgba(23, 27, 33, 0.88) 0%,
            rgba(74, 44, 24, 0.82) 100%
        ),
        url('fondo1.jpg');

    background-size: cover;
    background-position: center;
}

.plain-list {
    margin: 18px 0 24px;

    padding-left: 20px;

    color: var(--text-light);

    font-size: 14.5px;

    line-height: 1.9;
}

.pb-cta {
    margin-top: 6px;
}

.btn-primary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 28px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
}


/* ---------------------------------------------------------------
   CONTACTO
   --------------------------------------------------------------- */

.contact {
    padding: 90px 0 60px;

    background: var(--off-white);
}

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    margin-bottom: 50px;
}

.contact-block h3 {
    margin-bottom: 16px;

    color: var(--dark);

    font-size: 15px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.contact-row {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 13px;

    color: var(--text);

    font-size: 14.5px;

    line-height: 1.6;
}

.contact-row .ic {
    margin-top: 2px;

    color: var(--accent);
}

.contact-row a:hover {
    color: var(--primary);
}

.social-row {
    display: flex;

    gap: 10px;

    margin-top: 12px;
}

.social-row a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: var(--white);

    color: var(--accent);

    box-shadow: var(--shadow-sm);

    font-weight: 800;
}

.map-link {
    display: inline-flex;

    margin-top: 4px;

    color: var(--primary);

    font-size: 13.5px;
    font-weight: 700;
}

.map-wrap {
    position: relative;
    isolation: isolate;

    padding: 14px;

    background: var(--white);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);
}

.map-wrap #mapaContacto {
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
}

#mapaContacto,
#mapaSucursal {
    height: 380px;

    width: 100%;
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 36px;
    }
}


/* ---------------------------------------------------------------
   NOSOTROS
   --------------------------------------------------------------- */

.gallery-section,
.about {
    padding: 90px 0;
}

.about {
    background: var(--white);
}

.factory-gallery {
    display: flex;
    flex-direction: column;

    gap: 14px;

    /* Antes ocupaba todo el ancho del contenedor a 16:9, lo que la
       hacía enorme en pantallas grandes. Se redujo a una miniatura de
       galería y luego se extendió un poco de nuevo para que se vea
       con más presencia sin volver a ser una franja "de portada". */
    max-width: 620px;

    margin: 0 auto;
}

.fg-main {
    position: relative;

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-md);
}

.fg-main img {
    width: 100%;
    aspect-ratio: 16 / 10;

    max-height: 320px;

    object-fit: cover;
}

.fg-nav {
    position: absolute;
    top: 50%;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: var(--dark);

    font-size: 22px;

    transform: translateY(-50%);

    cursor: pointer;
}

.fg-prev {
    left: 14px;
}

.fg-next {
    right: 14px;
}

.fg-thumbs {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));

    gap: 10px;
}

.fg-thumb {
    border-radius: 10px;

    overflow: hidden;

    opacity: 0.55;

    cursor: pointer;

    transition: opacity var(--transition);
}

.fg-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;
}

.fg-thumb:hover,
.fg-thumb.active {
    opacity: 1;
}

@media (max-width: 600px) {
    .factory-gallery {
        max-width: 400px;
    }

    .fg-main img {
        aspect-ratio: 16 / 11;

        max-height: 210px;
    }

    .fg-nav {
        width: 34px;
        height: 34px;

        font-size: 18px;
    }

    .fg-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));

        gap: 6px;
    }
}

.about .about-grid {
    grid-template-columns: 1.1fr 0.9fr;

    align-items: start;

    gap: 60px;

    margin-top: 36px;
}

.about .about-grid p {
    margin-bottom: 14px;

    color: var(--text-light);

    font-size: 14.5px;

    line-height: 1.75;
}

.values {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;

    list-style: none;
}

.values li {
    padding: 8px 16px;

    border-radius: 999px;

    background: var(--white);
    border: 1px solid var(--border);

    color: var(--dark);

    font-size: 13px;
    font-weight: 700;
}

.philosophy {
    padding: 30px;

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);
}

.philosophy h3 {
    margin-bottom: 16px;

    color: var(--dark);

    font-size: 16px;
    font-weight: 800;
}

.philosophy ol {
    padding-left: 18px;

    color: var(--text-light);

    font-size: 13.5px;

    line-height: 1.85;
}

.philosophy li {
    margin-bottom: 10px;
}

.philosophy strong {
    color: var(--dark);
}

.branch-block {
    margin-top: 56px;
}

.branch-map-wrap {
    position: relative;
    isolation: isolate;

    margin-top: 18px;

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-md);
}

@media (max-width: 850px) {
    .about .about-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }
}

@media (max-width: 600px) {
    .gallery-section,
    .about {
        padding: 60px 0;
    }

    .philosophy {
        padding: 22px;
    }
}


/* ---------------------------------------------------------------
   PORTAFOLIO (nosotros.html)
   --------------------------------------------------------------- */

.portfolio-section {
    padding: 90px 0;

    background: var(--off-white);
}

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.portfolio-item {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-md);
}

.portfolio-item img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Igual que en "Qué podemos fabricarte": deja claro que son fotos
   propias de producción, no imágenes de stock. */
.portfolio-item::before {
    content: "Foto propia";

    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;

    padding: 5px 10px;

    background: rgba(26, 23, 18, 0.72);

    color: var(--white);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.2px;

    border-radius: 999px;
}

.portfolio-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;

    padding: 34px 14px 12px;

    background: linear-gradient(
        to top,
        rgba(15, 13, 10, 0.88) 0%,
        rgba(15, 13, 10, 0.55) 55%,
        rgba(15, 13, 10, 0) 100%
    );

    color: var(--white);

    font-size: 13.5px;
    font-weight: 700;

    line-height: 1.4;
}

@media (max-width: 850px) {
    .portfolio-section {
        padding: 64px 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 14px;
    }
}

@media (max-width: 600px) {
    .portfolio-section {
        padding: 48px 0;
    }

    .portfolio-item::before {
        font-size: 9px;

        padding: 4px 8px;
    }

    .portfolio-item figcaption {
        padding: 26px 10px 10px;

        font-size: 12px;
    }
}