/* KOV — estilos parte 2: categorías, contacto, catálogo Oficina/Sillas/etc., líneas. Si styles.css del servidor está truncado, este archivo lo compensa. */
/* ===== PÁGINAS DE CATEGORÍA ===== */
.category-page-main {
    background: #fff;
    padding-top: 140px;
}

.category-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 48px;
}

.category-hero-inner {
    border-radius: 18px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: end;
    padding: 34px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-hero-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.category-eyebrow {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.category-hero-title {
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 8px 0;
}

.category-hero-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0;
}

.subcategory-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 90px;
}

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

.subcategory-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.subcategory-index {
    color: #DDA44D;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.subcategory-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.subcategory-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.category-cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 100px;
}

.category-cta-box {
    background: #FBF0D9;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category-cta-text h2 {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.category-cta-text p {
    margin: 0;
    color: #555;
}

.category-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease;
}

.category-cta-link:hover {
    background: #DDA44D;
}

@media (max-width: 900px) {
    .category-page-main {
        padding-top: 110px;
    }

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

@media (max-width: 560px) {
    .category-hero-inner {
        min-height: 230px;
        padding: 22px;
    }

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

/* ===== PÁGINA CONTACTO ===== */
.contact-main {
    background: #fff;
    padding-top: 140px;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 90px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 26px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-card h2 {
    margin: 0 0 14px 0;
    color: #1a1a1a;
    font-size: 1.35rem;
}

.contact-card p {
    margin: 0 0 10px 0;
    color: #555;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    margin-bottom: 10px;
    color: #333;
}

.contact-list a {
    color: #333;
    text-decoration: none;
}

.contact-list a:hover {
    color: #DDA44D;
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-pill-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-pill-primary:hover {
    background: #DDA44D;
}

.btn-pill-secondary {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
}

.btn-pill-secondary:hover {
    border-color: #DDA44D;
    color: #DDA44D;
}

.map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 320px;
}

.map-wrap iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .contact-main {
        padding-top: max(100px, env(safe-area-inset-top, 0px) + 88px);
    }

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

    .contact-section {
        padding-left: max(4%, env(safe-area-inset-left));
        padding-right: max(4%, env(safe-area-inset-right));
    }
}

@media (max-width: 560px) {
    .contact-main {
        padding-top: max(92px, env(safe-area-inset-top, 0px) + 76px);
    }

    .contact-section {
        padding-bottom: 56px;
    }

    .contact-card {
        padding: 20px 18px;
    }

    .map-wrap,
    .map-wrap iframe {
        min-height: 240px;
    }
}

/* ===== CATÁLOGO DE PRODUCTOS (visual, distinto a contacto) ===== */
.catalog-page {
    background: linear-gradient(180deg, #f5f3ef 0%, #fafafa 45%, #fff 100%);
    padding-top: 0;
}

.catalog-page .site-footer {
    margin-top: 0;
}

.catalog-hero-full {
    position: relative;
    min-height: 52vh;
    min-height: min(520px, 70vh);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding: 120px 5% 64px;
}

.catalog-hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.75) 0%, rgba(63, 63, 63, 0.55) 45%, rgba(221, 164, 77, 0.25) 100%);
}

.catalog-hero-full::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #f5f3ef, transparent);
    pointer-events: none;
}

.catalog-hero-inner-wrap {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.catalog-hero-inner-wrap h1 {
    margin: 0 0 14px 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.catalog-hero-inner-wrap p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    line-height: 1.65;
}

.catalog-gold-bar {
    background: linear-gradient(90deg, #c9a227 0%, #DDA44D 50%, #e8c77a 100%);
    color: #1a1a1a;
    text-align: center;
    padding: 14px 5%;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.catalog-mosaic-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 5% 72px;
}

.catalog-section-title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 28px 0;
    text-align: center;
}

.catalog-section-title span {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #DDA44D;
}

/* Mosaico: anclado a .catalog-mosaic-wrap (section), no a main.catalog-page — WP a veces quita el <main> o su clase */
.catalog-mosaic-wrap .kov-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .catalog-mosaic-wrap .kov-mosaic .kov-tile:first-child {
        grid-column: span 2;
        min-height: 280px;
    }
}

.catalog-mosaic-wrap a.kov-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    box-sizing: border-box;
}

.catalog-mosaic-wrap a.kov-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
    transition: opacity 0.28s ease;
    z-index: 1;
    pointer-events: none;
}

