:root {
    --bg: #ffffff;
    --bg-accent: #ffffff;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --ink: #201b17;
    --muted: #6b6359;
    --accent: #c96836;
    --accent-strong: #93411c;
    --line: rgba(32, 27, 23, 0.08);
    --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 22px 56px rgba(15, 23, 42, 0.1);
    /* Guinda de la tienda: textos, iconos y botones de productos y de la ficha.
       --guinda-rgb es el mismo color para bordes y fondos translúcidos, y
       --guinda-claro el que se usa sobre fondo negro, donde el base no se lee. */
    --guinda: #8b1a1a;
    --guinda-oscuro: #6f1414;
    --guinda-claro: #a83232;
    --guinda-rgb: 139, 26, 26;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--bg);
}

body::before {
    display: none;
}

body.is-search-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 40px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    padding: 0;
}

.header-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    width: 100%;
    padding: 16px 32px;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(32, 27, 23, 0.08);
    border-left: 0;
    border-radius: 0;
    background: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-image {
    display: block;
    width: auto;
    max-width: 270px;
    height: 72px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.82rem;
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff8ef;
    background: linear-gradient(135deg, var(--accent), #e2a15b);
    box-shadow: 0 14px 36px rgba(201, 104, 54, 0.26);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-left: auto;
}

.site-nav__link {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 180ms ease, transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--ink);
    transform: translateY(-1px);
}

.site-nav__link.is-active {
    color: #CE0000;
    position: relative;
}

.site-nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: #CE0000;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-button,
.search-button,
.search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
}

.menu-button,
.search-button,
.search-close {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    cursor: pointer;
}

.menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.menu-button__line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

body.is-menu-open .menu-button__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.is-menu-open .menu-button__line:nth-child(2) {
    opacity: 0;
}

body.is-menu-open .menu-button__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.search-button svg,
.search-field svg {
    width: 22px;
    height: 22px;
}

.search-panel[hidden] {
    display: none;
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.search-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 14, 12, 0.48);
    backdrop-filter: blur(10px);
}

.search-panel__dialog {
    position: relative;
    width: min(720px, calc(100% - 24px));
    margin: 76px auto 0;
    padding: 24px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(32, 27, 23, 0.08);
    box-shadow: var(--shadow-strong);
}

.search-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.search-field {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.search-field input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.search-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.search-list__item a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.search-list__item small,
.search-empty {
    color: var(--muted);
}

.site-main {
    display: grid;
    gap: 20px;
}

.hero,
.section-block,
.contact-strip,
.site-footer {
    scroll-margin-top: 120px;
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
    padding-top: 10px;
}

.hero-copy,
.hero-side__card,
.section-block,
.feature-card,
.info-card,
.stats-card,
.product-card,
.catalog-card,
.post-card,
.contact-strip,
.site-footer {
    border-radius: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.hero-copy {
    padding: 42px;
    background: #ffffff;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-media {
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-media__viewport {
    position: relative;
    overflow: hidden;
}

.hero-media__track {
    display: flex;
    transition: transform 420ms ease;
    will-change: transform;
}

.hero-media__slide {
    position: relative;
    min-width: 100%;
    margin: 0;
    aspect-ratio: 16 / 11;
    background: #f6f2ee;
}

.hero-media__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media__caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #333333;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.hero-media__controls {
    position: absolute;
    top: 18px;
    right: 18px;
    left: 18px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.hero-media__button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #333333;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 180ms ease, background 180ms ease;
}

.hero-media__button:hover,
.hero-media__button:focus-visible {
    background: #ffffff;
    transform: translateY(-1px);
}

.hero-media__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px 18px;
}

.hero-media__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(51, 51, 51, 0.22);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.hero-media__dot.is-active {
    background: #CE0000;
    transform: scale(1.2);
}

.hero-side__card {
    padding: 24px;
}

.hero-side__card--accent {
    background: #ffffff;
    color: var(--ink);
}

.hero-side__card--accent p,
.hero-side__card--accent strong {
    color: inherit;
}

.hero-side__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.hero-side__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.hero-side__list li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #e3b072);
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-strong);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    max-width: 11ch;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    max-width: 14ch;
}

h3 {
    font-size: 1.55rem;
}

.lead,
.section-heading p,
.info-card p,
.feature-card p,
.product-card p,
.catalog-card p,
.post-card p,
.contact-strip__copy p,
.footer-brand p,
.footer-column li {
    color: var(--muted);
    line-height: 1.8;
}

.hero-actions,
.contact-strip__actions,
.footer-bottom__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
}

