/* ÂME Atelier – estilos. Colores en :root (claro y oscuro). */
:root {
    --bg: #F6EFEA;
    --card: #FFFDFC;
    --ink: #5A4A48;
    --mut: #8A7A78;
    --rose: #B48385;
    --pill: #EFE4DF;
    --line: #E8DCD6;
    --btn: #B48385;
    --btnt: #FFFFFF;
    --sh: 0 6px 20px rgba(90, 74, 72, 0.08);
    color-scheme: light;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #2A1F20;
        --card: #35282A;
        --ink: #F3E4DF;
        --mut: #D2BDB8;
        --rose: #E3B7B3;
        --pill: #5A4042;
        --line: #4A3638;
        --btn: #E3B7B3;
        --btnt: #2A1F20;
        --sh: 0 6px 20px #0006;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #2A1F20;
    --card: #35282A;
    --ink: #F3E4DF;
    --mut: #D2BDB8;
    --rose: #E3B7B3;
    --pill: #5A4042;
    --line: #4A3638;
    --btn: #E3B7B3;
    --btnt: #2A1F20;
    --sh: 0 6px 20px #0006;
    color-scheme: dark;
}

html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px);
    scroll-behavior: smooth
}

*, *::before, *::after {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 Inter, system-ui, sans-serif
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--card);
    z-index: 30
}

h1,
h2,
h3 {
    font-family: Lora, Georgia, serif;
    font-weight: 500;
    margin: 0;
    line-height: 1.2
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit
}

button {
    cursor: pointer
}

a {
    color: var(--rose)
}

.w {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

.k {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mut)
}

.s {
    font-size: 14px;
    color: var(--mut);
    margin: 0
}

header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--card);
    border-bottom: 1px solid var(--line)
}

header .w {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 66px
}

.lg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Lora, serif;
    font-size: 26px;
    color: var(--rose);
    letter-spacing: .06em;
    line-height: 1;
    text-decoration: none
}

.lg img {
    height: 44px;
    width: auto
}

.lg small {
    display: block;
    font: 500 9px Inter;
    letter-spacing: .4em;
    color: var(--mut);
    margin-top: 3px
}

nav#nv {
    flex: 1;
    display: flex;
    gap: 6px;
    justify-content: center
}

nav#nv a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 20px;
    min-height: 44px;
    display: flex;
    align-items: center
}

nav#nv a:hover {
    background: var(--pill)
}

nav#nv a[aria-current=page] {
    background: var(--pill);
    font-weight: 600
}

.mb {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: none;
    font-size: 20px
}

@media(max-width:860px) {
    .mb {
        display: block
    }

    header .w {
        gap: 10px
    }

    .lg {
        flex: 1
    }

    nav#nv {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--card);
        flex-direction: column;
        padding: 10px 20px 16px;
        border-bottom: 1px solid var(--line)
    }

    nav#nv.open {
        display: flex
    }
}

.btn {
    background: var(--btn);
    color: var(--btnt);
    border: 0;
    border-radius: 26px;
    padding: 11px 22px;
    min-height: 44px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.btn2 {
    background: transparent;
    color: var(--rose);
    border: 1.5px solid var(--rose);
    border-radius: 26px;
    padding: 9px 18px;
    min-height: 44px;
    font-weight: 600;
    font-size: 14px
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin-top: 18px;
    box-shadow: var(--sh)
}

.tr {
    display: flex;
    transition: transform .6s ease
}

.sl {
    min-width: 100%;
    height: clamp(340px, 56vw, 520px);
    background: #8E5A5C center/cover;
    position: relative;
    color: #fff
}

.sl>div {
    position: absolute;
    inset: auto 0 0 0;
    padding: 80px 28px 46px;
    background: linear-gradient(transparent, #2a1a1ad9)
}

.sl h2 {
    font-size: clamp(26px, 5vw, 44px);
    max-width: 600px;
    margin: 6px 0 16px
}

.ar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #fffbf8e6;
    color: #4A3535;
    font-size: 22px
}

.ar.l {
    left: 12px
}

.ar.r {
    right: 12px
}

.dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px
}