.catalog-mosaic-wrap a.kov-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.catalog-mosaic-wrap a.kov-tile:hover::before {
    opacity: 0.95;
}

.catalog-mosaic-wrap .kov-tile-body {
    position: relative;
    z-index: 2;
    padding: 22px 22px 20px;
}

.catalog-mosaic-wrap .kov-tile-label {
    display: block;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.catalog-mosaic-wrap .kov-tile-desc {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88) !important;
    margin-bottom: 14px;
    max-width: 42ch;
}

.catalog-mosaic-wrap .kov-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #DDA44D !important;
}

.catalog-mosaic-wrap .kov-tile-cta::after {
    content: "→";
    transition: transform 0.2s ease;
}

.catalog-mosaic-wrap a.kov-tile:hover .kov-tile-cta::after {
    transform: translateX(4px);
}

.catalog-cta-visual {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 100px;
}

.catalog-cta-visual-inner {
    border-radius: 20px;
    padding: 36px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #3f3f3f 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.catalog-cta-visual-inner h2 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
}

.catalog-cta-visual-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    max-width: 480px;
}

.catalog-cta-visual-inner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: #DDA44D;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.catalog-cta-visual-inner a:hover {
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .catalog-mosaic-wrap .kov-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-hero-full {
        min-height: min(420px, 55vh);
        padding-top: 96px;
        padding-left: 4%;
        padding-right: 4%;
    }

    .catalog-mosaic-wrap {
        padding: 48px 4% 56px;
    }

    .catalog-gold-bar {
        font-size: 0.78rem;
        padding: 12px max(4%, env(safe-area-inset-right)) 12px max(4%, env(safe-area-inset-left));
        letter-spacing: 0.09em;
        line-height: 1.35;
    }
}

@media (max-width: 640px) {
    .catalog-cta-visual {
        padding: 0 max(4%, env(safe-area-inset-right)) 64px max(4%, env(safe-area-inset-left));
    }

    .catalog-cta-visual-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .catalog-cta-visual-inner a {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 14px 20px;
    }
}

@media (max-width: 560px) {
    .catalog-mosaic-wrap .kov-mosaic {
        grid-template-columns: 1fr;
    }

    .catalog-mosaic-wrap .kov-mosaic .kov-tile:first-child {
        grid-column: auto;
        min-height: 200px;
    }

    .catalog-mosaic-wrap {
        padding-top: 36px;
        padding-bottom: 48px;
    }

    .catalog-hero-inner-wrap h1 {
        font-size: clamp(1.5rem, 7vw, 1.85rem);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== INICIO: SOBRE NOSOTROS DESTACADO ===== */
.about-section-highlight .about-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(22px, 3vw, 46px);
    align-items: center;
}

/* Imagen alineada con la columna de texto (misma altura lógica que styles.css: 4/3 + object-fit) */
.about-section-highlight .about-image {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    align-self: center;
    width: 100%;
}

.about-section-highlight .about-content {
    max-width: 560px;
}

.about-kicker {
    margin: 0 0 14px;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: #5a5a5a;
    text-transform: uppercase;
}

.about-title-strong {
    margin: 0 0 18px;
    font-size: clamp(2.45rem, 5.2vw, 3.65rem);
    line-height: 1.02;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: -0.03em;
    text-shadow: 0 0 0.65px currentColor, 0 0 0.65px currentColor;
}

.about-section-highlight .about-mission {
    margin: 0 0 26px;
    text-align: justify;
    color: #444;
    line-height: 1.65;
}

.about-cta-wrap {
    margin-top: 4px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 14px 28px;
    min-height: 48px;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.about-cta-btn:visited,
.about-cta-btn:active {
    color: #fff !important;
    text-decoration: none !important;
}

.about-cta-btn:hover {
    background: #2b2b2b;
    transform: translateY(-1px);
}

.about-section-highlight .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== PÁGINA NUESTROS PROYECTOS (vista editorial / bento) ===== */
.projects-showcase {
    padding-top: 120px;
    background: #ece8e0;
    background-image:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(221, 164, 77, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(26, 26, 26, 0.06), transparent 50%);
}

.proj-hero {
    padding: 0 5% 48px;
}

.proj-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0;
    min-height: min(72vh, 560px);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.proj-hero-copy {
    background: linear-gradient(165deg, #fdfcfa 0%, #f3efe8 100%);
    padding: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 5px solid #DDA44D;
    position: relative;
}

.proj-hero-copy::after {
    content: "";
    position: absolute;
    top: 18%;
    right: 12%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(221, 164, 77, 0.35);
    border-radius: 50%;
    pointer-events: none;
}

.proj-hero-eyebrow {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a6a58;
}

.proj-hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.8vw, 3.35rem);
    line-height: 1.05;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.035em;
}

.proj-hero-lead {
    margin: 0 0 28px;
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.65;
    color: #3d3d3d;
    max-width: 38ch;
}

.proj-hero-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.proj-hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 0;
}