.button-primary {
    color: #fff7ef;
    background: linear-gradient(135deg, var(--accent), #df9150);
    box-shadow: 0 14px 36px rgba(201, 104, 54, 0.22);
}

.button-secondary {
    background: #ffffff;
    border-color: var(--line);
}

.section-block {
    padding: 30px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}

.section-heading p {
    max-width: 56ch;
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.info-card,
.stats-card,
.feature-card,
.product-card,
.catalog-card,
.post-card {
    padding: 26px;
}

.stats-card {
    display: grid;
    gap: 16px;
    background: #ffffff;
}

.stats-card strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
}

.stats-card span {
    color: var(--muted);
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(201, 104, 54, 0.12);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card,
.post-card {
    display: grid;
    gap: 14px;
}

.product-card a,
.catalog-card a,
.post-card a,
.footer-bottom__links a,
.footer-column a {
    font-weight: 800;
}

.catalog-list {
    display: grid;
    gap: 16px;
}

.catalog-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.post-date {
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
    color: var(--ink);
}

.contact-strip .eyebrow,
.contact-strip .contact-strip__copy p {
    color: var(--muted);
}

.contact-strip h2 {
    max-width: 12ch;
}

.site-footer {
    width: 100%;
    margin-top: 20px;
    padding: 0;
    background: #333333;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-footer__inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(30px, 5vw, 42px) 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.15fr 1.25fr;
    gap: clamp(26px, 4vw, 56px);
    align-items: start;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    margin: 0 0 18px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-logo-box {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.footer-logo-image {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.footer-list li,
.footer-list a,
.footer-list span,
.footer-list p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.footer-list a:hover,
.footer-list a:focus-visible {
    color: #ffffff;
}

.footer-social-list {
    gap: 14px;
}

.footer-social-link,
.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.footer-contact-item--start {
    align-items: flex-start;
}

.footer-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: #ffffff;
}

.footer-link--underlined {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #ffffff;
}

.footer-schedule {
    margin-top: 10px;
}

.footer-schedule strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-schedule p {
    margin: 0;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-bottom p {
    margin: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .hero,
    .about-grid,
    .card-grid--three,
    .card-grid--four,
    .catalog-card,
    .contact-strip,
    .section-heading {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-bar {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 14px;
    }

    .brand-logo-image {
        max-width: 250px;
        height: 66px;
    }

    .header-tools {
        justify-self: end;
    }

    .menu-button {
        display: inline-flex;
    }

    .site-nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        margin-left: 0;
        padding: 16px 0 4px;
        border-top: 1px solid var(--line);
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
    }

    body.is-menu-open .site-nav {
        display: grid;
    }

    .site-nav__link {
        display: block;
        padding: 13px 0;
        font-size: 1rem;
    }

    .site-nav__link.is-active::after {
        right: auto;
        width: 42px;
        bottom: 6px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 42px;
    }
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(1220px, calc(100% - 20px));
    }

    .header-bar,
    .hero-copy,
    .hero-side__card,
    .section-block,
    .feature-card,
    .info-card,
    .stats-card,
    .product-card,
    .catalog-card,
    .post-card,
    .contact-strip,
    .site-footer,
    .search-panel__dialog {
        padding: 20px;
    }

    .hero-media {
        border-radius: 24px;
    }

    .site-footer {
        padding: 0;
    }

    .site-footer__inner {
        width: min(1220px, calc(100% - 20px));
        padding: 28px 0 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-column h3 {
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .footer-list {
        gap: 9px;
    }

    .footer-logo-box {
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .footer-logo-image {
        width: 54px;
        height: 54px;
    }

    .footer-contact-item {
        align-items: flex-start;
    }

    .site-nav {
        gap: 12px;
    }

    .header-bar {
        padding: 16px 20px;
    }

    .brand-logo-image {
        max-width: 220px;
        height: 58px;
    }

    h1 {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .search-panel__header,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header-bar {
        padding: 12px 14px;
        gap: 10px;
    }

    .brand-logo-image {
        max-width: 176px;
        height: 50px;
    }

    .header-tools {
        gap: 8px;
    }

    .menu-button,
    .search-button,
    .search-close {
        width: 42px;
        height: 42px;
    }

    .site-nav__link {
        padding: 12px 0;
    }

    .site-footer__inner {
        width: min(100%, calc(100% - 28px));
        padding: 24px 0 16px;
    }

    .footer-grid {
        gap: 26px;
    }

    .footer-list li,
    .footer-list a,
    .footer-list span,
    .footer-list p {
        font-size: 0.92rem;
    }

    .footer-bottom {
        margin-top: 24px;
        text-align: left;
        font-size: 0.84rem;
    }

    .floating-contact {
        right: 14px;
        bottom: 14px;
    }

    .floating-contact__button {
        width: 48px;
        height: 48px;
    }

    .floating-contact__button svg {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   Página Nosotros
   ========================================================================== */
.about-page {
    display: grid;
    gap: 0;
    /* Rompe el contenedor central para ocupar el 100% del ancho del viewport */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Bandas a todo el ancho, sin tarjeta ni bordes redondeados */
.about-page .section-block {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    padding: clamp(32px, 5vw, 64px) clamp(20px, 6vw, 96px);
}

.about-page .section-block + .section-block {
    border-top: 1px solid var(--line);
}

/* Marcador de posición de imágenes (reemplazar luego) */
.image-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 16px;
    text-align: center;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #b00000;
    overflow: hidden;
}

.image-placeholder__label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.image-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero__media.image-placeholder--hero,
.complaint-treatment-hero__media.image-placeholder--complaint-treatment-hero,
.home-hero-slide__background,
.image-placeholder--home-hero,
.image-placeholder--home-hero-brands,
.home-brand-slide__media.image-placeholder--home-brand-banner,
.careers-hero__media.image-placeholder--careers-hero,
.excellence-hero__media.image-placeholder--excellence-hero,
.sustainability-hero__media.image-placeholder--sustainability-hero,
.claims-hero__media.image-placeholder--claims-hero,
.terms-hero__media.image-placeholder--terms-hero,
.privacy-hero__media.image-placeholder--privacy-hero,
.contact-hero__media.image-placeholder--contact-hero,
.catalog-hero__media.image-placeholder--catalog-hero,
.cert-hero__media.image-placeholder--cert-hero {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.home-hero-slide--logistics::after,
.home-hero-slide--brands::after,
.careers-hero__media::after,
.excellence-hero__media::after,
.sustainability-hero__media::after,
.claims-hero__media::after,
.terms-hero__media::after,
.privacy-hero__media::after,
.catalog-hero__media::after {
    content: none !important;
    background: none !important;
}

/* Banner principal */
.about-hero {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.about-hero__media.image-placeholder--hero {
    aspect-ratio: 1400 / 454;
    border-radius: 0;
    border: 0;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: #8c0d0d;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.12),
            rgba(0, 0, 0, 0.12) 16px,
            rgba(0, 0, 0, 0.2) 16px,
            rgba(0, 0, 0, 0.2) 32px
        );
    color: #ffe2e2;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(24px, 5vw, 64px);
    background: linear-gradient(90deg, rgba(120, 10, 10, 0.78) 0%, rgba(120, 10, 10, 0.35) 60%, rgba(120, 10, 10, 0.1) 100%);
    pointer-events: none;
}

.about-hero__title {
    margin: 0;
    color: #fdf6f0;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.02em;
}

.about-hero__subtitle {
    margin: 0;
    max-width: 22ch;
    color: #fdeaea;
    font-size: clamp(1.1rem, 2.4vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

/* Encabezado de sección centrado */
.about-intro__head {
    text-align: center;
    margin-bottom: 26px;
}

.about-intro__head h2 {
    margin: 0 auto 10px;
    max-width: none;
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.04em;
}

.about-intro__head p {
    margin: 0 auto;
    max-width: 60ch;
    color: var(--muted);
}

/* Dos columnas texto + imagen */
.about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.about-two-col__text {
    display: grid;
    gap: 16px;
}

.about-two-col__media {
    height: 100%;
    min-height: 280px;
    border-radius: 16px;
}

.about-two-col--reverse .about-two-col__media {
    order: -1;
}

.image-placeholder--logo {
    width: 220px;
    max-width: 100%;
    min-height: 80px;
    border-radius: 12px;
    justify-self: start;
}

.about-mini-title {
    color: #CE0000;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: 0.06em;
    text-align: center;
}

.about-two-col--reverse .about-mini-title {
    text-align: center;
}

/* Misión / Visión (100% de ancho) */
.about-page .about-mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f6f4f2;
}

.mv-card {
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.mv-card__head {
    display: grid;
    gap: 2px;
}

.mv-card__eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.mv-card__title {
    color: #CE0000;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
}

.mv-card__body {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: center;
}

.mv-card__body .image-placeholder--icon {
    width: 130px;
    height: 130px;
    border-radius: 14px;
}

.mv-card__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* Valores / Por qué elegirnos (100% de ancho) */
.about-page .about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f6f4f2;
}

.about-values__col {
    padding: 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.about-values__title {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 1.5rem;
}

.about-values__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.about-values__list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.6;
}

.about-values__list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #CE0000;
}

.about-values__list strong {
    color: var(--ink);
}

.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    gap: 12px;
}

.floating-contact__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-contact__button:hover,
.floating-contact__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.floating-contact__button svg {
    width: 30px;
    height: 30px;
}

.floating-contact__button--messenger {
    background: linear-gradient(135deg, #8b5cf6 0%, #0084ff 48%, #00c6ff 100%);
}

.floating-contact__button--whatsapp {
    background: #25d366;
}

/* ==========================================================================
   Página Tratamientos de Reclamo
   ========================================================================== */
.complaint-treatment-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.complaint-treatment-page) {
    padding-bottom: 0;
}

.page-shell:has(.complaint-treatment-page) + .site-footer {
    margin-top: 0;
}

.complaint-treatment-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.complaint-treatment-hero__media.image-placeholder--complaint-treatment-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #d71920;
    background-color: #f4f1ed;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0 46%, rgba(255, 255, 255, 0.55) 58%, rgba(255, 255, 255, 0.08) 100%),
        linear-gradient(127deg, transparent 0 42%, rgba(224, 22, 31, 0.9) 42% 51%, transparent 51%),
        linear-gradient(127deg, transparent 0 49%, rgba(255, 255, 255, 0.68) 49% 57%, transparent 57%),
        radial-gradient(circle at 82% 48%, rgba(88, 74, 64, 0.18) 0 28%, transparent 29%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58) 18px, rgba(206, 0, 0, 0.05) 18px, rgba(206, 0, 0, 0.05) 36px);
}

.complaint-treatment-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(28px, 6vw, 78px);
    z-index: 2;
    width: min(620px, 50vw);
    transform: translateY(-35%);
    color: #464646;
}

.complaint-treatment-hero__copy > p {
    margin: 0 0 clamp(26px, 4vw, 42px);
    font-size: clamp(1.02rem, 1.85vw, 1.45rem);
    line-height: 1.45;
}

.complaint-treatment-hero__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(520px, 100%);
}

.complaint-treatment-hero__icons article {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 102px;
    padding: 0 10px;
    border-right: 1px solid rgba(32, 27, 23, 0.14);
    text-align: center;
}

.complaint-treatment-hero__icons article:last-child {
    border-right: 0;
}

.complaint-treatment-hero__icons svg {
    width: 52px;
    height: 52px;
    color: #ef1d25;
}

.complaint-treatment-hero__icons span {
    color: #4b4b4b;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.22;
}

.complaint-treatment-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: min(620px, 44vw);
    height: 18px;
    background: #e60000;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}

.complaint-treatment-heading {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(42px, 5vw, 56px) 0 18px;
    border-bottom: 3px solid #d12b2b;
    text-align: center;
}

.complaint-treatment-heading h1 {
    max-width: none;
    margin: 0 0 12px;
    color: #3e3e3e;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.complaint-treatment-heading p {
    margin: 0;
    color: #6d6d6d;
    line-height: 1.6;
}

.complaint-treatment-content {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: 22px 0 140px;
}

.complaint-treatment-article {
    color: #505050;
    font-size: 1rem;
    line-height: 1.8;
}

.complaint-treatment-article p {
    margin: 0;
}

.complaint-treatment-article p + p,
.complaint-treatment-article ul + p,
.complaint-treatment-article p + ul,
.complaint-treatment-article ul + ul {
    margin-top: 14px;
}

.complaint-treatment-article strong {
    color: #444444;
    font-weight: 800;
}

.complaint-treatment-article ul {
    margin: 0;
    padding-left: 24px;
    color: inherit;
}

.complaint-treatment-article li + li {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .complaint-treatment-hero__media.image-placeholder--complaint-treatment-hero {
        min-height: 520px;
    }

    .complaint-treatment-hero__copy {
        width: calc(100% - 56px);
    }
}

@media (max-width: 620px) {
    .complaint-treatment-hero__media.image-placeholder--complaint-treatment-hero {
        min-height: 640px;
    }

    .complaint-treatment-hero__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
    }

    .complaint-treatment-hero__icons article:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 420px) {
    .complaint-treatment-heading,
    .complaint-treatment-content {
        width: min(100%, calc(100% - 28px));
    }

    .complaint-treatment-hero__media.image-placeholder--complaint-treatment-hero {
        min-height: 780px;
    }

    .complaint-treatment-hero__icons {
        grid-template-columns: 1fr;
    }

    .complaint-treatment-hero__icons article {
        border-right: 0;
    }
}

/* ==========================================================================
   Página Inicio
   ========================================================================== */
.home-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #f8f8f5;
}

.page-shell:has(.home-page) {
    padding-bottom: 0;
}

.page-shell:has(.home-page) + .site-footer {
    margin-top: 0;
}

.home-carousel {
    position: relative;
    overflow: hidden;
}

.home-carousel__viewport {
    overflow: hidden;
}

.home-carousel__track {
    display: flex;
    transition: transform 420ms ease;
    will-change: transform;
}

.home-carousel [data-carousel-slide] {
    min-width: 100%;
}

.home-carousel__button {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1c1c1c;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.home-carousel__button--prev {
    left: 20px;
}

.home-carousel__button--next {
    right: 20px;
}

.home-carousel__dots {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.home-carousel__dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-carousel__dots button.is-active {
    background: #d90000;
    transform: scale(1.2);
}

.home-hero-slide {
    position: relative;
    min-height: 700px;
    background: #202020;
}

.home-hero-slide__background {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
}

.image-placeholder--home-hero {
    color: #ffffff;
    background-color: #272727;
    background-image:
        radial-gradient(circle at 77% 35%, rgba(255, 255, 255, 0.18) 0 20%, transparent 21%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0 34%, rgba(255, 255, 255, 0.55) 45%, rgba(16, 16, 16, 0) 58%),
        linear-gradient(140deg, rgba(217, 0, 0, 0.9) 0 8%, transparent 8%),
        linear-gradient(320deg, rgba(217, 0, 0, 0.88) 0 10%, transparent 10%);
}

.image-placeholder--home-hero-brands {
    background-image:
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.18) 0 21%, transparent 22%),
        linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0 46%, rgba(255, 255, 255, 0.48) 57%, rgba(16, 16, 16, 0) 72%),
        radial-gradient(circle at 4% 12%, rgba(217, 0, 0, 0.12) 0 1%, transparent 1.2%),
        linear-gradient(180deg, #f4f4f4 0%, #ececec 100%);
    background-size: auto, auto, 16px 16px, auto;
}

.home-hero-slide--logistics::after,
.home-hero-slide--brands::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 24, 24, 0.22) 0%, rgba(24, 24, 24, 0.08) 100%);
    pointer-events: none;
}

.home-hero-slide__content {
    position: relative;
    z-index: 2;
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 0;
}

.home-hero-slide__logo {
    width: 170px;
    margin-bottom: 22px;
}

.home-hero-slide__content h1 {
    max-width: 620px;
    margin: 0 0 18px;
    color: #181d27;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    font-weight: 800;
    line-height: 0.96;
}

.home-hero-slide__content h1 span {
    color: #d71920;
}

.home-hero-slide__content p {
    max-width: 470px;
    margin: 0 0 30px;
    color: #343434;
    font-size: 1.08rem;
    line-height: 1.55;
}

.home-hero-pillars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    align-items: start;
    width: min(1030px, 100%);
    margin-top: 250px;
}

.home-hero-pillars article {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 122px;
    padding: 0 14px;
    border-right: 1px solid rgba(217, 0, 0, 0.42);
    text-align: center;
}

.home-hero-pillars article:last-child {
    border-right: 0;
}

.home-hero-pillars svg {
    width: 50px;
    height: 50px;
    color: #f3f3f3;
}

.home-hero-pillars strong {
    color: #e21b23;
    font-size: 0.86rem;
    font-weight: 800;
}

.home-hero-pillars span {
    color: #f2f2f2;
    font-size: 0.78rem;
    line-height: 1.35;
}

.home-hero-slide__footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
    padding: 0 0 20px;
}

.home-hero-slide__footer span {
    height: 2px;
    background: rgba(217, 0, 0, 0.8);
}

.home-hero-slide__footer strong {
    color: #f3f3f3;
    font-size: 1.5rem;
    font-weight: 400;
}

.home-hero-slide__footer em {
    color: #d71920;
    font-style: normal;
    font-weight: 700;
}

.home-hero-slide__footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    background: #d90000;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.home-hero-slide__content--brands {
    padding-top: 58px;
}

.home-hero-slide__content--brands h1 {
    max-width: 520px;
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    line-height: 0.95;
}

.home-hero-slide__content--brands p {
    font-size: 1.15rem;
}

.home-brand-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(980px, 100%);
    margin-top: 30px;
    border: 1px solid rgba(32, 27, 23, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
}

.home-brand-strip strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 98px;
    border-right: 1px solid rgba(32, 27, 23, 0.12);
    color: #1a1a1a;
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
    font-weight: 800;
    text-align: center;
}

.home-brand-strip strong:last-child {
    border-right: 0;
}

.home-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
    margin-top: 32px;
    padding: 20px 28px;
    background: #e10b14;
    color: #ffffff;
    font-size: 1.15rem;
}

.home-section {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 48px;
}

.home-categories {
    width: 100%;
    padding-bottom: 48px;
}

