body {
    margin: 0;
    background: #fff;
    color: var(--ciro-primary);
    font-family: var(--ciro-font);
    font-weight: 400;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
select {
    font-family: inherit;
}

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: #fff;
    color: var(--ciro-primary);
    padding: 8px 12px;
    z-index: 20;
}

.skip:focus {
    top: 8px;
}

.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;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 28px;
    background: var(--ciro-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.topbar p {
    margin: 0;
}

.topbar nav {
    display: flex;
    gap: 16px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 16px 28px 10px;
}

.search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 280px;
    border: 1.5px solid var(--ciro-primary);
    border-radius: 999px;
    background: #fff;
}

.search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ciro-primary);
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.search button {
    border: 0;
    background: transparent;
    color: var(--ciro-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px 10px 0;
    cursor: pointer;
}

.logo {
    display: block;
}

.logo img {
    display: block;
    height: 92px;
    width: auto;
}

.tools {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    font-size: 14px;
    font-weight: 500;
}

.tools a {
    text-decoration: none;
}

.cart span {
    font-weight: 400;
}

.site-header {
    background: #fff;
    border-bottom: 3px solid var(--ciro-rosa);
}

.cats {
    display: flex;
    gap: 8px 22px;
    overflow-x: auto;
    padding: 8px 28px 14px;
}

.cats a {
    color: var(--ciro-primary);
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 4px;
}

.cats a.is-on {
    box-shadow: inset 0 -2px 0 var(--ciro-primary);
}

.banner {
    position: relative;
    height: min(82vh, 920px);
    background: #0e445c;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.banner-slide.is-on {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.banner-slide img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.banner-copy {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(14, 68, 92, 0.78);
    color: #fff;
}

.banner-copy p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.banner-nav,
.banner-dots button {
    border: 0;
    cursor: pointer;
}

.banner-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
}

.banner-nav::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 auto;
    border-top: 2px solid var(--ciro-primary);
    border-right: 2px solid var(--ciro-primary);
}

.banner-nav.prev {
    left: 16px;
}

.banner-nav.prev::before {
    transform: rotate(-135deg);
    margin-left: 16px;
}

.banner-nav.next {
    right: 16px;
}

.banner-nav.next::before {
    transform: rotate(45deg);
    margin-right: 16px;
}

.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.banner-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.banner-dots button.is-on {
    background: #fff;
}

.bloque {
    padding: 48px 0 64px;
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.estrecho {
    max-width: 640px;
}

h1,
h2 {
    margin: 0 0 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(28px, 3vw, 40px);
}

h2 {
    font-size: 28px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 8px;
}

.page-head h1 {
    margin-bottom: 0;
}

.miga {
    margin: 0 0 14px;
    color: var(--ciro-muted);
    font-size: 14px;
}

.miga a {
    color: var(--ciro-primary);
}

.orden {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.orden select {
    border: 1px solid #c5d5dc;
    color: var(--ciro-primary);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
}

.orden button {
    border: 0;
    background: transparent;
    color: var(--ciro-primary);
    font-weight: 600;
    cursor: pointer;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #f4f8f7;
    margin-bottom: 12px;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-media img.ph,
.ficha-principal.ph {
    width: 42%;
    height: auto;
    object-fit: contain;
}

.card-mark {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-name {
    display: block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    min-height: 2.7em;
}

.card-meta {
    margin: 6px 0 0;
    color: var(--ciro-muted);
    font-size: 13px;
}

.card-price {
    margin: 10px 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ciro-primary);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.card-btn:hover,
.card-btn:focus {
    background: var(--ciro-primary-hover);
}

.vacio {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.45;
    max-width: 36em;
}

.opiniones {
    position: relative;
    padding: 64px 0;
    background: var(--ciro-bg);
}

.opiniones::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/img/tramas/geo-color.jpg") center / 560px auto repeat;
    mix-blend-mode: multiply;
    opacity: 0.42;
    pointer-events: none;
}

.opiniones .wrap {
    position: relative;
}

.opiniones-lead {
    margin: 0;
    max-width: 36em;
    font-size: 18px;
    line-height: 1.45;
}

.ficha {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
}

.ficha-principal {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f4f8f7;
}

.thumbs {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.thumbs button {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid #d5e2e6;
    background: #fff;
    cursor: pointer;
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ficha h1 {
    margin-bottom: 8px;
}

.ficha-color,
.ficha-stock,
.ficha-nota {
    margin: 0 0 10px;
    line-height: 1.45;
}

.ficha-nota {
    color: var(--ciro-muted);
    max-width: 36em;
}

.ficha-opiniones {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #e3eeea;
}

.site-footer {
    position: relative;
    background: var(--ciro-primary);
    color: #fff;
    padding: 40px 0 24px;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/img/tramas/isotipo-blanco.png") 0 0 / 420px auto repeat;
    opacity: 0.1;
    pointer-events: none;
}

.footer-grid,
.copy {
    position: relative;
}

.footer-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    display: block;
    height: 48px;
    width: auto;
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    color: #fff;
}

.site-footer a {
    display: block;
    text-decoration: none;
    margin: 0 0 8px;
}

.footer-title {
    margin: 0 0 10px;
    font-weight: 600;
}

.copy {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto 0;
    font-size: 13px;
    opacity: 0.85;
}

.wa {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(20, 87, 117, 0.25);
}

.wa svg {
    display: block;
    width: 32px;
    height: 32px;
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .topbar {
        padding: 8px 16px;
    }

    .bar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo tools"
            "search search";
        padding: 14px 16px 8px;
    }

    .logo {
        grid-area: logo;
        justify-self: start;
    }

    .tools {
        grid-area: tools;
    }

    .search {
        grid-area: search;
        max-width: none;
    }

    .cats {
        padding: 8px 16px 12px;
    }

    .banner-copy {
        bottom: 40px;
        max-width: calc(100% - 32px);
    }

    .grid,
    .ficha,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ficha,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 12px;
    }

    .logo img {
        height: 52px;
    }

    .card-name {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-slide {
        transition: none;
    }
}
