* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #112443;
    background: #fbfbf8;
    font: 16px/1.5 Inter,Arial,sans-serif;
}

button,input,select {
    font: inherit;
}

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

button,a,input {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

button:focus-visible,a:focus-visible,input:focus-visible {
    outline: 3px solid #a66312;
    outline-offset: 3px;
}

.wrap {
    width: min(1180px,90%);
    margin: auto;
}

header {
    background: white;
    border-bottom: 1px solid #d8dedf;
}

.nav,nav,.brand,footer,.sectionTitle,.drawerhead {
    display: flex;
    align-items: center;
}

.nav {
    height: 76px;
    gap: 42px;
}

.brand {
    gap: 10px;
}

.brand img {
    width: 44px;
    height: 44px;
}

.brand b {
    font-size: 21px;
    letter-spacing: -1px;
}

.brand span {
    font-size: 12px;
    letter-spacing: 1.2px;
}

nav {
    margin-left: auto;
    gap: 30px;
    font-size: 14px;
}

.cart,.size,.secondary {
    border: 1px solid #bbc6d1;
    border-radius: 6px;
    background: white;
    padding: 7px 13px;
    color: #162e50;
}

.cart span {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #143567;
    color: #fff;
    width: 23px;
    height: 23px;
    font-size: 13px;
    margin-left: 5px;
}

.hero {
    overflow: hidden;
    background: linear-gradient(112deg,#eaf3ff 10%,#e1edfc 57%,#c1dbfa);
}

.heroGrid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    min-height: 390px;
    padding: 42px 0;
    position: relative;
}

.kicker,.sample small {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 750;
}

.kicker i {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: #52739b;
    vertical-align: middle;
    margin: 0 8px;
}

h1,h2,h3,p {
    margin: 0;
}

h1 {
    font-size: clamp(52px,6vw,88px);
    line-height: .95;
    letter-spacing: -.065em;
    margin: 17px 0;
    color: #102c58;
}

h1 em {
    font-family: Georgia,serif;
    font-weight: 400;
    letter-spacing: -.065em;
}

.hero p {
    color: #385273;
    margin: 17px 0 23px;
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: 0;
    background: #103166;
    color: white;
    border-radius: 6px;
    padding: 11px 20px;
    font-weight: 650;
    font-size: 14px;
}

.primary:hover {
    background: #194785;
}

.fan {
    width: 330px;
    height: 265px;
    position: relative;
    justify-self: center;
}

.sample {
    --r: 0deg;
    position: absolute;
    left: 28%;
    bottom: 0;
    width: 160px;
    height: 240px;
    border-radius: 5px;
    background: linear-gradient(160deg,var(--c),var(--d));
    transform: rotate(var(--r));
    transform-origin: 20% 94%;
    box-shadow: 2px 4px 10px #0b245a2b;
    border: 1px solid #ffffff80;
    color: white;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.sample:before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(167deg,transparent 0 41px,#ffffff35 42px 43px);
    pointer-events: none;
}

.sample strong,.sample small {
    position: relative;
}

.sample strong {
    font: italic bold 28px Georgia;
}

.sample small {
    font-size: 8px;
}

.eco {
    --c: #97b98b;
    --d: #265e42;
    --r: -33deg;
}

.balanced {
    --c: #ffb476;
    --d: #b44e16;
    --r: -9deg;
}

.premium {
    --c: #358eff;
    --d: #092659;
    --r: 16deg;
}

.sample img {
    width: 40px;
    border-radius: 100%;
    background: white;
    position: absolute;
    top: 12px;
    left: 12px;
}

.catalog {
    padding: 46px 0 50px;
}

.sectionTitle {
    justify-content: space-between;
    margin-bottom: 20px;
}

.sectionTitle span {
    font-size: 12px;
    color: #57677b;
}

.sectionTitle h2,.pickup h2,dialog h2 {
    font-size: clamp(25px,3.1vw,38px);
    line-height: 1.1;
    letter-spacing: -.05em;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 19px;
}

.card {
    background: white;
    border: 1px solid #d7dde0;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}

.art {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px 23px;
    height: 136px;
    background: var(--d);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.art:before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/imagenes/ondas.webp') center/cover;
    mix-blend-mode: luminosity;
    opacity: .35;
    z-index: -1;
}

.art:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,var(--d),transparent);
    z-index: -1;
}

.art small {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
}

.art h3 {
    font-size: 35px;
    letter-spacing: -1.8px;
    line-height: 1.15;
}

.art .seal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    background: white;
    border-radius: 50%;
}