.home-categories .home-card-carousel {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.home-section__heading {
    padding: 42px 20px 26px;
    text-align: center;
}

.home-section__heading--dark {
    margin-top: 0;
    background: #2b2728;
}

.home-section__heading h2 {
    max-width: none;
    margin: 0;
    color: #2d2d2d;
    font-size: clamp(1.9rem, 3.3vw, 2.6rem);
    font-weight: 400;
}

.home-section__heading--dark h2 {
    color: #ffffff;
}

.home-section__heading h2 span {
    color: #d71920;
}

.home-card-carousel,
.home-brand-carousel {
    position: relative;
}

.home-card-slide,
.home-product-slide {
    display: grid;
    gap: 14px;
    padding: 22px 0 0;
}

.home-card-slide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-product-slide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-category-card,
.home-product-card {
    background: #ffffff;
}

.home-category-card {
    padding: 10px;
    border: 1px solid rgba(32, 27, 23, 0.12);
    border-radius: 6px;
}

.home-category-card__image.image-placeholder--home-category {
    min-height: 170px;
    border: 1px solid rgba(32, 27, 23, 0.07);
    border-radius: 0;
    color: #d71920;
    background-color: #fbfbfb;
    background-image:
        linear-gradient(165deg, transparent 0 58%, rgba(217, 0, 0, 0.9) 58% 66%, transparent 66%),
        linear-gradient(165deg, transparent 0 48%, rgba(217, 0, 0, 0.85) 48% 56%, transparent 56%),
        radial-gradient(circle at 45% 62%, rgba(10, 68, 180, 0.75) 0 19%, transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
}

.home-category-card h3 {
    margin: 16px 0 10px;
    color: #303030;
    font-size: 1rem;
    font-weight: 500;
}

.home-category-card p {
    margin: 0;
    color: #a0a0a0;
    font-size: 0.86rem;
}

.home-product-card__image.image-placeholder--home-product {
    min-height: 360px;
    border: 0;
    border-radius: 0;
    color: #f97316;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 50% 18%, rgba(240, 240, 240, 0.8) 0 14%, transparent 15%),
        linear-gradient(90deg, transparent 0 36%, rgba(255, 111, 41, 0.82) 36% 45%, rgba(255,255,255,0.7) 45% 52%, rgba(255, 111, 41, 0.82) 52% 61%, transparent 61%),
        linear-gradient(180deg, transparent 0 22%, rgba(255,255,255,0.95) 22% 100%);
}

.home-product-card h3 {
    margin: 18px 0 10px;
    color: #252525;
    font-size: 0.96rem;
    font-weight: 700;
}

.home-product-card h3 a,
.home-product-card a {
    color: inherit;
    text-decoration: none;
}

.home-product-card p {
    margin: 0;
    color: #555555;
    font-size: 0.84rem;
    line-height: 1.6;
}

.home-section__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    margin-top: 22px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: auto;
    padding: 0 18px;
    border-radius: 6px;
    background: #8c0c0c;
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
}

.home-brand-carousel {
    margin-top: 18px;
}

.home-brand-slide {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
    min-height: 480px;
    background: #f3f1f0;
}

.home-brand-slide--image-only {
    grid-template-columns: 1fr;
}

.home-brand-slide__media.image-placeholder--home-brand-banner {
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background-color: #dbdbdb;
    background-image:
        radial-gradient(circle at 80% 28%, rgba(217, 0, 0, 0.7) 0 13%, transparent 14%),
        linear-gradient(90deg, rgba(255,255,255,0.95) 0 36%, rgba(255,255,255,0.42) 52%, rgba(16,16,16,0.08) 100%),
        linear-gradient(180deg, #efefef 0%, #dedede 100%);
}

.home-brand-slide--image-only .home-brand-slide__media.image-placeholder--home-brand-banner {
    min-height: 480px;
}

.home-brand-slide__copy {
    display: grid;
    align-content: center;
    gap: 20px;
    padding: 48px;
}

.home-brand-slide__copy img {
    width: 180px;
}

.home-brand-slide__copy h2 {
    max-width: 500px;
    margin: 0;
    color: #1c1c1c;
    font-size: clamp(2.4rem, 4.4vw, 4.6rem);
    font-weight: 700;
    line-height: 0.95;
}

.home-brand-slide__copy h2 span {
    color: #e10b14;
    font-size: 1.08em;
    font-weight: 800;
}

.home-brand-slide__copy p {
    max-width: 420px;
    margin: 0;
    color: #303030;
    font-size: 1.15rem;
    line-height: 1.5;
}

.home-brand-strip--large {
    width: 100%;
}

.home-brand-slide--red {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, #1c1c1c 0%, #911010 100%);
}

.home-brand-slide--red .home-brand-slide__copy {
    justify-items: start;
    max-width: 760px;
    margin: 0 auto;
}

.home-brand-slide--red h2,
.home-brand-slide--red p,
.home-brand-slide--red a {
    color: #ffffff;
}

.home-brand-slide--red a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    text-decoration: none;
}

@media (max-width: 1100px) {
    .home-hero-pillars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 0;
        margin-top: 180px;
    }

    .home-hero-pillars article:nth-child(3) {
        border-right: 0;
    }

    .home-card-slide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-product-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-brand-slide {
        grid-template-columns: 1fr;
    }

    .home-brand-slide__media.image-placeholder--home-brand-banner {
        min-height: 320px;
    }
}

@media (max-width: 780px) {
    .home-hero-slide {
        min-height: 900px;
    }

    .home-hero-slide__content,
    .home-section {
        width: min(100%, calc(100% - 28px));
    }

    .home-hero-pillars,
    .home-card-slide,
    .home-brand-strip,
    .home-trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-slide__footer {
        grid-template-columns: 1fr;
    }

    .home-hero-slide__footer span {
        display: none;
    }

    .home-hero-slide__footer a {
        width: 100%;
    }

    .home-carousel__button {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 520px) {
    .home-hero-slide {
        min-height: 1120px;
    }

    .home-hero-pillars,
    .home-card-slide,
    .home-product-slide,
    .home-brand-strip,
    .home-trust-row {
        grid-template-columns: 1fr;
    }

    .home-hero-pillars article,
    .home-brand-strip strong {
        border-right: 0;
    }

    .home-brand-slide__copy {
        padding: 34px 20px;
    }
}

/* ==========================================================================
   Página Trabaja con Nosotros
   ========================================================================== */
.careers-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fbfdfb;
}

.page-shell:has(.careers-page) {
    padding-bottom: 0;
}

.page-shell:has(.careers-page) + .site-footer {
    margin-top: 0;
}

.careers-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #11131a;
}

.careers-hero__media.image-placeholder--careers-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #ffe8e8;
    background-color: #20222a;
    background-image:
        radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.18) 0 31%, transparent 32%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 18px, rgba(206, 0, 0, 0.12) 18px, rgba(206, 0, 0, 0.12) 36px);
}

.careers-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 15, 19, 0.96) 0%, rgba(14, 15, 19, 0.78) 45%, rgba(14, 15, 19, 0.1) 100%);
}

.careers-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(28px, 7vw, 90px);
    z-index: 2;
    width: min(690px, 56vw);
    transform: translateY(-45%);
    color: #ffffff;
}

.careers-hero__copy h1 {
    max-width: none;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.7rem, 6.1vw, 5.05rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0.02em;
}

.careers-hero__line {
    display: block;
    width: 92px;
    height: 5px;
    margin-bottom: 22px;
    background: #f21f2a;
}

.careers-hero__copy > p {
    margin: 0 0 clamp(28px, 4vw, 44px);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.65vw, 1.28rem);
    line-height: 1.45;
}

.careers-hero__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(700px, 100%);
}

.careers-hero__icons article {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-height: 146px;
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
    text-align: center;
}

.careers-hero__icons article:last-child {
    border-right: 0;
}

.careers-hero__icons svg {
    width: 58px;
    height: 58px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #ef1d25;
}

.careers-hero__icons strong {
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.12;
}

.careers-hero__icons span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.58rem;
    line-height: 1.35;
}

.careers-intro {
    padding: clamp(42px, 5vw, 58px) 22px clamp(90px, 11vw, 126px);
    background: #292a37;
    text-align: center;
}

.careers-intro h1 {
    max-width: none;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(1.85rem, 3.8vw, 2.65rem);
    font-weight: 800;
    line-height: 1.08;
}

.careers-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.careers-form-section {
    width: 100%;
    padding: clamp(54px, 6vw, 70px) 22px clamp(110px, 14vw, 170px);
    background: #fbfdfb;
}

.careers-form {
    display: grid;
    gap: 12px;
    width: min(820px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 3vw, 26px);
    border: 1px solid rgba(32, 27, 23, 0.18);
    border-radius: 6px;
    background: #ffffff;
}

.careers-form label {
    color: #4c4c4c;
    font-size: 0.86rem;
}

.careers-form input,
.careers-form textarea {
    width: 100%;
    border: 1px solid rgba(32, 27, 23, 0.18);
    border-radius: 6px;
    background: #ffffff;
    color: #202020;
    font: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.careers-form input {
    min-height: 38px;
    padding: 0 14px;
}

.careers-form input[type="file"] {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #a5a5a5;
}

.careers-form textarea {
    min-height: 78px;
    resize: vertical;
    padding: 12px 14px;
}

.careers-form input:focus,
.careers-form textarea:focus {
    border-color: rgba(206, 0, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(206, 0, 0, 0.08);
}

.careers-form ::placeholder {
    color: #b5b5b5;
}

.careers-form button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: #d90000;
    color: #ffffff;
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.careers-form button:hover,
.careers-form button:focus-visible {
    background: #b90000;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .careers-hero__media.image-placeholder--careers-hero {
        min-height: 610px;
    }

    .careers-hero__copy {
        width: calc(100% - 56px);
    }
}

@media (max-width: 620px) {
    .careers-hero__media.image-placeholder--careers-hero {
        min-height: 760px;
    }

    .careers-hero__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 0;
    }

    .careers-hero__icons article:nth-child(2) {
        border-right: 0;
    }

    .careers-form-section {
        padding-inline: 14px;
    }
}

@media (max-width: 420px) {
    .careers-hero__media.image-placeholder--careers-hero {
        min-height: 920px;
    }

    .careers-hero__icons {
        grid-template-columns: 1fr;
    }

    .careers-hero__icons article {
        border-right: 0;
    }
}

/* ==========================================================================
   Página Compromiso con la Excelencia
   ========================================================================== */
.excellence-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fbfdfb;
}

.page-shell:has(.excellence-page) {
    padding-bottom: 0;
}

.page-shell:has(.excellence-page) + .site-footer {
    margin-top: 0;
}

.excellence-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #161616;
}

.excellence-hero__media.image-placeholder--excellence-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #ffe9e9;
    background-color: #202020;
    background-image:
        radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.16) 0 30%, transparent 31%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 18px, rgba(206, 0, 0, 0.12) 18px, rgba(206, 0, 0, 0.12) 36px);
}

.excellence-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 16, 16, 0.94) 0%, rgba(16, 16, 16, 0.74) 43%, rgba(16, 16, 16, 0.12) 100%);
}

.excellence-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(28px, 7vw, 84px);
    z-index: 2;
    width: min(670px, 54vw);
    transform: translateY(-45%);
    color: #ffffff;
}

.excellence-hero__copy h1 {
    max-width: none;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.35rem, 5.6vw, 4.65rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.excellence-hero__line {
    display: block;
    width: 88px;
    height: 5px;
    margin-bottom: 22px;
    background: #f21f2a;
}

.excellence-hero__copy > p {
    margin: 0 0 clamp(28px, 4vw, 46px);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.65vw, 1.28rem);
    line-height: 1.45;
}

.excellence-hero__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(680px, 100%);
}

.excellence-hero__icons article {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 112px;
    padding: 0 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
    text-align: center;
}

.excellence-hero__icons article:last-child {
    border-right: 0;
}

.excellence-hero__icons svg {
    width: 58px;
    height: 58px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: #ef1d25;
}

.excellence-hero__icons span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.2;
}

.excellence-heading {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(44px, 5vw, 58px) 0 38px;
    border-bottom: 1px solid rgba(32, 27, 23, 0.12);
    text-align: center;
}

.excellence-heading h1 {
    max-width: none;
    margin: 0 0 14px;
    color: #3c3c3c;
    font-size: clamp(1.7rem, 3.7vw, 2.45rem);
    font-weight: 800;
    line-height: 1.1;
}

.excellence-heading p {
    margin: 0;
    color: #686868;
    line-height: 1.6;
}

.excellence-content {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(320px, 0.95fr);
    gap: clamp(54px, 8vw, 110px);
    align-items: start;
    width: min(1200px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(56px, 7vw, 78px) 0 clamp(160px, 17vw, 250px);
}

.excellence-card {
    padding: clamp(32px, 4vw, 48px);
    border: 1px solid rgba(32, 27, 23, 0.14);
    border-radius: 6px;
    background: #ffffff;
}

.excellence-card p {
    margin: 0;
    color: #202020;
    line-height: 1.86;
    text-align: justify;
}

.excellence-card p + p {
    margin-top: 28px;
}

.excellence-images {
    display: grid;
    gap: 46px;
}

.excellence-image.image-placeholder--excellence-side {
    min-height: 300px;
    border: 0;
    border-radius: 0;
    color: #d71920;
    background-color: #eeeeee;
    background-image:
        radial-gradient(circle at 70% 48%, rgba(40, 40, 40, 0.18) 0 30%, transparent 31%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.48) 16px, rgba(206, 0, 0, 0.09) 16px, rgba(206, 0, 0, 0.09) 32px);
}

@media (max-width: 900px) {
    .excellence-hero__media.image-placeholder--excellence-hero {
        min-height: 540px;
    }

    .excellence-hero__copy {
        width: calc(100% - 56px);
    }

    .excellence-content {
        grid-template-columns: 1fr;
        padding-bottom: 82px;
    }
}

@media (max-width: 620px) {
    .excellence-hero__media.image-placeholder--excellence-hero {
        min-height: 660px;
    }

    .excellence-hero__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    .excellence-hero__icons article:nth-child(2) {
        border-right: 0;
    }

    .excellence-card p {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .excellence-heading,
    .excellence-content {
        width: min(100%, calc(100% - 28px));
    }

    .excellence-hero__media.image-placeholder--excellence-hero {
        min-height: 790px;
    }

    .excellence-hero__icons {
        grid-template-columns: 1fr;
    }

    .excellence-hero__icons article {
        border-right: 0;
    }
}

/* ==========================================================================
   Página Sostenibilidad
   ========================================================================== */
.sustainability-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fbfdfb;
}

.page-shell:has(.sustainability-page) {
    padding-bottom: 0;
}

.page-shell:has(.sustainability-page) + .site-footer {
    margin-top: 0;
}