.dots button {
    width: 28px;
    height: 28px;
    border: 0;
    background: none;
    padding: 0;
    display: grid;
    place-items: center
}

.dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff9;
    display: block
}

.dots [aria-current=true] i {
    background: #fff;
    width: 22px;
    border-radius: 6px
}

section {
    padding: 46px 0
}

.hd {
    text-align: center;
    margin-bottom: 26px
}

.hd h1,
.hd h2 {
    font-size: clamp(28px, 4.4vw, 40px);
    color: var(--rose);
    margin-top: 6px
}

.hd p {
    font-family: Lora;
    font-style: italic;
    color: var(--mut);
    margin: 8px auto 0;
    max-width: 620px
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px
}

.chip {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 8px 18px;
    min-height: 44px;
    font-size: 14px;
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center
}

.chip[aria-pressed=true] {
    background: var(--pill);
    border-color: var(--rose);
    font-weight: 600
}

.g,
.cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    grid-auto-rows: 1fr;
}

.cd,
.cc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sh);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--ink);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cc:hover,
.cd:hover,
.blk:hover {
    transform: translateY(-4px);
}

.cc:hover .bi img,
.cd:hover .bi img,
.blk:hover .bi img {
    transform: scale(1.05);
}

.cd,
.cc,
.blk {
    transition: transform .25s ease, box-shadow .25s ease;
}

.bi {
    aspect-ratio: 4/5;
    background: var(--pill);
    overflow: hidden
}

/* Mismo tamaño de imagen en todas las tarjetas .cd */
.cd .bm {
    flex: none;
}

.cd .bi {
    aspect-ratio: 4 / 3;
    height: auto;
}

.bi img,
.ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.cc .bi {
    aspect-ratio: 1/1
}

.cc:hover img {
    transform: scale(1.05)
}

.bi img {
    transition: transform .5s
}

.ph {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    font: italic 18px Lora, serif;
    color: var(--rose);
    background: linear-gradient(135deg, var(--pill), var(--card))
}

.bb,
.ct {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1
}
.bb h3,
.ct h3 {
    font-size: 21px
}

.pr {
    color: var(--rose);
    font-weight: 600;
    font-size: 19px
}

.stk {
    display: flex;
    flex-direction: column;
    gap: 24px
}

/* Hacer el bloque más ancho dentro de su contenedor */
.blk {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 1120px; /* Más ancho para que quepan bien imagen y texto */
    margin-inline: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sh);
}

/* Kits y Velas: dar un poco más de presencia a la imagen sin dejar huecos */
.blk#velas,
#kg .blk,
.blk[data-col="essentiels"],
.blk[data-col="editions"] {
    grid-template-columns: minmax(300px, 45%) minmax(0, 1fr);
}

/* Contenedor de la imagen: ocupa toda la altura de la tarjeta */
.blk .bm,
.blk .bi {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
    background: var(--pill);
}

/* La imagen llena todo el espacio lateral sin deformarse ni dejar franjas vacías */
.blk .bi img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Columna derecha: texto, opciones y botones con buen respiro */
.blk .bb {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card);
    padding: 24px 32px;
    gap: 12px;
    min-width: 0;
}

/* Si los botones de aroma se amontonan, permitir que bajen limpiamente */
.blk .bb > * {
    max-width: 100%;
}

@media (max-width: 820px) {
    .blk,
    .blk#velas,
    #kg .blk,
    .blk[data-col="essentiels"],
    .blk[data-col="editions"] {
        grid-template-columns: 1fr;
    }

    .blk .bi img {
        min-height: 240px;
        max-height: 320px;
    }

    .blk .bb {
        padding: 20px;
    }
}

.th {
    display: flex;
    gap: 8px;
    padding: 8px
}

.th:empty {
    display: none
}

.tb {
    width: 56px;
    height: 56px;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    background: none
}

.tb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.inc {
    margin: 0;
    padding-left: 18px;
    font-size: 14px
}

.grp {
    padding-top: 20px
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0
}

legend {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px
}

