:root {
    --pink: #e0338b;
    --purple: #c4206f;
    --purple-dk: #a3175a;
    --ink: #2a1020;
    --ink2: #6b2145;
    --gray: #8a6577;
    --line: #f3cfe0;
    --soft: #fdeaf3;
    --panel: #fcdce9;
    --serif: 'Playfair Display', Georgia, serif;
    --script: 'Dancing Script', 'Brush Script MT', cursive
}

* {
    box-sizing: border-box
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth
    }
}

/* El nav es sticky: dejar aire para que las anclas no queden tapadas */
main [id] {
    scroll-margin-top: 110px
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.6
}

h1,
h2,
h3 {
    font-family: 'Josefin Sans', 'Quicksand', sans-serif;
    font-weight: 400;
    line-height: 1.2
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 0 0 .5em
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 1.2em 0 .6em
}

a {
    color: var(--purple)
}

img {
    max-width: 100%;
    display: block
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5vw;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 1px 0 var(--line)
}

.logo img {
    height: 72px;
    width: auto
}

.nav nav {
    display: flex;
    gap: 32px
}

.nav nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 16px
}

.nav nav a:hover {
    color: var(--ink2);
    text-decoration: underline
}

.burger {
    display: none;
    font-size: 28px;
    cursor: pointer
}

.btn {
    display: inline-block;
    background: var(--purple);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 12px 28px;
    font: 700 16px 'Quicksand', sans-serif;
    text-decoration: none;
    cursor: pointer
}

.btn:hover {
    background: var(--purple-dk)
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px
}

.btn.ghost {
    background: #fff;
    color: var(--purple);
    border: 2px solid var(--purple)
}

.flash {
    padding: 12px 5vw;
    text-align: center;
    background: #e6f6f1;
    color: #008361
}

.flash.err {
    background: #ffe8ef;
    color: #d63163
}

.error {
    background: #ffe8ef;
    color: #d63163;
    padding: 8px 12px;
    border-radius: 6px
}

.ok {
    background: #e6f6f1;
    color: #008361;
    padding: 10px 14px;
    border-radius: 6px
}

.section {
    max-width: 1224px;
    margin: 0 auto;
    padding: 48px 24px
}

.section.narrow {
    max-width: 800px
}

.center {
    text-align: center
}

.page-title {
    text-align: center
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1224px;
    margin: 0 auto;
    padding: 48px 24px
}

.hero-text p {
    font-size: 1.05rem
}

.carousel {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--soft)
}

.carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s
}

.carousel img.on {
    opacity: 1
}

.carousel::before,
.carousel::after,
.card-media::before,
.card-media::after,
.wm::before,
.wm::after {
    content: "";
    position: absolute;
    pointer-events: none;
    background: url(../img/logo_sweetmv.png) no-repeat
}

.carousel::before,
.card-media::before,
.wm::before {
    inset: -50%;
    z-index: 1;
    background-repeat: repeat;
    background-size: 90px;
    background-position: center;
    transform: rotate(-30deg);
    opacity: .28;
    mix-blend-mode: soft-light
}

.carousel::after,
.card-media::after,
.wm::after {
    right: 10px;
    bottom: 10px;
    width: 20%;
    aspect-ratio: 1/1;
    z-index: 2;
    background-position: center;
    background-size: contain;
    opacity: .85;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .7))
}

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

.dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(15, 10, 20, .35);
    padding: 0;
    cursor: pointer
}

.dots button.on {
    background: var(--ink)
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px
}

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

.card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff
}

.card img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.card-body h3 {
    margin: 0 0 6px;
    font-size: 1.4rem
}

.card-body p {
    margin: 0 0 12px;
    color: var(--gray);
    font-size: .95rem
}

.card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.flavors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px
}

.flavors img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px
}

.flavors figure {
    margin: 0
}

.contact-form {
    display: grid;
    gap: 16px
}

.contact-form label {
    display: grid;
    gap: 4px;
    font-weight: 700;
    font-size: .95rem
}

input,
textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 100%
}

input:focus,
textarea:focus {
    outline: 2px solid var(--purple);
    border-color: transparent
}

.hp {
    position: absolute;
    left: -9999px
}

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

blockquote {
    margin: 0;
    padding: 24px;
    background: var(--soft);
    border-radius: 12px;
    font-size: 1.1rem
}

cite {
    display: block;
    margin-top: 8px;
    color: var(--gray);
    font-size: .9rem
}

.table {
    width: 100%;
    border-collapse: collapse
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left
}

.qty {
    width: 70px
}