.sustainability-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sustainability-hero__media.image-placeholder--sustainability-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #0a5a2c;
    background-color: #dcefd7;
    background-image:
        radial-gradient(circle at 76% 47%, rgba(6, 90, 42, 0.22) 0 28%, transparent 29%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.54) 18px, rgba(20, 128, 66, 0.08) 18px, rgba(20, 128, 66, 0.08) 36px);
}

.sustainability-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.04) 100%);
}

.sustainability-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(30px, 7vw, 86px);
    z-index: 2;
    width: min(620px, 52vw);
    transform: translateY(-45%);
    color: #063c1f;
}

.sustainability-hero__copy h1 {
    max-width: none;
    margin: 0 0 8px;
    color: #003f1d;
    font-size: clamp(2.9rem, 7vw, 5.6rem);
    font-weight: 800;
    line-height: 0.95;
}

.sustainability-hero__copy h2 {
    max-width: none;
    margin: 0 0 22px;
    color: #064b26;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    font-weight: 700;
    line-height: 1.15;
}

.sustainability-hero__copy > p {
    max-width: 420px;
    margin: 0 0 clamp(24px, 4vw, 42px);
    color: #12301e;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.5;
}

.sustainability-hero__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(580px, 100%);
}

.sustainability-hero__icons article {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 102px;
    padding: 0 12px;
    text-align: center;
}

.sustainability-hero__icons svg {
    width: 52px;
    height: 52px;
    color: #125d34;
}

.sustainability-hero__icons span {
    color: #063c1f;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.22;
}

.sustainability-heading {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(44px, 5vw, 58px) 0 38px;
    border-bottom: 1px solid rgba(32, 27, 23, 0.12);
    text-align: center;
}

.sustainability-heading h1 {
    max-width: none;
    margin: 0 0 14px;
    color: #3c3c3c;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 800;
    line-height: 1.1;
}

.sustainability-heading p {
    margin: 0;
    color: #686868;
    line-height: 1.6;
}

.sustainability-content {
    display: grid;
    grid-template-columns: minmax(320px, 0.94fr) minmax(320px, 1fr);
    gap: clamp(42px, 7vw, 86px);
    align-items: center;
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(56px, 7vw, 78px) 0 clamp(160px, 17vw, 260px);
}

.sustainability-card {
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid rgba(32, 27, 23, 0.14);
    border-radius: 6px;
    background: #ffffff;
}

.sustainability-card p {
    margin: 0;
    color: #202020;
    line-height: 1.85;
    text-align: justify;
}

.sustainability-card p + p {
    margin-top: 26px;
}

.sustainability-image.image-placeholder--sustainability-side {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 637 / 425;
    align-self: start;
    border: 0;
    border-radius: 0;
    color: #125d34;
    background-color: #eef8e8;
    background-image:
        radial-gradient(circle at 28% 54%, rgba(20, 128, 66, 0.22) 0 22%, transparent 23%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45) 16px, rgba(20, 128, 66, 0.08) 16px, rgba(20, 128, 66, 0.08) 32px);
}

@media (max-width: 900px) {
    .sustainability-hero__media.image-placeholder--sustainability-hero {
        min-height: 520px;
    }

    .sustainability-hero__copy {
        width: calc(100% - 56px);
    }

    .sustainability-content {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
    }
}

@media (max-width: 620px) {
    .sustainability-hero__media.image-placeholder--sustainability-hero {
        min-height: 640px;
    }

    .sustainability-hero__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
    }

    .sustainability-card p {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .sustainability-heading,
    .sustainability-content {
        width: min(100%, calc(100% - 28px));
    }

    .sustainability-hero__media.image-placeholder--sustainability-hero {
        min-height: 760px;
    }

    .sustainability-hero__icons {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Página Libro de Reclamaciones
   ========================================================================== */
.claims-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fbfdfb;
}

.page-shell:has(.claims-page) {
    padding-bottom: 0;
}

.page-shell:has(.claims-page) + .site-footer {
    margin-top: 0;
}

.claims-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.claims-hero__media.image-placeholder--claims-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #d71920;
    background-color: #f7f1eb;
    background-image:
        radial-gradient(circle at 75% 47%, rgba(139, 86, 44, 0.18) 0 28%, transparent 29%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58) 18px, rgba(206, 0, 0, 0.07) 18px, rgba(206, 0, 0, 0.07) 36px);
}

.claims-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0.1) 100%);
}

.claims-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(28px, 7vw, 96px);
    z-index: 2;
    width: min(620px, 50vw);
    transform: translateY(-40%);
    color: #3a4248;
}

.claims-hero__copy > p {
    margin: 0 0 clamp(28px, 4vw, 48px);
    font-size: clamp(1.05rem, 2.05vw, 1.58rem);
    line-height: 1.45;
}

.claims-hero__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(560px, 100%);
}

.claims-hero__icons article {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 106px;
    padding: 0 14px;
    border-right: 1px solid rgba(32, 27, 23, 0.14);
    text-align: center;
}

.claims-hero__icons article:last-child {
    border-right: 0;
}

.claims-hero__icons svg {
    width: 54px;
    height: 54px;
    color: #ef1d25;
}

.claims-hero__icons span {
    color: #333333;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.25;
}

.claims-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: min(690px, 58vw);
    height: 24px;
    background: #e60000;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}

.claims-heading {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(44px, 5vw, 58px) 0 28px;
    border-bottom: 3px solid #b72222;
    text-align: center;
}

.claims-heading h1 {
    max-width: none;
    margin: 0 0 14px;
    color: #3c3c3c;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 800;
    line-height: 1.1;
}

.claims-heading p {
    margin: 0;
    color: #686868;
    line-height: 1.6;
}

.claims-form-section {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: 36px 0 clamp(48px, 6vw, 72px);
}

.claims-form {
    display: grid;
    gap: 34px;
    padding: 0 clamp(8px, 2vw, 18px);
    background: rgba(255, 255, 255, 0.55);
}

.claims-form fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
    margin: 0;
    padding: 0;
    border: 0;
}

.claims-form legend {
    grid-column: 1 / -1;
    margin-bottom: 14px;
    color: #333333;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.claims-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.claims-field--full,
.claims-help {
    grid-column: 1 / -1;
}

.claims-field--short {
    max-width: 290px;
}

.claims-field span,
.claims-help p,
.claims-check {
    color: #1f1f1f;
    font-size: 0.82rem;
    line-height: 1.45;
}

.claims-field span {
    font-weight: 800;
}

.claims-field input,
.claims-field select,
.claims-field textarea {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(32, 27, 23, 0.28);
    border-radius: 2px;
    padding: 7px 10px;
    background: #ffffff;
    color: var(--ink);
    outline: 0;
}

.claims-field textarea {
    min-height: 58px;
    resize: vertical;
}

.claims-help {
    display: grid;
    gap: 12px;
    margin-bottom: 4px;
}

.claims-help p {
    margin: 0;
}

.claims-check {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px;
    align-items: start;
    margin-left: 8px;
}

.claims-check input {
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.claims-check a {
    color: #2b76bd;
    text-decoration: underline;
    font-weight: 700;
}

.claims-form button {
    justify-self: center;
    min-width: 74px;
    min-height: 38px;
    padding: 8px 18px;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background: #3d8bd2;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 760px) {
    .claims-hero__media.image-placeholder--claims-hero {
        min-height: 500px;
    }

    .claims-hero__copy {
        width: calc(100% - 48px);
    }

    .claims-hero__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
    }

    .claims-hero__icons article:nth-child(2) {
        border-right: 0;
    }

    .claims-form fieldset {
        grid-template-columns: 1fr;
    }

    .claims-field--short {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .claims-heading,
    .claims-form-section {
        width: min(100%, calc(100% - 28px));
    }

    .claims-hero__media.image-placeholder--claims-hero {
        min-height: 590px;
    }

    .claims-hero__icons {
        grid-template-columns: 1fr;
    }

    .claims-hero__icons article {
        border-right: 0;
    }
}

/* ==========================================================================
   Página Términos y Condiciones
   ========================================================================== */
.terms-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.terms-page) {
    padding-bottom: 0;
}

.page-shell:has(.terms-page) + .site-footer {
    margin-top: 0;
}

.terms-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.terms-hero__media.image-placeholder--terms-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #d71920;
    background-color: #f6f2ed;
    background-image:
        radial-gradient(circle at 76% 50%, rgba(139, 86, 44, 0.18) 0 30%, transparent 31%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58) 18px, rgba(206, 0, 0, 0.07) 18px, rgba(206, 0, 0, 0.07) 36px);
}

.terms-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.8) 42%, rgba(255, 255, 255, 0.12) 100%);
}

.terms-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(28px, 7vw, 96px);
    z-index: 2;
    width: min(590px, 48vw);
    transform: translateY(-45%);
    color: #404040;
}

.terms-hero__line {
    position: relative;
    display: block;
    width: min(370px, 80%);
    height: 2px;
    margin-bottom: 38px;
    background: #e21418;
}

.terms-hero__line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d90000;
    transform: translateY(-50%);
}

.terms-hero__copy > p {
    margin: 0 0 clamp(28px, 4vw, 50px);
    font-size: clamp(1.18rem, 2.25vw, 1.72rem);
    line-height: 1.38;
}

.terms-hero__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(500px, 100%);
}

.terms-hero__icons article {
    display: grid;
    justify-items: center;
    min-height: 72px;
    padding: 0 18px;
    border-right: 1px solid rgba(32, 27, 23, 0.14);
}

.terms-hero__icons article:last-child {
    border-right: 0;
}

.terms-hero__icons svg {
    width: 50px;
    height: 50px;
    color: #ef1d25;
}

.terms-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: min(640px, 55vw);
    height: 24px;
    background: #e60000;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}

.terms-heading {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(44px, 5vw, 58px) 0 28px;
    border-bottom: 3px solid #b72222;
    text-align: center;
}

.terms-heading h1 {
    max-width: none;
    margin: 0 0 14px;
    color: #3c3c3c;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 800;
    line-height: 1.1;
}

.terms-heading p {
    margin: 0;
    color: #686868;
    line-height: 1.6;
}

.terms-content {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: 28px 0 clamp(54px, 7vw, 82px);
    color: #1f1f1f;
}

.terms-content h2 {
    max-width: none;
    margin: 30px 0 4px;
    color: #3e3e3e;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 800;
    line-height: 1.35;
}

.terms-content p,
.terms-content li {
    margin: 0;
    color: #1f1f1f;
    font-size: clamp(0.98rem, 1.45vw, 1.12rem);
    line-height: 1.65;
    text-align: justify;
}

.terms-content ul {
    margin: 0 0 0 20px;
    padding: 0;
}

@media (max-width: 760px) {
    .terms-hero__media.image-placeholder--terms-hero {
        min-height: 430px;
    }

    .terms-hero__copy {
        width: calc(100% - 48px);
    }

    .terms-hero__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
    }

    .terms-hero__icons article:nth-child(2) {
        border-right: 0;
    }

    .terms-content p,
    .terms-content li {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .terms-heading,
    .terms-content {
        width: min(100%, calc(100% - 28px));
    }

    .terms-hero__media.image-placeholder--terms-hero {
        min-height: 500px;
    }

    .terms-hero__icons {
        grid-template-columns: 1fr;
    }

    .terms-hero__icons article {
        border-right: 0;
    }
}

/* ==========================================================================
   Página Políticas de Privacidad
   ========================================================================== */
.privacy-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.privacy-page) {
    padding-bottom: 0;
}

.page-shell:has(.privacy-page) + .site-footer {
    margin-top: 0;
}

.privacy-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.privacy-hero__media.image-placeholder--privacy-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #d71920;
    background-color: #f4f4f4;
    background-image:
        radial-gradient(circle at 76% 50%, rgba(40, 50, 56, 0.2) 0 28%, transparent 29%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55) 18px, rgba(206, 0, 0, 0.08) 18px, rgba(206, 0, 0, 0.08) 36px);
}

.privacy-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 43%, rgba(255, 255, 255, 0.16) 100%);
}

.privacy-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(26px, 7vw, 94px);
    z-index: 2;
    width: min(620px, 52vw);
    transform: translateY(-44%);
    color: #394047;
}

.privacy-hero__copy > p {
    margin: 0 0 clamp(26px, 4vw, 46px);
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    line-height: 1.35;
}

.privacy-hero__icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.privacy-hero__icons article {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 106px;
    padding: 0 14px;
    border-right: 1px solid rgba(32, 27, 23, 0.14);
    text-align: center;
}

.privacy-hero__icons article:last-child {
    border-right: 0;
}

.privacy-hero__icons svg {
    width: 54px;
    height: 54px;
    color: #ef1d25;
}

.privacy-hero__icons span {
    color: #333333;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
}