.op {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.op label {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 8px 14px;
    min-height: 40px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative
}

.op input {
    position: absolute;
    opacity: 0;
    inset: 0
}

.op label:has(input:checked) {
    background: var(--pill);
    border-color: var(--rose);
    font-weight: 600
}

.op label:has(input:focus-visible) {
    outline: 2px solid var(--rose);
    outline-offset: 2px
}

.bf {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto
}

.bf .pr {
    flex: 1
}

.q {
    display: flex;
    align-items: center;
    gap: 4px
}

.q button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--rose);
    background: none;
    font-size: 18px;
    color: var(--rose)
}

.q b {
    min-width: 26px;
    text-align: center
}

.i {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px;
    background: var(--bg);
    color: var(--ink)
}

.bar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 18px;
    font-size: 14px
}

.bar .i {
    width: auto
}

.ban {
    display: block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #8E5A5C, #5E3A3D);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--sh)
}

.ban h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin: 6px 0
}

.ban p {
    margin: 0 0 18px
}

.cdn {
    display: flex;
    gap: 12px;
    justify-content: center
}

.cdn div {
    background: #ffffff26;
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 66px
}

.cdn b {
    font: 500 28px Lora, serif;
    display: block
}

.cdn span {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px
}

.steps>div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    text-align: center
}

.steps b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--pill);
    color: var(--rose)
}

.steps p {
    margin: 6px 0 0;
    color: var(--mut)
}

.ig {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.ig h2 {
    color: var(--rose)
}

.ig p {
    margin: 0;
    color: var(--mut)
}

#cart {
    margin: 0 0 0 auto;
    height: 100dvh;
    max-height: 100dvh;
    width: min(430px, 100%);
    border: 0;
    border-radius: 22px 0 0 22px;
    padding: 0;
    background: var(--card);
    color: var(--ink)
}

#cart::backdrop {
    background: #2a1a1a99
}

.cin {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 20px;
    gap: 12px
}

.cl {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ln {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px
}

.lt {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex: none
}

.lt .ph {
    font-size: 11px;
    padding: 4px
}

.ln .q button {
    width: 36px;
    height: 36px;
    font-size: 16px
}

.rm {
    background: none;
    border: 0;
    min-height: 44px;
    font-size: 12px;
    color: var(--mut);
    text-decoration: underline
}

footer {
    border-top: 1px solid var(--line);
    background: var(--card);
    padding: 36px 0 96px;
    margin-top: 30px
}

.fg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px
}

.fg h3 {
    color: var(--rose);
    margin-bottom: 6px
}

.fg b {
    display: block;
    margin-bottom: 6px
}

.fg a {
    display: block;
    padding: 4px 0;
    color: var(--mut)
}

.fg p {
    margin: 0;
    color: var(--mut)
}

.wa {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: #128C4A;
    color: #fff;
    border-radius: 30px;
    padding: 13px 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    z-index: 15;
    box-shadow: var(--sh)
}

.ts {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 14px;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
}

.ts.on {
    opacity: 1
}

.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

.js .rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s, transform .6s
}

.js .rv.in {
    opacity: 1;
    transform: none
}

.rv.in {
    opacity: 1;
    transform: none
}

@media(prefers-reduced-motion:reduce) {

    .tr,
    .rv,
    .cc,
    .bi img {
        transition: none
    }

    .js .rv {
        opacity: 1;
        transform: none
    }

    html {
        scroll-behavior: auto
    }
}

.rv {
    opacity: 1;
    transform: none
}

html {
    scroll-behavior: auto
}

body[data-page="nosotras"] .hd {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body[data-page="nosotras"] .nosotras-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 18px;
}

body[data-page="nosotras"] .nosotras-logo img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: min(260px, 72vw);
    max-height: 150px;
    object-fit: contain;
}

body[data-page="nosotras"] .nosotras-logo .ph {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 20px;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--pill);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: background .2s, border-color .2s, transform .2s;
}

.theme-btn:hover {
    border-color: var(--rose);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

.theme-btn .ic-sun {
    display: none;
}

:root[data-theme="dark"] .theme-btn .ic-moon {
    display: none;
}

:root[data-theme="dark"] .theme-btn .ic-sun {
    display: block;
}