.proj-hero-stats strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a1a1a;
}

.proj-hero-stats span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.proj-hero-visual {
    background-size: cover;
    background-position: center;
    min-height: 280px;
    position: relative;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.proj-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(26, 26, 26, 0.25) 0%, transparent 45%);
    pointer-events: none;
}

.proj-bento-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5% 100px;
}

.proj-bento-head {
    margin-bottom: 28px;
    max-width: 560px;
}

.proj-bento-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.proj-bento-head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #DDA44D, #e8c77a);
    margin-top: 14px;
    border-radius: 2px;
}

.proj-bento-head p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.proj-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    min-height: 520px;
}

.proj-tile {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proj-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.proj-tile--feature {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.proj-bento .proj-tile:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.proj-bento .proj-tile:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.proj-tile--gold {
    border-color: rgba(221, 164, 77, 0.45);
    box-shadow: 0 12px 36px rgba(221, 164, 77, 0.15);
}

.proj-tile-media {
    flex: 0 0 auto;
    min-height: 160px;
    background-size: cover;
    background-position: center;
}

.proj-tile--feature .proj-tile-media {
    min-height: min(42vh, 320px);
}

.proj-tile-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.proj-tile-num {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 0, 0, 0.06);
    user-select: none;
}

.proj-tile--gold .proj-tile-num {
    color: rgba(221, 164, 77, 0.35);
}

.proj-tile-tag {
    margin: 0 0 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a67c28;
}

.proj-tile-title {
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 800;
    color: #111;
    line-height: 1.25;
}

.proj-tile-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #555;
}

@media (max-width: 900px) {
    .about-section-highlight .about-inner {
        grid-template-columns: 1fr;
    }

    .about-section-highlight .about-content {
        order: 2;
    }

    .about-section-highlight .about-image {
        order: 1;
    }

    .proj-hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .proj-hero-visual {
        clip-path: none;
        min-height: 260px;
        order: -1;
    }

    .proj-bento {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }

    .proj-tile--feature {
        grid-column: auto;
        grid-row: auto;
    }

    .proj-tile--stack {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .projects-showcase {
        padding-top: max(92px, env(safe-area-inset-top, 0px) + 76px);
    }

    .proj-hero-copy::after {
        display: none;
    }

    .proj-hero-stats {
        flex-direction: column;
    }
}

/* —— Páginas de línea / subcategoría (catálogo de productos) —— */
.linea-product-page {
    padding-bottom: 0;
}

.subcat-breadcrumb {
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px max(4%, env(safe-area-inset-right)) 10px max(4%, env(safe-area-inset-left));
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    row-gap: 4px;
}

.subcat-breadcrumb a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.subcat-breadcrumb a:hover {
    color: #B8860B;
}

.subcat-breadcrumb span[aria-hidden="true"] {
    color: #ccc;
    user-select: none;
}

.linea-hero {
    min-height: clamp(180px, 32vh, 360px);
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
}

.linea-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
}

.linea-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px max(4%, env(safe-area-inset-right)) 24px max(4%, env(safe-area-inset-left));
    width: 100%;
}

.linea-hero-inner h1 {
    margin: 0 0 6px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.15;
}

.linea-hero-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    max-width: 560px;
    line-height: 1.45;
}

.linea-products-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px max(4%, env(safe-area-inset-right)) 44px max(4%, env(safe-area-inset-left));
}

/* Grid: 3 columnas escritorio, 2 en móvil; tarjeta vertical (foto + texto) */
.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 18px);
    align-items: stretch;
}

.product-card-kov {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: box-shadow 0.2s ease;
    max-width: 100%;
}

.product-card-kov:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

/* Carrusel de fotos del producto */
.product-card-kov-media {
    min-width: 0;
    background: #e8e8e8;
}