.privacy-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: min(690px, 58vw);
    height: 24px;
    background: #e60000;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}

.privacy-heading {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(44px, 5vw, 58px) 0 28px;
    border-bottom: 3px solid #b72222;
    text-align: center;
}

.privacy-heading h1 {
    max-width: none;
    margin: 0 0 14px;
    color: #3c3c3c;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 800;
    line-height: 1.1;
}

.privacy-heading p {
    margin: 0;
    color: #686868;
    line-height: 1.6;
}

.privacy-content {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
    padding: 28px 0 clamp(54px, 7vw, 82px);
    color: #1f1f1f;
}

.privacy-content h2 {
    max-width: none;
    margin: 30px 0 4px;
    color: #3e3e3e;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 800;
    line-height: 1.35;
}

.privacy-content p,
.privacy-content li {
    margin: 0;
    color: #1f1f1f;
    font-size: clamp(0.98rem, 1.45vw, 1.12rem);
    line-height: 1.65;
    text-align: justify;
}

.privacy-content ul {
    margin: 0 0 0 20px;
    padding: 0;
}

@media (max-width: 760px) {
    .privacy-hero__media.image-placeholder--privacy-hero {
        min-height: 470px;
    }

    .privacy-hero__copy {
        top: 46%;
        width: calc(100% - 48px);
    }

    .privacy-hero__icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
    }

    .privacy-hero__icons article:nth-child(2) {
        border-right: 0;
    }

    .privacy-content p,
    .privacy-content li {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .privacy-heading,
    .privacy-content {
        width: min(100%, calc(100% - 28px));
    }

    .privacy-hero__media.image-placeholder--privacy-hero {
        min-height: 560px;
    }

    .privacy-hero__icons {
        grid-template-columns: 1fr;
    }

    .privacy-hero__icons article {
        border-right: 0;
    }
}

/* ==========================================================================
   Página Productos
   ========================================================================== */
.products-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.products-page) {
    padding-bottom: 0;
}

.page-shell:has(.products-page) + .site-footer {
    margin-top: 0;
}

/* Banner de productos: la foto va a sangre detrás de todo (ya trae su propio
   fundido a negro por la izquierda) y el titular se apoya encima. Arranca
   debajo de la cabecera negra, igual que el banner de la portada. */
.products-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    /* Proporción de la foto del banner, acotada para que no se coma la pantalla. */
    aspect-ratio: 1080 / 595;
    min-height: 460px;
    max-height: 82vh;
    overflow: hidden;
    background: #0a0a0a;
}

.products-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(520px, 44%);
    padding: 48px clamp(20px, 3vw, 44px) 48px clamp(28px, 4vw, 52px);
}

.products-hero__rule {
    width: 46px;
    height: 4px;
    margin-bottom: 26px;
    background: var(--guinda);
}

.products-hero__title {
    /* Se queda dentro de la zona negra de la foto, como en el diseño. */
    max-width: min(360px, 30vw);
    margin: 0 0 32px;
    color: #ffffff;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
}

.products-hero__title span {
    color: var(--guinda-claro);
}

.products-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: fit-content;
    min-height: 44px;
    padding: 12px 28px;
    border-radius: 3px;
    color: #ffffff;
    background: #8b1a1a;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 180ms ease;
}

.products-hero__cta:hover {
    color: #ffffff;
    background: #6f1414;
}

.products-hero__media {
    position: absolute;
    inset: 0;
    margin: 0;
    background: #0a0a0a;
}

.products-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

/* Refuerza el negro de la izquierda: así el titular se lee aunque se cambie la
   foto por otra sin fundido propio. */
.products-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 20%, rgba(10, 10, 10, 0) 40%);
}

@media (max-width: 960px) {
    .products-hero {
        aspect-ratio: auto;
        min-height: min(70vh, 520px);
        max-height: none;
    }

    .products-hero__content {
        width: 100%;
        max-width: 560px;
        padding: 40px clamp(20px, 6vw, 40px) 44px;
    }

    .products-hero__title {
        max-width: 420px;
    }

    /* Sin columna negra el texto queda sobre la foto: se oscurece entera. */
    .products-hero__media::after {
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.62) 55%, rgba(10, 10, 10, 0.72) 100%);
    }

    .products-hero__rule {
        margin-bottom: 20px;
    }

    .products-hero__title {
        margin-bottom: 26px;
    }
}

.products-shop {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto;
    padding: 34px 0 42px;
}

/* Botón para plegar/desplegar la barra de filtros: solo se usa en móvil. */
.products-filters-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--guinda);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.products-filters-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.products-filters-toggle svg {
    width: 20px;
    height: 20px;
}

.products-filters-toggle__chevron {
    transition: transform 250ms ease;
}

.products-filters-toggle.is-open .products-filters-toggle__chevron {
    transform: rotate(180deg);
}

/* Barra de filtros de la cabecera: desplegables + orden. */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Desplegables de categorías (con subcategorías) y marcas. */
.shop-dropdown {
    position: relative;
}

.shop-dropdown__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 210px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(32, 27, 23, 0.16);
    border-radius: 4px;
    background: #ffffff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.shop-dropdown--wide .shop-dropdown__toggle {
    width: 252px;
}

.shop-dropdown__toggle:hover,
.shop-dropdown__toggle:focus-visible {
    border-color: var(--guinda);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--guinda-rgb), 0.14);
}

.shop-dropdown.is-open .shop-dropdown__toggle {
    border-color: var(--guinda);
}

.shop-dropdown__text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.shop-dropdown__label {
    color: #202020;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shop-dropdown__value {
    overflow: hidden;
    color: #202020;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shop-dropdown__chevron {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--guinda);
    transition: transform 220ms ease;
}

.shop-dropdown.is-open .shop-dropdown__chevron {
    transform: rotate(180deg);
}

.shop-dropdown__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    width: max(100%, 290px);
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(32, 27, 23, 0.12);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.shop-dropdown__panel[hidden] {
    display: none;
}

.shop-dropdown__list,
.shop-dropdown__sublist {
    list-style: none;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.shop-dropdown__sublist {
    margin: 2px 0 6px;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--guinda-rgb), 0.22);
}

.shop-dropdown__sublist[hidden] {
    display: none;
}

.shop-dropdown__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px;
}

/* Cada categoría/marca es un botón que filtra la grilla sin recargar la página. */
.shop-dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    color: #202020;
    background: transparent;
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.shop-dropdown__option--sub {
    color: #202020;
    font-size: 0.79rem;
}

.shop-dropdown__option em {
    flex: none;
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    color: #7c7c7c;
    background: #eeeeee;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

.shop-dropdown__option:hover {
    color: var(--guinda);
    background: #f5f5f5;
}

.shop-dropdown__option.is-active {
    color: #ffffff;
    background: var(--guinda);
    font-weight: 700;
}

.shop-dropdown__option.is-active em {
    color: var(--guinda);
    background: #ffffff;
}

.shop-dropdown__expand {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 4px;
    color: #9a9a9a;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.shop-dropdown__expand svg {
    width: 15px;
    height: 15px;
    transition: transform 220ms ease;
}

.shop-dropdown__expand:hover {
    color: var(--guinda);
    background: #f5f5f5;
}

.shop-dropdown__expand[aria-expanded="true"] {
    color: var(--guinda);
}

.shop-dropdown__expand[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.products-content {
    min-width: 0;
}

.products-content__header {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 20px;
    padding: 14px 20px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
    border: 1px solid rgba(32, 27, 23, 0.09);
    border-left: 4px solid var(--guinda);
}

.products-content__title {
    display: grid;
    gap: 4px;
    margin-right: auto;
}

.products-content__header h2 {
    max-width: none;
    margin: 0;
    color: #3a3a3a;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
}

.products-content__count {
    margin: 0;
    color: #7d7d7d;
    font-size: 0.8rem;
}

.products-content__count strong {
    color: var(--guinda);
    font-weight: 800;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-sort__field {
    position: relative;
    display: flex;
    align-items: center;
}

.products-sort__field select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 208px;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid rgba(32, 27, 23, 0.16);
    border-radius: 4px;
    color: var(--guinda);
    background: #ffffff;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.products-sort__field select:hover,
.products-sort__field select:focus-visible {
    border-color: var(--guinda);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--guinda-rgb), 0.14);
}

.products-sort__field svg {
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
    color: var(--guinda);
    pointer-events: none;
}

/* Resumen de lo que está filtrando el usuario, con atajo para quitarlo. */
.products-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 20px;
}

.products-active-filters[hidden] {
    display: none;
}

.products-active-filters__label {
    color: #8a8a8a;
    font-size: 0.78rem;
    font-weight: 700;
}

.products-active-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.products-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(var(--guinda-rgb), 0.28);
    border-radius: 999px;
    color: var(--guinda);
    background: rgba(var(--guinda-rgb), 0.08);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.products-chip::after {
    content: '×';
    font-size: 1rem;
    line-height: 1;
}

.products-chip:hover {
    color: #ffffff;
    background: var(--guinda);
}

.products-active-filters__clear {
    border: 0;
    padding: 0;
    color: #8a8a8a;
    background: none;
    font: inherit;
    font-size: 0.76rem;
    text-decoration: underline;
    cursor: pointer;
}

.products-active-filters__clear:hover {
    color: var(--guinda);
}

.products-empty {
    margin: 0;
    padding: 46px 20px;
    border: 1px dashed rgba(32, 27, 23, 0.2);
    border-radius: 6px;
    color: #7d7d7d;
    background: #fafafa;
    font-size: 0.92rem;
    text-align: center;
}

.products-empty[hidden] {
    display: none;
}

.products-empty button {
    border: 0;
    padding: 0;
    color: var(--guinda);
    background: none;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Tarjeta de tienda: el recuadro con borde envuelve solo la imagen; la marca,
   el nombre, el precio y los botones van sueltos debajo. */
.shop-product-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    background: transparent;
}

.shop-product-card[hidden] {
    display: none;
}

.shop-product-card__frame {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(32, 27, 23, 0.16);
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.shop-product-card:hover .shop-product-card__frame {
    border-color: rgba(var(--guinda-rgb), 0.42);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
}

/* Corazón de favoritos: círculo sobre la esquina del recuadro. */
.shop-product-card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(32, 27, 23, 0.22);
    border-radius: 50%;
    color: #202b3a;
    background: #ffffff;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.shop-product-card__fav svg {
    width: 18px;
    height: 18px;
}

.shop-product-card__fav:hover {
    color: var(--guinda);
    border-color: rgba(var(--guinda-rgb), 0.5);
}

.shop-product-card__fav[aria-pressed="true"] {
    color: var(--guinda);
    border-color: rgba(var(--guinda-rgb), 0.5);
}

.shop-product-card__fav[aria-pressed="true"] svg path {
    fill: currentColor;
}

.shop-product-card__image.image-placeholder--shop-product {
    aspect-ratio: 1.16;
    border: 0;
    border-radius: 0;
    color: var(--guinda);
    background-color: #f7f7f7;
    background-image:
        linear-gradient(160deg, transparent 0 52%, rgba(var(--guinda-rgb), 0.88) 52% 64%, transparent 64% 100%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04) 10px, rgba(255, 255, 255, 0.4) 10px, rgba(255, 255, 255, 0.4) 20px);
}

.shop-product-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.shop-product-card__image-link img {
    transition: transform 320ms ease;
}

.shop-product-card:hover .shop-product-card__image-link img {
    transform: scale(1.05);
}

.shop-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--guinda);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Marca en guinda y nombre del producto en azul. */
.shop-product-card__meta {
    display: grid;
    align-content: start;
    row-gap: 2px;
}

.shop-product-card__brand {
    margin: 0;
    color: var(--guinda);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.shop-product-card__meta h3 {
    max-width: none;
    margin: 0;
    color: #1b3b70;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.shop-product-card__meta h3 a {
    color: inherit;
    font-weight: inherit;
    transition: color 180ms ease;
}

.shop-product-card__meta h3 a:hover {
    color: var(--guinda);
}

.shop-product-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.shop-product-card__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 16px;
    border: 1px solid #8b1a1a;
    border-radius: 3px;
    color: #ffffff;
    background: #8b1a1a;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.shop-product-card__actions a:hover {
    color: #ffffff;
    background: #6f1414;
    border-color: #6f1414;
}

/* La ficha técnica es secundaria: mismo alto, en versión contorneada. */
.shop-product-card__actions a + a {
    color: #8b1a1a;
    background: transparent;
}

.shop-product-card__actions a + a:hover {
    color: #ffffff;
    background: #8b1a1a;
}