.realphoto {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.details {
    padding: 17px 20px 20px;
}

.sizes {
    display: flex;
    gap: 7px;
    margin: 6px 0 14px;
}

.size {
    font-size: 13px;
    min-width: 52px;
}

.size[aria-pressed=true] {
    color: white;
    background: #193759;
    border-color: #193759;
}

.details small,.muted {
    color: #58677a;
}

.price {
    font-size: 19px;
    font-weight: 700;
}

.stock {
    font-size: 13px;
    margin: 3px 0 13px;
}

.action,.contact {
    font-weight: 650;
    font-size: 14px;
    color: #193f73;
}

.action {
    display: block;
    text-align: center;
    width: 100%;
    padding: 9px;
    border: 1px solid #a4b8cd;
    border-radius: 5px;
    background: #f6f9fc;
}

.pickup {
    background: #eaf0f4;
}

.pickupGrid {
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 25px;
}

.pickup h2 {
    margin: 8px 0;
}

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

.contact {
    display: inline-block;
    margin-top: 10px;
    text-decoration: underline;
}

footer {
    gap: 25px;
    padding: 25px 0;
    font-size: 13px;
    flex-wrap: wrap;
}

footer b {
    margin-right: auto;
}

dialog {
    border: 1px solid #c6cdd3;
    border-radius: 12px;
    padding: 26px;
    color: #152d4c;
    width: min(465px,95%);
    max-height: 90vh;
}

dialog::backdrop {
    background: #07142780;
}

.drawerhead {
    justify-content: space-between;
    margin-bottom: 18px;
}

.drawerhead button {
    font-size: 23px;
    border: 0;
    background: transparent;
}

form label {
    display: block;
    margin: 12px 0;
    font-weight: 600;
}

input {
    border: 1px solid #aebac7;
    border-radius: 5px;
    padding: 8px;
    width: 100%;
}

.rowitem {
    padding: 12px 0;
    border-bottom: 1px solid #dedfe1;
}

.rowitem button {
    margin: 5px 5px 0 0;
}

.total {
    margin: 16px 0;
    font-size: 20px;
}

.sale {
    font-size: 11px;
    color: #9d3105;
}

.admin {
    max-width: 850px;
    margin: 32px auto;
    padding: 0 18px;
}

.admin section {
    margin: 24px 0;
}

.admin fieldset {
    margin: 8px 0;
    border: 1px solid #ccd5de;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin fieldset label {
    flex: 1;
    min-width: 100px;
}

.admin button {
    align-self: end;
}

.admin p {
    margin: 8px 0;
}

[hidden] {
    display: none!important;
}

@media (max-width:720px) {
    .nav {
        height: 64px;
        gap: 12px;
    }

    .brand b {
        font-size: 17px;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    nav {
        display: none;
    }

    .cart {
        margin-left: auto;
    }

    .heroGrid {
        grid-template-columns: 1fr .4fr;
        min-height: 300px;
        padding: 36px 0;
    }

    .heroGrid>div:first-child {
        z-index: 1;
    }

    .hero p {
        max-width: 280px;
    }

    .fan {
        position: absolute;
        right: -100px;
        transform: scale(.59);
        opacity: .8;
    }

    .heroGrid>div:first-child {
        max-width: 75%;
    }

    .kicker {
        letter-spacing: 1.3px;
    }

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

    .catalog {
        padding: 30px 0;
    }

    .art {
        height: 120px;
    }

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

    .sectionTitle span {
        font-size: 11px;
    }

    footer {
        gap: 10px;
    }

    footer b {
        width: 100%;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Tamaño del balde ECO en el catálogo */
.card.eco .realphoto {
    transform: scale(1.4);
    transform-origin: center 54%;
}
