
.favicon {
    width: 16px;
    height: 16px;
    margin: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: #f9f4ed;
}

.hero-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #3f1d7a, #5a2ca0, #7d57d9);
    box-shadow: 0 4px 14px rgba(54, 32, 100, 0.2);
    padding: 12px 20px 18px;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
}

.menu-principal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 8px;
    width: 100%;
}

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

.buscador-wrap {
    display: flex;
    justify-content: flex-start;
    min-width: 180px;
    flex: 1;
}

.search-input {
    width: min(320px, 100%);
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item,
.menu-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border-radius: 10px;
}

.nav-item:hover,
.menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-item {
    color: #fff;
}

.nav-item:visited {
    color: #fff;
}

.nav-item::after,
.menu-button::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #ffd76a;
    transition: width 0.2s ease;
    position: absolute;
    left: 16px;
    bottom: 6px;
}

.nav-item:hover::after,
.menu-button:hover::after {
    width: calc(100% - 32px);
}

.nav-item.categorias-menu,
.nav-item.marcas-menu {
    position: relative;
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 20;
}

.submenu-categorias {
    left: 0;
}

.submenu-marcas {
    left: 0;
}

.nav-item:hover .submenu,
.categorias-menu:hover .submenu,
.marcas-menu:hover .submenu,
.menu-button:focus + .submenu,
.menu-button:focus-visible + .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 10px 18px;
    color: #3d2a6d;
    text-decoration: none;
    font-weight: 600;
}

.submenu a:hover {
    background: #f2ebff;
}

.slider-productos {
    background: linear-gradient(135deg, #4d1c7a, #6d3bb6);
    padding: 28px 20px 36px;
    margin-top: 30px;
}

.slider-header {
    max-width: 1100px;
    margin: 0 auto 16px;
}

.slider-header h2 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    text-align: left;
}

.slider-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 8px 18px;
    flex: 1;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 240px;
    width: 240px;
    min-height: 350px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e4d7ff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(84, 47, 146, 0.08);
    text-align: center;
    flex-shrink: 0;
}

.product-card.hidden {
    display: none;
}

.product-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 180px;
}

.product-image-wrap img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border: none;
    background: transparent;
    border-radius: 0;
    margin: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.product-info h2 {
    margin: 0;
    color: #3d2a6d;
    font-size: 1.4rem;
}

.product-info p {
    margin: 0;
    color: #5a2ca0;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-agregar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #5b2bb6, #7d57d9);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(91, 43, 182, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-agregar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(91, 43, 182, 0.35);
}

.slider-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #4d1c7a;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #fff;
}

.search-empty {
    margin: 20px 40px;
    color: #5a2ca0;
    font-weight: 700;
}

.container {
    display: none;
}

.titulo {
    font-size: 52px;
    color: #fff;
    text-align: center;
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.descripcion {
    color: #6d5ae0;
    text-align: left;
    margin-top: 15px;
    font-family: 'Georgia', serif;
    font-size: 22px;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 12px 18px;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.35);
}

img {
    width: 25px;
    height: auto;
    margin-right: 0px;
    border: 1px solid #4f1bb1;
    cursor: pointer;
    margin: 0 auto;
    border-radius: 5px;
    color: #1b7ab1;
}

.btn {
    padding: 12px 10px;
    border: none;
    border-radius: 10px;
    background: #55a8a8;
    color: rgb(236, 120, 120);
    cursor: pointer;
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: static;
    transform: none;
    background: #f7d79f;
    color: #3f1d7a;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-banner img {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 0;
    margin: 0;
}

.cart-label {
    font-size: 14px;
}

.carrito-page {
    padding: 40px 20px;
    background: #f9f4ed;
    min-height: 100vh;
}

.carrito-container {
    max-width: 1100px;
    margin: 0 auto;
}

.carrito-titulo {
    font-size: 2.4rem;
    color: #3f1d7a;
    margin-bottom: 24px;
    text-align: center;
}

.carrito-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.carrito-productos,
.carrito-resumen {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(69, 42, 107, 0.08);
    padding: 20px;
}

.carrito-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.carrito-lista li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee3ff;
}

.carrito-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.carrito-item-info img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border: 1px solid #e2d7ff;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    margin: 0;
}

.carrito-item-nombre {
    font-weight: 700;
    color: #3d2a6d;
}

.carrito-item-precio {
    color: #5a2ca0;
    font-weight: 600;
}