/* Paginador del catálogo: mismo aspecto que el del blog. */
.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.products-pagination__page,
.products-pagination__arrow {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    color: #1f1f1f;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background-color 180ms ease, color 180ms ease;
}

.products-pagination__page:hover,
.products-pagination__arrow:hover {
    color: var(--guinda);
    background: #f2f2f2;
}

.products-pagination__page.is-active {
    color: #ffffff;
    background: var(--guinda);
}

.products-pagination__arrow svg {
    width: 18px;
    height: 18px;
}

.products-pagination__arrow.is-disabled {
    color: #c9c9c9;
    pointer-events: none;
}

.products-pagination__gap {
    padding: 0 4px;
    color: #7a7a7a;
}

/* Solo se ve sin JavaScript: con JS el orden se aplica al elegirlo. */
.products-sort__go {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background: var(--guinda);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.products-benefits {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto 22px;
    padding: 30px clamp(20px, 5vw, 58px);
    border-radius: 4px;
    background: #f3f3f3;
}

.products-benefits h2 {
    max-width: none;
    margin: 0 0 28px;
    color: #908686;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 500;
    text-align: center;
}

.products-benefits__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.products-benefits__grid article {
    display: grid;
    justify-items: center;
    gap: 10px;
    align-content: start;
    text-align: center;
}

.products-benefit-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7d7d7d;
}

.products-benefit-icon svg {
    width: 100%;
    height: 100%;
}

.products-benefits__grid p {
    max-width: 150px;
    margin: 0;
    color: #8a8a8a;
    font-size: 0.78rem;
    line-height: 1.55;
}

@media (max-width: 1240px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    /* La cabecera ya no cabe en una sola línea: el título arriba y la barra de
       filtros ocupando el ancho completo debajo. */
    .products-content__title {
        width: 100%;
        margin-right: 0;
    }

    .products-toolbar {
        width: 100%;
    }

    /* Dos controles por fila en vez de uno estirado a todo el ancho. */
    .shop-dropdown,
    .products-sort {
        flex: 1 1 calc(50% - 5px);
    }

    .shop-dropdown__toggle,
    .shop-dropdown--wide .shop-dropdown__toggle,
    .products-sort__field,
    .products-sort__field select {
        width: 100%;
        min-width: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-benefits__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    /* El hero ya no lleva texto encima, así que conserva su aspect-ratio en todos
       los anchos. Con el min-height anterior (360px) la imagen se estiraba y
       object-fit la recortaba en vez de redimensionarla. */

    .products-shop {
        grid-template-columns: 1fr;
        width: min(100%, calc(100% - 28px));
    }

    .products-filters-toggle {
        display: flex;
    }

    .products-toolbar {
        display: none;
    }

    .products-toolbar.is-open {
        display: grid;
        gap: 10px;
    }

    .products-content__header {
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .products-content__title {
        justify-items: center;
        text-align: center;
        width: 100%;
    }

    /* Con la barra apilada, cada control ocupa todo el ancho disponible. */
    .shop-dropdown,
    .products-sort {
        width: 100%;
    }

    .shop-dropdown__panel {
        width: 100%;
        max-height: 320px;
    }

    .products-active-filters {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-benefits {
        width: min(100%, calc(100% - 28px));
        padding: 24px 16px;
    }

    .products-benefits h2 {
        margin-bottom: 18px;
    }

    /* Apilados en una columna, los cinco beneficios ocupaban casi una pantalla
       entera. En dos columnas con tarjetas compactas ocupan menos de la mitad. */
    .products-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .products-benefits__grid article {
        gap: 8px;
        padding: 14px 10px;
        border-radius: 8px;
        background: #ffffff;
    }

    /* Son cinco: el último ocuparía media fila suelta, así que se estira. */
    .products-benefits__grid article:last-child {
        grid-column: 1 / -1;
    }

    .products-benefit-icon {
        width: 38px;
        height: 38px;
    }

    .products-benefits__grid p {
        max-width: none;
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* ==========================================================================
   Página Detalle Producto
   ========================================================================== */
.product-detail-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.product-detail-page) {
    padding-bottom: 0;
}

.page-shell:has(.product-detail-page) + .site-footer {
    margin-top: 0;
}

.product-detail-hero {
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(54px, 7vw, 86px) 0 clamp(58px, 7vw, 86px);
}

.product-breadcrumb {
    margin: 0 0 clamp(34px, 5vw, 54px);
    color: #adadad;
    font-size: clamp(0.92rem, 1.5vw, 1.15rem);
    font-weight: 700;
    line-height: 1.6;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 0.9fr);
    gap: clamp(44px, 7vw, 86px);
    align-items: start;
}

.product-detail-image.image-placeholder--product-detail {
    min-height: 360px;
    border: 0;
    border-radius: 0;
    color: var(--guinda);
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 52% 48%, rgba(64, 98, 120, 0.22) 0 30%, transparent 31%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03) 12px, rgba(255, 255, 255, 0.5) 12px, rgba(255, 255, 255, 0.5) 24px);
}

.product-detail-summary h1 {
    max-width: none;
    margin: 0 0 14px;
    color: #3f3f3f;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}

.product-sizes {
    margin-bottom: 28px;
}

.product-sizes p {
    margin: 0 0 8px;
    color: #9a9a9a;
    font-size: 1rem;
    font-weight: 700;
}

.product-sizes div {
    display: flex;
    gap: 8px;
}

.product-sizes span {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 36px;
    border: 1px solid rgba(32, 27, 23, 0.14);
    color: #8a8a8a;
    background: #f5f5f5;
    font-weight: 700;
}

.product-actions-row {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 240px);
    gap: 42px;
    align-items: center;
    margin-bottom: 26px;
}

.product-quantity {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    max-width: 180px;
    height: 34px;
}

.product-quantity button {
    height: 34px;
    border: 0;
    color: #ffffff;
    background: #696969;
    font-weight: 800;
    cursor: pointer;
}

.product-quantity span {
    display: grid;
    place-items: center;
    height: 34px;
    color: #7a7a7a;
    background: #ffffff;
    border-top: 1px solid rgba(32, 27, 23, 0.1);
    border-bottom: 1px solid rgba(32, 27, 23, 0.1);
    font-weight: 700;
}

.product-file-button,
.product-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 18px;
    border: 0;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
}

.product-file-button {
    background: #676767;
}

.product-quote-button {
    width: 100%;
    min-height: 58px;
    margin-bottom: 28px;
    background: var(--guinda);
    font-size: 1rem;
}

.product-detail-bullets {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 20px 0 0 24px;
    border-top: 1px solid rgba(32, 27, 23, 0.12);
    color: #777777;
    line-height: 1.75;
}

.product-service-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    padding: 28px clamp(22px, 12vw, 170px);
    border-top: 1px solid rgba(32, 27, 23, 0.16);
    border-bottom: 1px solid rgba(32, 27, 23, 0.16);
    background: #ffffff;
}

.product-service-strip article {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #262626;
    font-size: 0.86rem;
    font-weight: 600;
}

.product-service-strip svg {
    width: 30px;
    height: 30px;
    color: var(--guinda);
    flex: 0 0 30px;
}

.product-description,
.related-products {
    width: min(930px, calc(100% - 44px));
    margin: 0 auto;
}

.product-description {
    padding: 30px 0 clamp(96px, 13vw, 170px);
}

.product-description h2,
.related-products h2 {
    max-width: none;
    margin: 0 0 16px;
    color: #292929;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
}

.product-description p {
    margin: 0;
    color: #353535;
    line-height: 1.9;
}

.product-description p + p {
    margin-top: 4px;
}

.related-products {
    padding-bottom: 62px;
}

.related-products h2 {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(32, 27, 23, 0.12);
}

.related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 58px;
    padding-top: 34px;
}

.product-detail-redbar {
    width: 100%;
    height: 38px;
    background: #d9d9d9;
}

.product-detail-redbar span {
    display: block;
    width: min(1020px, 75vw);
    height: 100%;
    background: var(--guinda);
}

@media (max-width: 900px) {
    .product-detail-grid,
    .product-actions-row,
    .related-products__grid {
        grid-template-columns: 1fr;
    }

    .product-actions-row {
        gap: 16px;
    }

    .product-file-button {
        width: 100%;
    }

    .product-service-strip {
        grid-template-columns: 1fr;
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 560px) {
    .product-detail-hero,
    .product-description,
    .related-products {
        width: min(100%, calc(100% - 28px));
    }

    .product-detail-image.image-placeholder--product-detail {
        min-height: 260px;
    }

    .product-service-strip article {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Página Contactanos
   ========================================================================== */
.contact-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.contact-page) {
    padding-bottom: 0;
}

.page-shell:has(.contact-page) + .site-footer {
    margin-top: 0;
}

/* Banner de apertura: mismas medidas y mismo tratamiento que el .hero de la
   portada (spa/assets/css/main.css), que no se carga en las páginas de client.
   Si algún día se toca aquel, hay que tocar este. */
.contact-hero {
    display: grid;
    grid-template-columns: minmax(320px, 560px) 1fr;
    align-items: stretch;
    min-height: calc(100vh - 82px);
    background: #0a0a0a;
}

.contact-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 620px;
    min-width: 0;
    padding: 48px 32px 64px 32px;
}

.contact-hero__rule {
    width: 56px;
    height: 4px;
    margin-bottom: 20px;
    border-radius: 2px;
    background: var(--guinda);
}

.contact-hero h1 {
    max-width: none;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.5px;
}

.contact-hero__content p {
    max-width: 460px;
    margin: 0;
    color: #c7c7c7;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.contact-hero__media {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background:
        linear-gradient(120deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 14%),
        radial-gradient(circle at 30% 20%, rgba(var(--guinda-rgb), 0.35), transparent 55%),
        linear-gradient(160deg, #141414, #050505);
}

.contact-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Igual que la portada: por debajo de 960 px la foto va arriba y el texto abajo. */
@media (max-width: 960px) {
    .contact-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .contact-hero__media {
        order: -1;
        min-height: 320px;
    }

    .contact-hero__content {
        max-width: none;
        padding: 40px 24px;
    }
}

@media (max-width: 720px) {
    .contact-hero {
        min-height: 0;
    }

    .contact-hero h1 {
        font-size: 32px;
    }
}

.contact-hero__media.image-placeholder--contact-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #fff0f0;
    background-color: #c44a38;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 18px, rgba(0, 0, 0, 0.12) 18px, rgba(0, 0, 0, 0.12) 36px);
}

.contact-info-row {
    display: grid;
    grid-template-columns: 0.9fr 1.65fr 1fr 1.45fr;
    gap: clamp(18px, 3vw, 36px);
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
}

.contact-info-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.contact-info-item svg {
    width: 48px;
    height: 48px;
    color: var(--guinda);
}

.contact-info-item h2 {
    max-width: none;
    margin: 2px 0 4px;
    color: #545454;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    font-weight: 800;
    line-height: 1;
}

.contact-info-item a,
.contact-info-item p {
    display: block;
    margin: 0;
    color: #666666;
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-info-item a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-main {
    display: grid;
    grid-template-columns: minmax(300px, 455px) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 48px);
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    /* Aire tras el banner: si no, los datos y el formulario quedan pegados. */
    padding-top: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(40px, 5vw, 72px);
    /* Deja sitio a la cabecera fija cuando se salta hasta aquí. */
    scroll-margin-top: 96px;
}

/* Columna de datos junto al formulario. */
.contact-side {
    display: grid;
    align-content: start;
    gap: 26px;
}

.contact-side__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--guinda);
    border-radius: 4px;
    color: var(--guinda);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 180ms ease, background-color 180ms ease;
}

.contact-side__whatsapp:hover {
    color: #ffffff;
    background: var(--guinda);
}

.contact-map {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 0;
    color: #d21b1b;
    background-color: #eef7f1;
    background-image:
        linear-gradient(90deg, rgba(80, 180, 120, 0.16) 1px, transparent 1px),
        linear-gradient(rgba(80, 180, 120, 0.16) 1px, transparent 1px);
    background-size: 34px 34px;
}

.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(32, 27, 23, 0.1);
    border-radius: 4px;
    background: #ffffff;
}

.contact-form label:not(.contact-check) {
    color: #555555;
    font-size: 0.98rem;
    font-weight: 600;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(32, 27, 23, 0.12);
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--ink);
    background: #ffffff;
    outline: 0;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
    min-height: 96px;
    resize: vertical;
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
    border-color: var(--guinda);
    box-shadow: 0 0 0 3px rgba(var(--guinda-rgb), 0.14);
}

/* Campo con su etiqueta y, si toca, el aviso de error debajo. */
.contact-form__field {
    display: grid;
    gap: 6px;
}