.hint {
    color: var(--gray);
    font-size: .9rem
}

footer {
    background: var(--soft);
    margin-top: 48px;
    padding: 36px 5vw 88px
}

.footer-grid {
    max-width: 1224px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px
}

.footer-grid h3 {
    margin: 0 0 8px
}

.footer-grid p {
    margin: 0
}

.footer-contact {
    min-width: 0;
    overflow-wrap: anywhere
}

.footer-contact p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 8px;
    font-size: .9rem;
    font-weight: 700
}

.footer-instagram svg {
    flex-shrink: 0
}

.footer-actions {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    max-width: 260px
}

.footer-shortcuts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px
}

footer a {
    color: var(--ink);
    text-decoration: none
}

.footer-floating {
    position: fixed;
    left: 16px;
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px
}

.ig {
    color: var(--pink)
}

@media(max-width:768px) {

    .hero,
    .two-col {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .burger {
        display: block
    }

    .nav nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 8px 5vw;
        box-shadow: 0 8px 12px rgba(0, 0, 0, .08)
    }

    .nav nav a {
        padding: 12px 0
    }

    #menu-toggle:checked~nav {
        display: flex
    }
}

.wa-float {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    font: 700 15px 'Quicksand', sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25)
}

.wa-float:hover {
    background: #1ebe5b
}

.wa-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #128c4a;
    font-weight: 700;
    font-size: .9rem
}

.steps {
    list-style: none;
    counter-reset: s;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 0;
    margin: 0
}

.steps li {
    counter-increment: s;
    background: var(--soft);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    gap: 6px
}

.steps li::before {
    content: counter(s);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700
}

.steps strong {
    font-size: 1.2rem
}

.hero-text .btn {
    margin: 0 8px 8px 0
}

/* Botones de la entrada pegados: solo el color los distingue */
.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    margin: 0 8px 8px 0;
    vertical-align: middle
}

.btn-group .btn {
    margin: 0;
    border-radius: 0
}

.btn-group .btn:first-child {
    border-radius: 6px 0 0 6px
}

.btn-group .btn:last-child {
    border-radius: 0 6px 6px 0
}

.btn-group .btn:only-child {
    border-radius: 6px
}

.btn-group .btn+.btn {
    border-left: 0
}

.hero-text p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 16px 0 20px
}

.badges li {
    background: #fff4f9;
    border: 1px solid #f6bfd8;
    color: var(--ink2);
    font-size: .85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--purple);
    color: #fff;
    padding: 10px 16px;
    z-index: 50;
    border-radius: 0 0 6px 0
}

.skip-link:focus {
    left: 0
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px
}

.card {
    transition: transform .2s, box-shadow .2s
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(196, 32, 111, .18)
}

.card-media {
    position: relative;
    overflow: hidden
}

.wm {
    position: relative;
    overflow: hidden;
    border-radius: 8px
}

.wm img {
    display: block
}

.card-media img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pink);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px
}

.flavors figcaption {
    margin-top: 6px;
    font-weight: 700;
    font-size: .95rem;
    text-align: center
}

.stars {
    display: block;
    color: #d99a00;
    letter-spacing: 2px;
    font-size: 1rem
}

.cat-index {
    position: sticky;
    top: 96px;
    z-index: 5;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    padding: 8px 0
}

.cat-index a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    text-decoration: none;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700
}

.cat-index a:hover {
    border-color: var(--purple)
}

.count {
    font-size: .8em;
    color: var(--gray);
    font-weight: 400
}

.carousel .car-prev,
.carousel .car-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    line-height: 1
}

.carousel .car-prev {
    left: 10px
}

.carousel .car-next {
    right: 10px
}

.cart-table-wrap {
    overflow-x: auto
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px
}

.cart-item img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex: none
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 20px 0;
    text-align: left
}

.info-box {
    background: var(--soft);
    border-radius: 12px;
    padding: 16px
}

.info-box strong {
    font-size: 1rem
}

.info-box p {
    margin: 6px 0 0;
    color: var(--ink2);
    font-size: .92rem
}

@media(max-width:640px) {
    .cart-table thead {
        display: none
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%
    }

    .cart-table tr {
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 8px 12px
    }

    .cart-table td {
        border: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--gray);
        font-size: .85rem
    }

    .cart-table tfoot td {
        justify-content: flex-end
    }
}

@media(max-width:480px) {
    .wa-float span {
        display: none
    }

    .wa-float {
        padding: 14px
    }
}