.btn-eliminar {
    background: #fce6e6;
    color: #a63b3b;
    border: 1px solid #f1c1c1;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.carrito-resumen h2 {
    color: #3f1d7a;
    margin-top: 0;
    margin-bottom: 18px;
}

.opciones-envio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f0ff;
    border-radius: 10px;
    padding: 10px 12px;
    color: #3d2a6d;
    font-weight: 600;
}

.campo-envio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #3d2a6d;
    font-weight: 600;
    margin-bottom: 18px;
}

.campo-envio select {
    padding: 10px 12px;
    border: 1px solid #d4c3ff;
    border-radius: 10px;
    background: #fff;
    color: #3d2a6d;
    font-size: 1rem;
}

.resumen-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f7f1ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.fila {
    display: flex;
    justify-content: space-between;
    color: #3d2a6d;
}

.fila.total {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #dcc7ff;
    font-size: 1.1rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    margin-top: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background: #3f1d7a;
    color: #fff;
}

.btn-secondary {
    background: #e8dafd;
    color: #3f1d7a;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-eliminar:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    box-sizing: border-box;
}

#carrito-total {
    display: none;
}

@media (max-width: 760px) {
    .hero-banner {
        padding: 10px 12px 14px;
    }

    .hero-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .buscador-wrap {
        width: 100%;
        flex: none;
        min-width: 0;
    }

    .search-input {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-banner {
        align-self: stretch;
        width: auto;
        justify-content: center;
        padding: 8px 12px;
        min-width: 104px;
    }

    .btn-banner img {
        width: 18px;
        height: 18px;
    }

    .cart-label {
        font-size: 12px;
    }

    .menu-principal {
        justify-content: center;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 10px;
    }

    .nav-item,
    .menu-button {
        width: auto;
        min-width: auto;
        font-size: 12px;
        padding: 7px 9px;
        text-align: center;
        white-space: nowrap;
    }

    .submenu {
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        min-width: 150px;
        max-width: 170px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        border: 1px solid #e9defd;
        z-index: 30;
    }

    .titulo {
        font-size: 38px;
    }

    .slider-container {
        gap: 8px;
    }

    .slider-track {
        gap: 14px;
    }

    .product-card {
        min-width: 210px;
        width: 210px;
    }

    .catalogo-productos {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .carrito-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 10px 12px 14px;
    }

    .titulo-wrap {
        margin: 6px 0 10px;
    }

    .titulo {
        font-size: 30px;
    }

    .slider-productos {
        padding: 20px 12px 28px;
    }

    .slider-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .slider-container {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        align-items: center;
    }

    .slider-prev {
        grid-column: 1;
        justify-self: center;
    }

    .slider-track {
        grid-column: 2;
        min-width: 0;
        padding: 6px 0 14px;
    }

    .slider-next {
        grid-column: 3;
        justify-self: center;
    }

    .product-card {
        min-width: 170px;
        width: 170px;
        min-height: 310px;
        padding: 16px 12px;
    }

    .product-image-wrap {
        min-height: 140px;
    }

    .product-image-wrap img {
        width: 130px;
        height: 130px;
    }

    .product-info h2 {
        font-size: 1.1rem;
    }

    .btn-agregar {
        max-width: 100%;
        font-size: 13px;
        padding: 11px 12px;
    }

    .catalogo-productos {
        grid-template-columns: 1fr;
    }

    .carrito-lista li {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-item-info {
        width: 100%;
    }
}

.lapiz {
    width: 180px;
    height: 180px;
}

.comprar1,
.comprar2 {
    display: none;
}

.cuaderno {
    width: 180px;
    height: 180px;
}

#contador-carrito {
    display: block;
    margin-top: 6px;
    color: #3f1d7a;
    font-weight: 700;
    font-size: 14px;
}

.page-donas {
    background: #fff7fb;
}

.hero-banner-donas {
    background: linear-gradient(90deg, #6a1b9a, #8e44ad, #c084fc);
}

.donas-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.donas-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: center;
    padding: 20px 0 26px;
}

.donas-hero__text {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid #efd9ff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(134, 78, 180, 0.08);
}

.eyebrow {
    margin: 0 0 10px;
    color: #7e57c2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.donas-hero__text h2,
.section-title-wrap h3,
.checkout-header h3 {
    margin: 0 0 12px;
    color: #3d2a6d;
    font-size: clamp(2rem, 3vw, 3rem);
}

.donas-hero__text p {
    color: #533b87;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
}

.cta-primary {
    background: linear-gradient(135deg, #5b2bb6, #8d5ae8);
    color: white;
}

.cta-secondary {
    background: #f3e8ff;
    color: #4a2c7d;
}

.donas-hero__card {
    background: linear-gradient(160deg, #fff4d8, #ffe2ef);
    border: 1px solid #f2d5c5;
    border-radius: 24px;
    padding: 22px 20px;
    box-shadow: 0 15px 30px rgba(191, 116, 161, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mini-badge {
    align-self: flex-start;
    background: #fff;
    color: #7e57c2;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 12px;
}

.mini-illustration {
    font-size: 6rem;
    text-align: center;
}

.mini-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5d3a8e;
    padding-top: 10px;
    border-top: 1px solid rgba(93, 58, 142, 0.15);
}

.donas-menu {
    margin-top: 28px;
}

.section-title-wrap {
    margin-bottom: 20px;
}

.donas-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 20px;
}

.dona-card {
    background: white;
    border: 1px solid #f0e0ff;
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow: 0 10px 20px rgba(114, 82, 163, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dona-visual {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 5rem;
    background: linear-gradient(135deg, #fff3df, #f9e5ff);
}

.visual-clasica { background: linear-gradient(135deg, #fff3df, #f9e5ff); }
.visual-chocolate { background: linear-gradient(135deg, #f2d7c2, #f7e6d5); }
.visual-rellena { background: linear-gradient(135deg, #ffd9e6, #ffe5d2); }
.visual-cafe { background: linear-gradient(135deg, #e6d0b8, #f7eee5); }

.dona-info h4 {
    margin: 0 0 8px;
    color: #3d2a6d;
    font-size: 1.3rem;
}

.dona-info p {
    margin: 0 0 12px;
    color: #65528d;
    line-height: 1.5;
    font-size: 0.96rem;
}

.dona-info span {
    display: inline-block;
    color: #6c3c9c;
    font-size: 1.15rem;
    font-weight: 700;
}

.dona-btn,
.btn-pagar,
.metodo,
.btn-eliminar-dona {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
}

.dona-btn {
    background: linear-gradient(135deg, #5b2bb6, #8d5ae8);
    color: white;
    padding: 12px 14px;
    font-weight: 700;
}

.checkout-section {
    margin-top: 36px;
}

.checkout-panel {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #efd9ff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(93, 58, 142, 0.08);
}

.checkout-header {
    margin-bottom: 20px;
}

.pedido-lista {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pedido-lista li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #faf5ff;
    border: 1px solid #efddff;
    border-radius: 12px;
    padding: 12px 14px;
}

.pedido-vacio {
    color: #5f4794;
    font-weight: 600;
}

.pedido-nombre {
    display: block;
    color: #3d2a6d;
    font-weight: 700;
}

.pedido-lista small {
    color: #7355a5;
}

.btn-eliminar-dona {
    background: #fce8e8;
    color: #a23d48;
    padding: 8px 10px;
    font-weight: 700;
}

.resumen-total {
    background: #f5eeff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #452f7f;
    margin: 10px 0;
}

.fila.total {
    border-top: 1px solid #dcc7ff;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 1.08rem;
}

.metodos-pago {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.metodo {
    background: #f1ebff;
    color: #4e2b8c;
    padding: 10px 12px;
    font-weight: 700;
}

.metodo.active {
    background: #5b2bb6;
    color: white;
}

.pago-detalle {
    background: #fffaf1;
    border: 1px solid #f7e1b9;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.detalle-label {
    margin: 0 0 6px;
    color: #553a94;
    font-weight: 700;
}

.detalle-info {
    margin: 0;
    color: #68559c;
    line-height: 1.5;
}

.btn-pagar {
    width: 100%;
    background: linear-gradient(135deg, #f7a72b, #ffbf50);
    color: #3d2a6d;
    padding: 14px 16px;
    font-weight: 800;
    font-size: 1rem;
}

.donas-footer {
    text-align: center;
    padding: 22px 12px 40px;
    color: #5c3f8d;
    font-weight: 600;
}

@media (max-width: 900px) {
    .donas-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

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

@media (max-width: 560px) {
    .donas-main {
        padding-left: 12px;
        padding-right: 12px;
    }

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

    .metodos-pago {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
    }
}