.contact-form__error {
    color: var(--guinda);
    font-size: 0.82rem;
    font-weight: 600;
}

.contact-form__field input[aria-invalid="true"],
.contact-form__field textarea[aria-invalid="true"] {
    border-color: var(--guinda);
}

.contact-form__alert {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(var(--guinda-rgb), 0.3);
    border-radius: 6px;
    color: var(--guinda);
    background: rgba(var(--guinda-rgb), 0.08);
    font-size: 0.88rem;
    font-weight: 600;
}

/* El campo trampa no debe verse ni recibir foco. */
.contact-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form--sent {
    align-content: start;
    gap: 12px;
    padding: 34px 26px;
    text-align: center;
}

.contact-form--sent h2 {
    max-width: none;
    margin: 0;
    color: var(--guinda);
    font-size: 1.3rem;
    font-weight: 800;
}

.contact-form--sent p {
    margin: 0;
    color: #555555;
    line-height: 1.6;
}

.contact-form__again {
    justify-self: center;
    margin-top: 8px;
    color: var(--guinda);
    font-weight: 700;
    text-decoration: underline;
}

.contact-form ::placeholder {
    color: rgba(107, 99, 89, 0.46);
}

.contact-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    color: #595959;
    font-size: 0.9rem;
    line-height: 1.35;
}

.contact-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--guinda);
}

.contact-form button {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    background: var(--guinda);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
    font-weight: 600;
    cursor: pointer;
}

.contact-note {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 0 0 34px;
    color: #555555;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 1020px) {
    .contact-info-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 360px;
    }
}

@media (max-width: 620px) {
    .contact-hero__media.image-placeholder--contact-hero {
        min-height: 300px;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
        width: min(100%, calc(100% - 28px));
        gap: 22px;
    }

    .contact-info-item {
        grid-template-columns: 44px 1fr;
    }

    .contact-info-item svg {
        width: 40px;
        height: 40px;
    }

    .contact-main,
    .contact-note {
        width: min(100%, calc(100% - 28px));
    }

    .contact-form {
        padding: 18px;
    }
}

/* ==========================================================================
   Página Blog
   ========================================================================== */

/* Utilidad compartida: la usan también los formularios de productos.php. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-page {
    /* Mismo guinda que la tienda y los botones de la portada. Se conservan los
       nombres --blog-red* porque son los que usa toda la hoja del blog. */
    --blog-red: var(--guinda);
    --blog-red-dark: var(--guinda-oscuro);
    --blog-ink: #1f1f1f;
    --blog-muted: #7a7a7a;
    --blog-surface: #f2f2f2;

    display: grid;
    gap: 0;
    /* La página rompe el ancho del .page-shell para que el hero y la franja de
       newsletter lleguen a los bordes de la pantalla. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.blog-page) {
    padding-bottom: 0;
}

.blog-container {
    width: min(1220px, calc(100% - 64px));
    margin: 0 auto;
    /* Como item de un grid, min-width:auto la estiraba hasta el ancho mínimo de
       su contenido: el carrusel (tres slides en fila) desbordaba el móvil. */
    min-width: 0;
}

.blog-section-title {
    margin: 0 0 22px;
    color: var(--blog-ink);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
}

/* Hero --------------------------------------------------------------------- */

.blog-hero {
    position: relative;
    display: flex;
    align-items: center;
    /* El banner mide 1080x595 (ratio 1.815); 52vw lo deja casi a su alto natural
       sin dejar que se dispare en pantallas anchas. */
    min-height: clamp(440px, 52vw, 660px);
    /* El padding inferior deja sitio a la tarjeta de cifras, que se monta encima. */
    padding: 80px 0 132px;
    overflow: hidden;
    background: #0a0a0a;
}

.blog-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Anclado a la izquierda: el degradado a negro viene pintado en esa zona de
       la imagen y es lo que hace legible el título. Centrado, en pantallas
       angostas el recorte se lo comería. */
    object-position: left center;
}

/*
 * Velo suave, no un degradado completo: el banner ya trae el suyo. Solo asegura
 * contraste cuando el recorte deja el texto sobre la parte iluminada de la foto.
 */
.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.72) 0%,
        rgba(10, 10, 10, 0.3) 42%,
        rgba(10, 10, 10, 0) 70%
    );
}

.blog-hero__inner {
    position: relative;
    z-index: 2;
}

.blog-hero__rule {
    display: block;
    width: 54px;
    height: 3px;
    margin-bottom: 24px;
    background: var(--blog-red);
}

.blog-hero__title {
    max-width: 460px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.1rem, 4.6vw, 3.3rem);
    font-weight: 800;
    line-height: 1.14;
}

.blog-hero__title span {
    color: var(--blog-red);
}

.blog-hero__text {
    max-width: 330px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
    line-height: 1.75;
}

.blog-hero__search {
    display: flex;
    align-items: center;
    width: min(340px, 100%);
    padding: 0 6px 0 16px;
    border-radius: 8px;
    background: #ffffff;
}

.blog-hero__search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: none;
    color: var(--blog-ink);
    font-size: 0.84rem;
}

.blog-hero__search input:focus {
    outline: none;
}

.blog-hero__search button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    color: #8a8a8a;
    cursor: pointer;
}

.blog-hero__search button svg {
    width: 17px;
    height: 17px;
}

.blog-hero__search button:hover {
    color: var(--blog-red);
}

/* Cifras ------------------------------------------------------------------- */

.blog-stats {
    position: relative;
    z-index: 3;
    /* Sube la tarjeta para que pise el borde inferior del hero. */
    margin-top: -84px;
}

.blog-stats__card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 34px 18px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.blog-stat {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 10px;
    padding: 4px 16px;
    text-align: center;
}

.blog-stat + .blog-stat {
    border-left: 1px solid #e6e6e6;
}

.blog-stat__icon {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--blog-red);
}

.blog-stat__icon svg {
    width: 100%;
    height: 100%;
}

.blog-stat__value {
    margin: 0;
    color: var(--blog-ink);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
}

.blog-stat__label {
    max-width: 130px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

/* Artículos destacados ----------------------------------------------------- */

.blog-featured {
    padding: 64px 0 0;
}

.blog-carousel__viewport {
    overflow: hidden;
    border-radius: 16px;
}

.blog-carousel__track {
    display: flex;
    transition: transform 0.5s ease;
}

.blog-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border-radius: 16px;
    background: var(--blog-surface);
}

.featured-card__media {
    position: relative;
    min-height: 300px;
    margin: 0;
    /* La foto se disuelve hacia la derecha en vez de cortarse en seco: la
       máscara la vuelve transparente y deja ver el fondo de la tarjeta. */
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 72%, transparent 97%);
    mask-image: linear-gradient(90deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.55) 72%, transparent 97%);
}

.featured-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Velo claro que acompaña al difuminado para que el texto de al lado respire. */
.featured-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.34) 62%, rgba(255, 255, 255, 0.6) 100%);
}

.featured-card__body {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(26px, 4vw, 56px);
}

.featured-card__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
}

.featured-card__category {
    color: var(--blog-red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.featured-card__date {
    color: var(--blog-muted);
    font-size: 0.8rem;
}

.featured-card__title {
    max-width: 340px;
    margin: 0;
    color: var(--blog-ink);
    font-size: clamp(1.1rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.28;
}

.featured-card__excerpt {
    max-width: 320px;
    margin: 0;
    color: var(--blog-red);
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.6;
}

.featured-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: var(--blog-red);
    font-size: 0.84rem;
    font-weight: 800;
    transition: gap 0.2s ease;
}

.featured-card__link:hover {
    gap: 16px;
}

.blog-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 22px;
}

.blog-carousel__arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    color: #4a4a4a;
    cursor: pointer;
    transition: color 0.2s ease;
}

.blog-carousel__arrow svg {
    width: 22px;
    height: 22px;
}

.blog-carousel__arrow:hover {
    color: var(--blog-red);
}

.blog-carousel__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #c4c4c4;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.blog-carousel__dot.is-active {
    border-color: var(--blog-red);
    background: var(--blog-red);
}

/* Más artículos ------------------------------------------------------------ */

.blog-more {
    padding: 56px 0 0;
}

.blog-more__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.post-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 14px;
    background: var(--blog-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.post-card__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
}

.post-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px 18px 20px;
}

/* Va con selector de etiqueta porque ".post-card p" (más específico) le ganaba
   y dejaba la categoría en gris. */
p.post-card__category {
    margin: 0;
    color: var(--blog-red);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.post-card__title {
    margin: 0;
    color: var(--blog-ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.38;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--blog-red);
    font-size: 0.74rem;
    font-weight: 800;
    transition: gap 0.2s ease;
}

.post-card__link:hover {
    gap: 14px;
}

.post-card__media-link {
    display: block;
}

/* Encabezado del listado, filtros y estado vacío -------------------------- */

.blog-more__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-more__count {
    margin: 0 0 22px;
    color: var(--blog-muted);
    font-size: 0.78rem;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.blog-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    color: var(--blog-ink);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.blog-filter span {
    color: var(--blog-muted);
    font-weight: 600;
}

.blog-filter:hover {
    border-color: var(--blog-red);
    color: var(--blog-red);
}

.blog-filter.is-active {
    border-color: var(--blog-red);
    background: var(--blog-red);
    color: #ffffff;
}

.blog-filter.is-active span {
    color: rgba(255, 255, 255, 0.75);
}

.blog-empty {
    margin: 0;
    padding: 48px 24px;
    border-radius: 14px;
    background: var(--blog-surface);
    color: var(--blog-muted);
    font-size: 0.88rem;
    text-align: center;
}

.blog-empty a {
    color: var(--blog-red);
    font-weight: 700;
}

/* Paginador ---------------------------------------------------------------- */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.blog-pagination__page,
.blog-pagination__arrow {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--blog-ink);
    font-size: 0.82rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-pagination__page:hover,
.blog-pagination__arrow:hover {
    background: var(--blog-surface);
    color: var(--blog-red);
}

.blog-pagination__page.is-active {
    background: var(--blog-red);
    color: #ffffff;
}

.blog-pagination__arrow svg {
    width: 18px;
    height: 18px;
}

.blog-pagination__arrow.is-disabled {
    color: #c9c9c9;
    pointer-events: none;
}

.blog-pagination__gap {
    padding: 0 4px;
    color: var(--blog-muted);
}

/* Detalle de artículo ------------------------------------------------------ */

.blog-article__header {
    padding: 56px 0 0;
}

.blog-article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--blog-red);
    font-size: 0.8rem;
    font-weight: 800;
}

.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 14px;
}