@media(prefers-reduced-motion:reduce) {
    .carousel img {
        transition: none
    }

    .card {
        transition: none
    }

    .card:hover {
        transform: none
    }
}

/* ===== Estilo "Menú comida casera": rosa degradado, serif en cursiva, paneles suaves ===== */
body {
    background: var(--soft) radial-gradient(60vw 40vh at 0 0, #f3ccdc 0, transparent 70%) no-repeat, radial-gradient(50vw 40vh at 100% 0, #fdeaf3 0, transparent 70%) no-repeat;
    background-attachment: fixed
}

h1,
h2,
h3 {
    font-family: var(--serif);
    color: var(--purple);
    font-weight: 700
}

h1 {
    font-style: italic;
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    background: linear-gradient(180deg, #e0338b, #a3175a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: .08em
}

h2 {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    font-size: clamp(1.4rem, 2.6vw, 2rem)
}

h2::after {
    content: "";
    display: block;
    width: 38px;
    height: 3px;
    background: var(--purple);
    margin-top: 8px;
    border-radius: 2px
}

h2.center::after,
.page-title::after {
    margin-left: auto;
    margin-right: auto
}

.nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px)
}

.nav nav a {
    font-weight: 700;
    color: var(--ink2);
    letter-spacing: .02em
}

.nav nav a:hover {
    color: var(--purple)
}

.btn {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 3px 10px rgba(196, 32, 111, .25)
}

.btn:hover {
    background: linear-gradient(135deg, var(--purple), var(--purple-dk))
}

.btn.ghost {
    background: #fff;
    box-shadow: none
}

.btn-group .btn:first-child {
    border-radius: 999px 0 0 999px
}

.btn-group .btn:last-child {
    border-radius: 0 999px 999px 0
}

.btn-group .btn:only-child {
    border-radius: 999px
}

.carousel {
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(196, 32, 111, .18)
}

.card {
    border: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, var(--soft));
    box-shadow: 0 4px 18px rgba(196, 32, 111, .10)
}

.card-body h3 {
    font-style: italic;
    font-size: 1.35rem
}

.card-foot strong {
    color: var(--purple);
    font-size: 1.1rem
}

.badge {
    background: linear-gradient(135deg, var(--pink), var(--purple))
}

.badges li {
    border-radius: 999px;
    background: var(--panel);
    border: 0;
    color: var(--purple-dk)
}

.flavors img,
.wm {
    border-radius: 16px
}

.steps li,
.info-box,
blockquote {
    background: linear-gradient(180deg, #fff, var(--soft));
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(196, 32, 111, .08)
}

.steps li::before {
    background: linear-gradient(135deg, var(--pink), var(--purple))
}

.steps strong {
    font-family: var(--serif);
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1.1rem
}

.cat-index {
    background: rgba(255, 255, 255, .92)
}

.cat-index a {
    background: var(--soft);
    border: 0;
    color: var(--purple-dk)
}

.cat-index a:hover {
    background: var(--panel)
}

input,
textarea {
    border-radius: 12px;
    background: #fff
}

.table th {
    color: var(--purple);
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .05em
}

.cart-table tr {
    background: var(--soft);
    border-color: transparent
}

.script {
    font-family: var(--script);
    font-size: 1.6rem;
    color: var(--purple);
    line-height: 1.2
}

footer {
    background: linear-gradient(180deg, var(--soft), #fde8e8);
    border-radius: 40px 40px 0 0
}

footer .footer-grid h3 {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1.1rem
}

footer a:hover {
    color: var(--purple)
}

.footer-bottom {
    max-width: 1224px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px
}

.footer-script {
    margin: 0;
    font-size: 1.4rem
}

.footer-copyright {
    margin: 0;
    color: var(--ink2);
    font-size: .8rem;
    line-height: 1.6
}

.footer-copyright strong {
    font-weight: 700
}

.wa-float {
    box-shadow: 0 4px 14px rgba(196, 32, 111, .25)
}

#install-app {
    display: block;
    margin: 0
}

#install-app[hidden],
#install-help[hidden] {
    display: none
}

.footer-grid #to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--purple)
}

.footer-grid #to-top:hover {
    background: var(--panel);
    color: var(--purple-dk)
}

#install-help {
    max-width: 220px;
    margin: 0;
    text-align: center
}

@media(max-width:640px) {
    footer {
        padding: 28px 24px 88px;
        border-radius: 28px 28px 0 0
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center
    }

    .footer-actions {
        justify-self: center;
        text-align: center
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-top: 24px
    }

    .footer-script {
        font-size: 1.25rem
    }
}

img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none
}