:root {
    --black: #0b0b0b;
    --gold: #d4af37;
    --cream: #f7f1e6;
    --beige: #d9c9b3;
    --brown: #3a2e24;
    font-family: Arial, sans-serif;
    color: var(--brown);
    background: var(--cream);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

a {
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.top {
    background: var(--black);
    color: var(--cream);
    padding: 16px max(5vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    text-decoration: none;
    color: var(--gold);
    font: 29px Georgia, serif;
    letter-spacing: .14em;
    white-space: nowrap;
}

.brand small {
    display: block;
    font: 10px Arial;
    letter-spacing: .46em;
    text-align: center;
    margin-top: 3px;
}

.links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.links a {
    text-decoration: none;
    font-size: 14px;
}

.links a:hover {
    color: var(--gold);
}

.count {
    background: var(--gold);
    color: var(--black);
    padding: 11px 16px;
    border-radius: 30px;
    font-weight: bold;
}

.hero {
    min-height: 530px;
    background: var(--black);
    color: var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.hero-copy {
    padding: clamp(48px, 7vw, 110px) 7vw;
    align-self: center;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: 13px;
    font-weight: bold;
}

.hero h1 {
    font: clamp(47px, 5.2vw, 82px)/1.05 Georgia, serif;
    margin: 22px 0;
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 490px;
    color: #e4dacb;
}

.button {
    display: inline-block;
    border: 0;
    border-radius: 30px;
    background: var(--gold);
    color: var(--black);
    font-weight: bold;
    text-decoration: none;
    padding: 15px 27px;
    margin-top: 20px;
}

.button:hover {
    background: #edce6d;
}

/* Imagen de la portada */
.hero-art {
    min-height: 420px;
    background-color: var(--black);
    background-image: url("fotos/zafira-fondo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.section {
    padding: 75px max(5vw, 20px);
    max-width: 1500px;
    margin: auto;
}

.section-head {
    text-align: center;
    margin-bottom: 35px;
}

.section h2 {
    font: clamp(34px, 3.6vw, 52px) Georgia, serif;
    margin: 12px 0;
}

.muted {
    color: #68584a;
    line-height: 1.55;
}

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

.card {
    background: #fff;
    border: 1px solid #e9ddca;
    box-shadow: 0 12px 35px #3a2e2414;
    overflow: hidden;
}

/* Imagen completa y centrada en cada tarjeta */
.photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background-color: #17110d;
}

.card-content {
    padding: 25px;
}

.card-tag {
    font-size: 12px;
    letter-spacing: .15em;
    color: #8a6833;
    text-transform: uppercase;
}

.card h3 {
    font: 30px Georgia, serif;
    margin: 9px 0;
}

.card p {
    line-height: 1.5;
    color: #65594d;
    min-height: 48px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    gap: 8px;
}

.card-foot span {
    font-weight: bold;
}

.card button {
    border: 1px solid var(--brown);
    background: transparent;
    color: var(--brown);
    border-radius: 24px;
    padding: 11px 18px;
}

.card button:hover {
    background: var(--brown);
    color: #fff;
}

.band {
    background: var(--black);
    color: var(--cream);
}

.band .section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.band h2 {
    color: var(--cream);
}

.band p {
    line-height: 1.7;
    color: var(--beige);
}

.summary {
    background: #1b1a17;
    padding: 30px;
    border: 1px solid #5b503e;
}

.summary h3 {
    font: 29px Georgia, serif;
    margin: 0 0 18px;
}

.summary ul {
    padding-left: 20px;
    line-height: 1.9;
}

.summary button {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--beige);
    padding: 10px 15px;
    border-radius: 20px;
    margin-top: 8px;
}

.summary button:hover {
    color: var(--gold);
}

.summary .checkout {
    display: block;
    width: 100%;
    background: var(--gold);
    color: var(--black);
    border: 0;
    font-weight: bold;
    margin-top: 20px;
}

.summary .checkout:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.summary .checkout:disabled:hover {
    color: var(--black);
}

.total {
    border-top: 1px solid #5b503e;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
}

/* Imagen de “El universo Zafira” */
.board {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 20px 40px #3a2e2428;
}

.contact {
    text-align: center;
    background: #e9dfcf;
}

.contact p {
    max-width: 590px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact .button {
    margin-top: 30px;
}

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 27px 0 8px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 115px;
    border: 1px solid var(--brown);
    border-radius: 28px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
}

.socials a:not([aria-disabled]):hover {
    background: var(--black);
    color: var(--gold);
}

.social-hint {
    font-size: 14px;
    color: #68584a;
}

footer {
    background: var(--black);
    color: var(--beige);
    padding: 35px 5vw;
    text-align: center;
    font-size: 14px;
}

.notice {
    font-size: 14px;
    color: #65594d;
}

.band .notice {
    color: #c9beae;
}

@media (max-width: 800px) {
    .top {
        align-items: flex-start;
        flex-direction: column;
    }

    .links {
        gap: 14px;
    }

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

    .hero-copy {
        padding: 54px 6vw;
    }

    .hero-art {
        min-height: 250px;
        order: -1;
    }

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

    .band .section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    .products {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 230px;
    }

    .links a {
        font-size: 13px;
    }

    .photo {
        height: 250px;
    }

    .section {
        padding: 55px 20px;
    }
}
.stock { font-size: 14px; font-weight: 600; color: #725627; min-height: 0 !important; }
.card button:disabled { opacity: .5; cursor: not-allowed; }

/* Portada completa, navegación compacta y pedido visible */
[hidden] { display: none !important; }
.top { position: relative; flex-direction: row; align-items: center; z-index: 10; }
.header-actions { display: flex; align-items: center; gap: 22px; padding-top: 12px; }
.cart-link { position: relative; display: flex; align-items: center; gap: 9px; background: var(--gold); color: var(--black); border-radius: 28px; padding: 12px 17px; text-decoration: none; font-size: 14px; font-weight: bold; }
.cart-link:hover, .cart-link:focus-visible { background: #edce6d; color: var(--black); }
.cart-money { position: absolute; top: -15px; right: 0; background: var(--cream); color: var(--black); border: 1px solid var(--gold); border-radius: 20px; padding: 4px 9px; font-size: 11px; white-space: nowrap; }
.menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid #63512b; border-radius: 9px; background: transparent; color: var(--gold); padding: 10px; }
.menu-toggle span { display: block; height: 2px; width: 100%; background: currentColor; }
.menu-toggle:hover { background: #262117; }
.links { position: absolute; right: max(5vw, 20px); top: calc(100% - 1px); background: #15130f; border: 1px solid #63512b; border-radius: 12px; padding: 12px; min-width: 190px; display: flex; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 12px 30px #0006; }
.links a { padding: 14px 18px; border-radius: 7px; }
.links a:hover { background: #302819; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(540px, 48vw, 780px); }
.hero-art { position: absolute; inset: 0; z-index: -2; min-height: 0; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000e 0%, #000b 40%, #0003 75%, #0002 100%); }
.hero-copy { width: min(680px, 58%); padding: 65px 5vw; }
.hero h1 { font-size: clamp(42px, 4.5vw, 70px); text-shadow: 0 2px 15px #0008; }
.hero p { color: var(--cream); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filters button { border: 1px solid #a58a54; background: transparent; color: var(--brown); border-radius: 24px; padding: 12px 22px; font-weight: bold; }
.filters button[aria-pressed="true"] { background: var(--black); color: var(--gold); border-color: var(--black); }
.filters button:hover { background: var(--gold); color: var(--black); }
.filter-status { text-align: center; color: #68584a; font-size: 14px; margin: 20px 0 30px; }
.summary .checkout:hover:not(:disabled) { background: #edce6d; color: var(--black); }
@media (max-width: 800px) {
    .hero-copy { width: min(600px, 85%); padding: 60px 6vw; }
    .hero::before { background: linear-gradient(90deg, #000e, #0009 65%, #0005); }
}
@media (max-width: 550px) {
    .top { gap: 12px; padding: 16px 18px; }
    .brand { font-size: 23px; }
    .header-actions { gap: 12px; }
    .cart-link { padding: 10px 12px; font-size: 12px; gap: 6px; }
    .hero { min-height: 590px; }
    .hero-copy { width: 100%; padding: 60px 24px; }
    .hero-art { min-height: 0; background-position: 58% center; }
    .hero::before { background: #000a; }
    .hero h1 { font-size: 47px; }
    .hero p { font-size: 16px; }
    .filters button { padding: 11px 17px; }
}

/* Imagen completa y contenido centrado en cualquier pantalla */
.hero { min-height: 0; padding: clamp(50px, 6vw, 100px) 20px; }
.hero-art { background-size: contain; background-position: center; }
.hero::before { background: #0009; }
.hero-copy { width: 100%; max-width: 900px; padding: 0; margin: auto; text-align: center; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); max-width: 850px; margin: 22px auto; }
.hero p { max-width: 620px; margin: 0 auto; }
.cart-link { border: 0; }
#cart-dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #6b5735; border-radius: 18px; background: #12110e; color: var(--cream); padding: 24px; }
#cart-dialog::backdrop { background: #000b; }
body:has(#cart-dialog[open]) { overflow: hidden; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-heading h2 { font: 34px Georgia, serif; margin: 0; }
.cart-heading button { border: 1px solid #6b5735; background: transparent; color: var(--cream); width: 40px; height: 40px; border-radius: 50%; font-size: 27px; }
#cart-dialog > p { line-height: 1.6; color: var(--beige); }
#cart-dialog .summary { padding: 20px; border-radius: 12px; }
#cart-dialog .notice { color: var(--beige); }
.continue-shopping { display: block; margin: 18px auto 0; background: transparent; color: var(--gold); border: 0; padding: 12px; }
@media (max-width: 550px) {
    .hero { min-height: 510px; padding: 48px 22px; }
    .hero-art { background-size: contain; background-position: center; }
    .hero-copy { width: 100%; padding: 0; }
    .hero h1 { font-size: 43px; }
    .hero .eyebrow { font-size: 11px; }
    #cart-dialog { padding: 18px; }
    #cart-dialog .summary { padding: 16px; }
}

/* Extensión suave de la portada sin recortar la imagen principal */
.hero-ambient { position: absolute; inset: -35px; z-index: -3; background: url("fotos/zafira-fondo.png") center / cover no-repeat; filter: blur(25px); opacity: .45; }
.hero-art { background-color: transparent; }
.hero { padding: clamp(38px, 4vw, 70px) 20px; }
.whatsapp-help { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; z-index: 20; display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-radius: 30px; background: #176b48; color: white; text-decoration: none; font-weight: bold; font-size: 14px; box-shadow: 0 5px 22px #0004; }
.whatsapp-help:hover { background: #105436; }
.add-feedback { position: fixed; bottom: 90px; left: 50%; transform: translate(-50%, 12px); z-index: 30; background: #17130e; color: var(--cream); border: 1px solid var(--gold); padding: 14px 20px; border-radius: 12px; width: max-content; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.add-feedback.visible { opacity: 1; transform: translate(-50%, 0); }
.flying-product { position: fixed; width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--gold); border-radius: 50%; z-index: 40; pointer-events: none; box-shadow: 0 5px 18px #0005; }
@media (max-width: 800px) {
    .top { position: sticky; top: 0; z-index: 25; box-shadow: 0 3px 12px #0004; }
    html { scroll-padding-top: 100px; }
}
@media (max-width: 550px) {
    .hero { min-height: 0; padding: 35px 22px; }
    .hero h1 { font-size: clamp(34px, 10vw, 43px); margin: 18px auto; }
    .hero p { font-size: 15px; }
    .whatsapp-help { right: 14px; padding: 13px 15px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .add-feedback { transition: none; }
}

/* Portada con imagen y texto separados; espacio para los fundadores */
.hero { display: flex; flex-direction: column; padding: 0 0 45px; gap: 24px; }
.hero-ambient, .hero::before { display: none; }
.hero-art { position: relative; inset: auto; z-index: auto; order: -1; width: 100%; height: auto; aspect-ratio: 16 / 9; max-width: 920px; min-height: 0; background-size: contain; margin: 0 auto; }
.hero-copy { padding: 0 24px; max-width: 950px; }
.hero h1 { font-size: clamp(34px, 4vw, 54px); margin: 18px auto; }
.whatsapp-help { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
.whatsapp-help span { position: absolute; right: 64px; background: #17130e; color: var(--cream); padding: 9px 13px; border-radius: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.whatsapp-help:hover span, .whatsapp-help:focus-visible span { opacity: 1; }
.founders { background: var(--black); color: var(--cream); }
.founders-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 75px); }
.founders-photo { aspect-ratio: 4 / 3; border: 1px solid #6b5735; background: radial-gradient(ellipse at center, #292218, #13110e); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--beige); }
.founders-monogram { font: 100px Georgia, serif; color: var(--gold); }
.founders-photo > span:not(.founders-monogram) { font: 26px Georgia, serif; }
.founders-photo small { font-size: 14px; line-height: 1.5; }
.founders-photo img { width: 100%; height: 100%; object-fit: cover; }
.founders-copy h2 { color: var(--cream); }
.founders-copy p { color: var(--beige); line-height: 1.8; }
@media (max-width: 800px) { .founders-layout { grid-template-columns: 1fr; } }
@media (max-width: 550px) {
    .hero { padding: 0 0 35px; gap: 16px; }
    .hero-art { aspect-ratio: 16 / 9; }
    .hero-copy { padding: 0 22px; }
    .hero h1 { font-size: 36px; }
    .whatsapp-help { width: 48px; height: 48px; }
}

/* Portada: fondo extendido de borde a borde y texto superpuesto */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: row; align-items: center; justify-content: center; min-height: clamp(510px, 42vw, 720px); padding: 65px 24px; gap: 0; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0; aspect-ratio: auto; z-index: -2; margin: 0; background-size: 100% 100%; background-position: center; background-repeat: no-repeat; }
.hero::before { display: block; content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0005, #0009 50%, #0007); }
.hero-copy { position: relative; width: 100%; max-width: 940px; padding: 0; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(39px, 4.6vw, 70px); margin: 22px auto; text-shadow: 0 3px 20px #000; }
.hero p { max-width: 640px; margin: 0 auto; color: var(--cream); text-shadow: 0 2px 8px #000; }
@media (max-width: 550px) {
    .hero { min-height: 490px; padding: 42px 22px; }
    .hero-art { background-size: 100% 100%; }
    .hero h1 { font-size: clamp(36px, 10vw, 44px); }
    .hero p { font-size: 16px; }
}