.blog-article__category {
    color: var(--blog-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.blog-article__date {
    color: var(--blog-muted);
    font-size: 0.78rem;
}

.blog-article__title {
    max-width: 780px;
    margin: 0 0 16px;
    color: var(--blog-ink);
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
}

.blog-article__excerpt {
    max-width: 680px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.blog-article__media {
    position: relative;
    margin: 34px auto 0;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 16px;
    background: var(--blog-surface);
}

.blog-article__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article__body {
    max-width: 760px;
    margin-top: 34px;
}

.blog-article__body p {
    margin: 0 0 20px;
    color: #3a3a3a;
    font-size: 0.98rem;
    line-height: 1.85;
}

.blog-article-missing {
    padding: 90px 0 40px;
    text-align: center;
}

.blog-article-missing h1 {
    margin: 0 0 12px;
    color: var(--blog-ink);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
}

.blog-article-missing p {
    margin: 0 0 24px;
    color: var(--blog-muted);
}

/* La página de detalle no tiene hero oscuro, así que necesita aire bajo el
   header fijo del sitio. */
.blog-article-page {
    padding-top: 8px;
}

/* Newsletter --------------------------------------------------------------- */

.blog-newsletter {
    padding: 56px 0 72px;
}

.newsletter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 30px clamp(24px, 4vw, 44px);
    border-radius: 14px;
    background: var(--blog-red-dark);
    color: #ffffff;
    /* Deja sitio a la cabecera fija al volver del envío con #suscribete. */
    scroll-margin-top: 100px;
}

/* Aviso tras suscribirse: ocupa toda la fila, encima del formulario. */
.newsletter__notice {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
    font-weight: 600;
}

.newsletter__notice--error {
    background: rgba(0, 0, 0, 0.28);
}

.newsletter__icon {
    display: block;
    width: 54px;
    height: 54px;
    color: #ffffff;
}

.newsletter__icon svg {
    width: 100%;
    height: 100%;
}

.newsletter__copy h2 {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 800;
}

.newsletter__copy p {
    max-width: 300px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.55;
}

.newsletter__form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter__form input {
    width: min(260px, 46vw);
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    color: var(--blog-ink);
    font-size: 0.82rem;
}

.newsletter__form input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.newsletter__form button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter__form button:hover {
    background: #000000;
}

.newsletter__form button svg {
    width: 16px;
    height: 16px;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1080px) {
    .blog-more__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .blog-container {
        width: min(1220px, calc(100% - 40px));
    }

    .blog-stats__card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 28px;
    }

    /* Con dos columnas, el primero de cada fila no lleva separador. */
    .blog-stat:nth-child(2n + 1) {
        border-left: 0;
    }

    .featured-card {
        /* minmax(0, 1fr) y no 1fr: con "auto" la columna no baja del ancho
           mínimo del texto y la tarjeta se salía de la pantalla. */
        grid-template-columns: minmax(0, 1fr);
    }

    .featured-card__media {
        /* Con min-height y aspect-ratio a la vez, la altura fijaba el ancho
           (220 x 16/9 = 391px) y la foto se salía de la tarjeta. */
        min-height: 0;
        width: 100%;
        aspect-ratio: 16 / 9;
        /* Apilada, la tarjeta necesita el difuminado hacia abajo, no a la derecha. */
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.6) 82%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.6) 82%, transparent 100%);
    }

    .featured-card__media::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0.55) 100%);
    }

    .featured-card__title,
    .featured-card__excerpt {
        max-width: none;
    }

    .newsletter {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 22px;
    }

    .newsletter__form {
        grid-column: 1 / -1;
    }

    .blog-article__media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 620px) {
    .blog-hero {
        padding: 64px 0 120px;
    }

    .blog-hero__text {
        max-width: none;
    }

    .blog-newsletter {
        padding: 48px 0 56px;
    }

    .newsletter {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .newsletter__form {
        flex-wrap: wrap;
        width: 100%;
    }

    .newsletter__form input {
        width: 100%;
    }

    .newsletter__form button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .blog-stats__card {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .blog-stats__card .blog-stat {
        border-left: 0;
    }

    .blog-more__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Página Catalogos
   ========================================================================== */
.catalogs-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.catalogs-page) {
    padding-bottom: 0;
}

.page-shell:has(.catalogs-page) + .site-footer {
    margin-top: 0;
}

.catalog-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #171717;
}

.catalog-hero__media.image-placeholder--catalog-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background-color: #222222;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 18px,
            rgba(206, 0, 0, 0.18) 18px,
            rgba(206, 0, 0, 0.18) 36px
        );
}

.catalog-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.38) 46%, rgba(0, 0, 0, 0.2) 100%);
}

.catalog-hero__copy {
    position: absolute;
    top: 50%;
    left: clamp(24px, 6vw, 70px);
    z-index: 2;
    width: min(560px, 46vw);
    transform: translateY(-50%);
    color: #ffffff;
}

.catalog-hero__copy h1 {
    max-width: none;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
}

.catalog-hero__copy h1 span {
    color: #ff2b2b;
}

.catalog-hero__copy p {
    max-width: 34ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1.5;
}

.catalog-hero__categories {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    width: min(280px, 26vw);
    background: rgba(0, 0, 0, 0.38);
}

.catalog-hero__categories div {
    display: grid;
    align-items: center;
    padding: 0 clamp(16px, 2.6vw, 30px);
    border-bottom: 1px solid rgba(255, 29, 37, 0.55);
    color: #ffffff;
    font-size: clamp(0.72rem, 1vw, 0.95rem);
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.catalog-hero__categories div:last-child {
    border-bottom: 0;
}

.catalog-hero__categories div::before {
    content: '';
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    border: 2px solid #ff1d25;
    border-radius: 10px;
}

.catalog-heading {
    width: 100%;
    padding: clamp(28px, 4vw, 42px) clamp(20px, 7vw, 110px) 24px;
    text-align: center;
    background: #ffffff;
}

.catalog-heading h2 {
    max-width: none;
    margin: 0 0 12px;
    color: #282828;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.catalog-heading h2 span {
    color: #d90000;
}

.catalog-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.catalog-intro {
    position: relative;
    width: 100%;
    padding: 28px clamp(20px, 9vw, 145px) 18px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.catalog-intro__bar {
    position: absolute;
    top: 24px;
    left: 0;
    width: clamp(64px, 8vw, 110px);
    height: 72px;
    background: #b40000;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.catalog-intro p {
    max-width: 1120px;
    margin: 0 auto;
    color: #696969;
    line-height: 1.75;
    text-align: justify;
}

.catalog-intro strong {
    color: #d90000;
}

.catalog-grid-section {
    width: 100%;
    padding: 26px clamp(22px, 7vw, 110px) clamp(52px, 7vw, 82px);
    background: #ffffff;
}

.catalog-cover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: clamp(54px, 7vw, 78px) clamp(42px, 9vw, 120px);
    max-width: 1120px;
    margin: 0 auto;
}

.catalog-cover-card {
    display: grid;
    justify-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}

.catalog-cover-card__image.image-placeholder--catalog-cover {
    width: min(100%, 285px);
    aspect-ratio: 340 / 420;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    color: #ffe5e5;
    background-color: #4e1410;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 12px,
            rgba(206, 0, 0, 0.14) 12px,
            rgba(206, 0, 0, 0.14) 24px
        );
}

.catalog-cover-card h3 {
    width: min(100%, 285px);
    margin: 0;
    padding: 14px 12px 15px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #df3f3f;
    color: #ffffff;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

@media (max-width: 940px) {
    .catalog-hero__copy {
        width: min(520px, 58vw);
    }

    .catalog-hero__categories {
        width: min(230px, 30vw);
    }

    .catalog-cover-grid {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
}

@media (max-width: 680px) {
    .catalog-hero__media.image-placeholder--catalog-hero {
        min-height: 420px;
    }

    .catalog-hero__copy {
        top: 38%;
        width: calc(100% - 48px);
    }

    .catalog-hero__categories {
        top: auto;
        left: 0;
        width: 100%;
        height: auto;
        grid-template-columns: 1fr;
    }

    .catalog-hero__categories div {
        min-height: 54px;
        padding: 10px 22px;
        grid-template-columns: 34px 1fr;
        gap: 12px;
    }

    .catalog-hero__categories div::before {
        margin-bottom: 0;
    }

    .catalog-intro {
        padding-top: 26px;
    }

    .catalog-intro__bar {
        display: none;
    }

    .catalog-intro p {
        text-align: left;
    }

    .catalog-cover-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

/* ==========================================================================
   Página Certificaciones
   ========================================================================== */
.certifications-page {
    display: grid;
    gap: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
}

.page-shell:has(.certifications-page) {
    padding-bottom: 0;
}

.page-shell:has(.certifications-page) + .site-footer {
    margin-top: 0;
}

.cert-hero {
    width: 100%;
    overflow: hidden;
}

.cert-hero__media.image-placeholder--cert-hero {
    aspect-ratio: 1400 / 454;
    border: 0;
    border-radius: 0;
    background-color: #a13a22;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.06) 18px,
            rgba(0, 0, 0, 0.12) 18px,
            rgba(0, 0, 0, 0.12) 36px
        );
    color: #fff5f1;
}

.cert-section {
    width: 100%;
    padding: clamp(28px, 4vw, 54px) clamp(20px, 7vw, 110px);
}

.cert-heading {
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.cert-heading h1 {
    margin: 0 auto 12px;
    max-width: none;
    color: #151515;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.cert-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.cert-copy-card {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.cert-copy-card h2,
.cert-iso-band h2,
.cert-future h2 {
    max-width: none;
    margin: 0 0 18px;
    color: #4a4a4a;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.cert-copy-card h2 span,
.cert-future h2 span {
    color: #ff1d25;
}

.cert-copy-card p,
.cert-iso-band p,
.cert-iso-band li,
.cert-future p {
    margin: 0;
    color: #656565;
    font-size: 0.98rem;
    line-height: 1.75;
    text-align: justify;
}

.cert-iso-band {
    width: 100%;
    padding: clamp(30px, 5vw, 54px) clamp(20px, 7vw, 110px);
    background: #eaf2fb;
    border-top: 1px solid rgba(32, 27, 23, 0.08);
    border-bottom: 1px solid rgba(32, 27, 23, 0.12);
}

.cert-iso-band__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(28px, 7vw, 90px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-iso-band h2 {
    color: #8a9ab4;
}

.cert-iso-band ul {
    display: grid;
    gap: 4px;
    margin: 8px 0 0;
    padding-left: 18px;
}

.cert-iso-band__seal.image-placeholder--cert-seal {
    width: min(260px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 999px;
    border-color: rgba(32, 107, 179, 0.42);
    color: #1769aa;
    background-color: rgba(255, 255, 255, 0.7);
}

.cert-future {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: end;
    width: 100%;
    padding: clamp(32px, 5vw, 58px) clamp(20px, 7vw, 110px) 0;
    background: #f4f4f4;
    border-bottom: 22px solid #ff1d18;
}

.cert-future__media.image-placeholder--cert-person {
    min-height: 430px;
    align-self: end;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.cert-future__copy {
    align-self: center;
    padding-bottom: clamp(30px, 5vw, 56px);
}

.cert-future__copy p + p {
    margin-top: 22px;
}

@media (max-width: 900px) {
    .cert-iso-band__content,
    .cert-future {
        grid-template-columns: 1fr;
    }

    .cert-iso-band__copy {
        order: 1;
    }

    .cert-iso-band__seal {
        order: 2;
    }

    .cert-future {
        padding-bottom: 0;
    }

    .cert-future__media.image-placeholder--cert-person {
        min-height: 300px;
        order: 2;
    }

    .cert-future__copy {
        order: 1;
        padding-bottom: 0;
    }
}

@media (max-width: 560px) {
    .cert-section,
    .cert-iso-band,
    .cert-future {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cert-copy-card p,
    .cert-iso-band p,
    .cert-iso-band li,
    .cert-future p {
        text-align: left;
    }

    .cert-iso-band__seal.image-placeholder--cert-seal {
        width: min(220px, 78vw);
    }
}

@media (max-width: 860px) {
    .about-two-col,
    .about-mv,
    .about-values {
        grid-template-columns: 1fr;
    }

    .about-two-col--reverse .about-two-col__media {
        order: 0;
    }

    .about-two-col__media {
        min-height: 220px;
    }

    .mv-card__body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   Tarjetas de producto en móvil: 2 por fila (equivalente a col-6).
   Va al final del archivo para ganar a las reglas de los breakpoints previos.
   ========================================================================== */

@media (max-width: 760px) {
    .products-grid,
    .related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .related-products__grid {
        padding-top: 24px;
    }

    .shop-product-card {
        gap: 9px;
    }

    .shop-product-card__frame {
        padding: 12px;
    }

    .shop-product-card__brand {
        font-size: 0.76rem;
    }

    .shop-product-card__meta h3 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    /* A media pantalla no caben los dos botones en línea. */
    .shop-product-card__actions a {
        flex: 1 1 100%;
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Detalle de producto: piezas que llegaron con la ficha dinámica
   (galería con miniaturas, marca, resumen y tabla de características).
   ========================================================================== */

.product-detail-media {
    display: grid;
    gap: 14px;
    align-content: start;
}

.product-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-detail-thumb {
    width: 74px;
    height: 74px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(32, 27, 23, 0.16);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease;
}

.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(223, 40, 40, 0.5);
}

.product-detail-thumb.is-active {
    border-color: var(--guinda);
    box-shadow: 0 0 0 2px rgba(223, 40, 40, 0.18);
}

.product-detail-brand {
    margin: 0 0 8px;
    color: var(--guinda);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-detail-excerpt {
    margin: 0 0 26px;
    color: #6f6f6f;
    font-size: 1rem;
    line-height: 1.6;
}

.product-specs {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid rgba(32, 27, 23, 0.12);
    border-radius: 6px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.product-specs th,
.product-specs td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(32, 27, 23, 0.1);
    text-align: left;
    vertical-align: top;
}

.product-specs tr:last-child th,
.product-specs tr:last-child td {
    border-bottom: 0;
}

.product-specs th {
    width: 38%;
    color: #3f3f3f;
    background: #fafafa;
    font-weight: 700;
}

.product-specs td {
    color: #6f6f6f;
}

.product-breadcrumb a {
    color: inherit;
}

.product-breadcrumb a:hover {
    color: var(--guinda);
}

@media (max-width: 760px) {
    .product-detail-thumb {
        width: 62px;
        height: 62px;
    }

    .product-specs th {
        width: 42%;
    }

    .product-specs th,
    .product-specs td {
        padding: 10px 12px;
        font-size: 0.86rem;
    }
}