.product-card-kov-slider {
    position: relative;
    width: 100%;
    touch-action: pan-y;
}

.product-card-kov-slider-viewport {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
    max-height: none;
    border-radius: 0;
}

.product-card-kov-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.product-card-kov-slide {
    flex: 0 0 33.333333%;
    height: 100%;
    min-height: 0;
}

.product-card-kov-slide picture,
.product-card-kov-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ececec;
    display: block;
}

.product-card-kov-snav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-card-kov-snav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.04);
}

.product-card-kov-snav.prev {
    left: 6px;
}

.product-card-kov-snav.next {
    right: 6px;
}

.product-card-kov-snav svg {
    width: 20px;
    height: 20px;
}

.product-card-kov-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.product-card-kov-dots .product-card-kov-dot {
    pointer-events: auto;
}

.product-card-kov-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-card-kov-dot.is-active {
    background: #DDA44D;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Texto bajo la foto (layout vertical en grid) */
.product-card-kov-body {
    flex: 1 1 auto;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    background: #f7f7f7;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card-kov-name {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.product-card-kov-code {
    margin: 0;
    font-size: 0.78rem;
    color: #666;
}

.product-card-kov-code span {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 2px;
}

.product-card-kov-code strong {
    font-weight: 700;
    color: #333;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
}

/* Pantallas grandes: un poco más de aire en la imagen */
@media (min-width: 900px) {
    .linea-products-section,
    .subcat-breadcrumb,
    .linea-hero-inner {
        max-width: 1180px;
    }

    .product-card-kov-slider-viewport {
        max-height: clamp(140px, 18vw, 188px);
    }
}

/* Móvil / tablet estrecha: 2 columnas, tarjetas más compactas */
@media (max-width: 768px) {
    .product-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .product-card-kov {
        border-radius: 8px;
    }

    .product-card-kov-body {
        padding: 8px 8px 10px;
        gap: 3px;
    }

    .product-card-kov-name {
        font-size: clamp(0.78rem, 3.4vw, 0.92rem);
    }

    .product-card-kov-code {
        font-size: 0.68rem;
    }

    .product-card-kov-code strong {
        font-size: 0.74rem;
    }

    .product-card-kov-code span {
        font-size: 0.55rem;
        margin-bottom: 1px;
    }

    .product-card-kov-slider-viewport {
        max-height: min(34vw, 118px);
        aspect-ratio: 4/3;
    }

    .product-card-kov-snav {
        width: 32px;
        height: 32px;
        min-width: 40px;
        min-height: 40px;
        padding: 4px;
        box-sizing: border-box;
    }

    .product-card-kov-snav svg {
        width: 17px;
        height: 17px;
    }

    .product-card-kov-dot {
        width: 5px;
        height: 5px;
    }

    .product-card-kov-dots {
        bottom: 4px;
        gap: 4px;
    }
}

@media (max-width: 560px) {
    .subcat-breadcrumb {
        padding-top: max(84px, env(safe-area-inset-top, 0px) + 72px);
        padding-bottom: 8px;
    }

    .linea-hero-inner {
        padding-bottom: 20px;
    }

    .linea-products-section {
        padding-top: 16px;
        padding-bottom: 36px;
    }

    .product-catalog-grid {
        gap: 8px;
    }

    .product-card-kov-slider-viewport {
        max-height: min(32vw, 108px);
    }

    /* Área táctil mínima en flechas (44px) sin inflar el botón visual */
    .product-card-kov-snav {
        width: 32px;
        height: 32px;
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
        box-sizing: border-box;
    }

    .product-card-kov-snav svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 380px) {
    .product-card-kov-slider-viewport {
        max-height: min(30vw, 100px);
    }
}

/*
 * Una sola foto: las flechas no deben mostrarse. El bloque base .product-card-kov-snav
 * usa display:flex y en varios navegadores gana al atributo [hidden]; por eso aquí
 * forzamos ocultar con mayor especificidad cuando solo hay un .product-card-kov-slide.
 */
.product-card-kov-slider:has(.product-card-kov-slide:first-child:last-child) .product-card-kov-snav,
.product-card-kov-slider:has(.product-card-kov-slide:only-of-type) .product-card-kov-snav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.product-card-kov-slider:has(.product-card-kov-slide:first-child:last-child) .product-card-kov-dots,
.product-card-kov-slider:has(.product-card-kov-slide:only-of-type) .product-card-kov-dots {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
