
/* ==========================================
   VARIABLES
========================================== */

:root {
    --primary: #334155;
    --secondary: #0f172a;
    --background: #ffffff;
    --text: #333333;
    --soft: #f8fafc;
    --border: #eadce4;
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
}

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

[hidden] {
    display: none !important;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: auto;
}

/* ==========================================
   BARRA SUPERIOR ANIMADA
========================================== */

/* BARRA SUPERIOR */
.announcement {
    width: 100%;
    height: 35px;
    overflow: hidden;
    background: var(--primary);
}

/* LIMITAR Y CENTRAR EL ÁREA ANIMADA */
.announcement-track {
    display: flex;
    width: max-content;
    animation: anuncio 20s linear infinite !important;
}   

/* VENTANA CENTRADA DEL EFECTO */
.announcement {
    padding-left: max(0px, calc((100% - 1200px) / 2));
    padding-right: max(0px, calc((100% - 1200px) / 2));
}

.announcement-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    gap: 55px;
    padding: 0 28px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .5px;
}

@keyframes anuncio {
    to {
        transform: translateX(-50%);
    }
}

.announcement:hover .announcement-track {
    animation-play-state: paused;
}

/* ==========================================
   HEADER
========================================== */

.site-header {
    background: white;
    position: relative;
    z-index: 20;
}

.header-inner {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.site-logo {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    font-style: italic;
    color: var(--secondary);
    white-space: nowrap;
}

.site-logo span {
    color: var(--primary);
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 520px;
    height: 43px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    overflow: hidden;
}

.search-form select {
    width: 155px;
    border: 0;
    border-right: 1px solid var(--border);
    background: white;
    padding: 0 10px;
    font-size: 12px;
    color: var(--secondary);
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    font-size: 12px;
}

.search-form button {
    padding: 0 25px;
    background: var(--primary);
    color: white;
    border: 0;
    font-size: 12px;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-link {
    font-size: 22px;
    position: relative;
}

.cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 11px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 26px;
}

/* ==========================================
   NAVEGACIÓN
========================================== */

.main-nav {
    background: var(--primary);
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    min-height: 45px;
}

.nav-links a {
    font-size: 11px;
    font-weight: bold;
    padding: 15px 0;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* ==========================================
   HERO / BANNER
========================================== */

.hero {
    position: relative;
    height: 490px;
    overflow: hidden;
    background: #f1f5f9;
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-inner {
    width: min(100% - 100px, 1150px);
    height: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
}

.hero-content {
    text-align: center;
}

.hero-content .eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
    color: var(--secondary);
}

.hero-content h1,
.hero-content h2 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.1;
    margin: 18px 0;
    color: var(--secondary);
}

.hero-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.primary-button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--secondary);
    color: white;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.primary-button:hover {
    filter: brightness(.9);
}

.hero-image {
    width: 100%;
    height: 380px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    background: rgba(255,255,255,.25);
    border: 2px dashed rgba(160,60,110,.25);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-placeholder {
    color: var(--secondary);
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.8);
    border: 0;
    border-radius: 50%;
    color: var(--secondary);
    font-size: 20px;
}

.hero-prev { left: 15px; }
.hero-next { right: 15px; }

.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
}

.hero-dot.active {
    background: var(--secondary);
    width: 25px;
    border-radius: 10px;
}

/* ==========================================
   BENEFICIOS
========================================== */

.benefits {
    background: var(--soft);
    padding: 28px 0;
}

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

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.benefit-icon {
    font-size: 28px;
}

.benefit strong {
    font-size: 12px;
}

.benefit p {
    margin-top: 5px;
    font-size: 11px;
    color: #777;
}

/* ==========================================
   SECCIONES
========================================== */

.section {
    padding-top: 70px;
    padding-bottom: 70px;
}

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

.section-heading > span {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--secondary);
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(28px, 3vw, 40px);
    margin: 12px 0;
}

.section-heading p {
    font-size: 14px;
    color: #777;
}

/* ==========================================
   CATEGORÍAS
========================================== */

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

.category-card {
    text-align: center;
    cursor: pointer;
}

.category-image {
    height: 220px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #f1f5f9;
    overflow: hidden;
}

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

.category-card h3 {
    margin-top: 15px;
    font-size: 16px;
}

.category-card p {
    margin-top: 8px;
    font-size: 12px;
    color: var(--secondary);
}

/* ==========================================
   PRODUCTOS
========================================== */

.products-section {
    background: #f8fafc;
}

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

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 250px;
    position: relative;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53262;
    color: white;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

.product-info {
    padding: 18px;
}

.product-category {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 15px;
    margin-bottom: 12px;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.old-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.current-price {
    color: var(--secondary);
    font-size: 17px;
    font-weight: bold;
}

.add-cart {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.add-cart:hover {
    background: var(--secondary);
}

.empty-message {
    text-align: center;
    margin: 25px 0;
}

/* ==========================================
   PROMOCIÓN
========================================== */

.promotion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 45px;
    border-radius: 20px;
    background: #fcfafb;
}

.promotion-content > span {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--secondary);
}

.promotion-content h2 {
    font-family: Georgia, serif;
    font-size: 40px;
    margin: 15px 0;
}

.promotion-content p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.promotion-image {
    min-height: 290px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.3);
    border: 2px dashed rgba(150,50,100,.2);
    border-radius: 15px;
    overflow: hidden;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: contain;
}

/* ==========================================
   FOOTER
========================================== */

.site-footer {
    background: linear-gradient(
        125deg,
        #10009b 0%,
        #5420b5 40%,
        #a12cbb 75%,
        #ed4ca9 100%
    );

    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 18px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding: 20px;

    background: linear-gradient(
        110deg,
        #ff4fa3 0%,
        #9b5de5 50%,
        #00bbf9 100%
    );

    color: #ffffff;
    font-size: 12px;
}

/* ==========================================
   NOTIFICACIONES
========================================== */

.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 15px 20px;
    border-radius: 8px;
    background: #333;
    color: white;
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .25s;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width: 900px) {
    .header-inner {
        gap: 15px;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        height: 430px;
    }

    .hero-image {
        height: 300px;
    }

    .benefits-grid {
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   RESPONSIVE MÓVIL
========================================== */

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .header-inner {
        flex-wrap: wrap;
        min-height: 70px;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .site-logo {
        font-size: 22px;
    }

    .header-actions {
        margin-left: auto;
    }

    .search-form {
        order: 5;
        flex-basis: 100%;
        max-width: none;
    }

    .search-form select {
        width: 115px;
        font-size: 10px;
    }

    .search-form button {
        padding: 0 12px;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        box-shadow: 0 8px 15px #0002;
    }

    .main-nav.open {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
    }

    .nav-links a {
        padding: 12px;
    }

    .hero {
        height: 560px;
    }

    .hero-inner {
        width: calc(100% - 55px);
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        gap: 20px;
        padding-bottom: 40px;
    }

    .hero-image {
        height: 190px;
        width: 80%;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-arrow {
        width: 30px;
        height: 30px;
    }

    .hero-prev { left: 4px; }
    .hero-next { right: 4px; }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .benefit {
        justify-content: flex-start;
    }

    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .category-grid,
    .product-grid {
        gap: 12px;
    }

    .category-image {
        height: 145px;
    }

    .product-image {
        height: 175px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .current-price {
        font-size: 14px;
    }

    .promotion {
        grid-template-columns: 1fr;
        padding: 25px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .promotion-content h2 {
        font-size: 30px;
    }

    .promotion-image {
        min-height: 200px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================
   PÁGINA DEL CARRITO
========================================== */

.cart-page-header {
    background: white;
}

.cart-header-inner {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.continue-shopping {
    color: var(--secondary);
    font-size: 13px;
    font-weight: bold;
}

.cart-heading {
    background: #fffefe;
    text-align: center;
    padding: 15px;
}

.cart-heading h1 {
    font-size: 17px;
    letter-spacing: 2px;
}

.cart-page {
    padding-top: 55px;
    padding-bottom: 100px;
}

.cart-table-heading,
.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.cart-table-heading {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    font-weight: bold;
}

.cart-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cart-product-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #fbe4ee;
    border-radius: 8px;
    overflow: hidden;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-product-info h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.remove-item {
    background: none;
    border: none;
    color: #777;
    font-size: 12px;
    text-decoration: underline;
}

.cart-price,
.cart-line-total {
    font-size: 14px;
}

.quantity-control {
    display: flex;
    align-items: center;
    width: max-content;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 0;
    background: white;
}

.quantity-control span {
    min-width: 30px;
    text-align: center;
    font-size: 13px;
}

.cart-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 40px;
}

.cart-options label {
    display: block;
    margin: 20px 0 10px;
    font-size: 13px;
    font-weight: bold;
}

.cart-options textarea,
.coupon-controls input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 13px;
    outline-color: var(--primary);
}

.cart-options textarea {
    resize: vertical;
}

.coupon-controls {
    display: flex;
    gap: 8px;
}

.coupon-controls button {
    padding: 0 20px;
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 5px;
}

#couponMessage {
    margin-top: 10px;
    font-size: 12px;
    color: var(--secondary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 14px;
}

.total-row {
    border-top: 1px solid #ddd;
    padding-top: 18px;
    font-size: 18px;
}

.shipping-note {
    text-align: right;
    color: #888;
    font-size: 12px;
    margin-bottom: 25px;
}

.payment-reminder {
    padding: 20px;
    border: 1px solid #f2cddd;
    background: #fff6fa;
    border-radius: 10px;
    margin-bottom: 25px;
}

.payment-reminder p {
    margin-bottom: 6px;
    font-size: 13px;
}

.payment-reminder small {
    display: block;
    margin-bottom: 15px;
    color: #777;
}

.checkout-button {
    width: 100%;
    padding: 17px;
    border: 0;
    border-radius: 5px;
    background: #292929;
    color: white;
    font-size: 13px;
    font-weight: bold;
}

.checkout-button:hover {
    background: var(--secondary);
}

.checkout-message {
    margin-top: 12px;
    color: var(--secondary);
    font-size: 12px;
    text-align: center;
}

.empty-cart {
    padding: 60px 20px;
    text-align: center;
}

.empty-cart p {
    margin: 15px 0 25px;
}

@media (max-width: 700px) {
    .cart-page {
        padding-top: 25px;
        padding-bottom: 50px;
    }

    .cart-table-heading {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .cart-product {
        grid-column: 1 / -1;
    }

    .cart-product-image {
        width: 75px;
        height: 75px;
    }

    .cart-lower {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cart-header-inner {
        min-height: 70px;
    }
}


/* ==========================================
   DETALLE DEL PRODUCTO
========================================== */

.product-page {
    padding-top: 30px;
    padding-bottom: 90px;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    font-size: 12px;
    color: #888;
}

.product-breadcrumb a:hover {
    color: var(--secondary);
}

.product-cart-link {
    font-size: 15px;
    color: var(--secondary);
    font-weight: bold;
}

.product-cart-link span {
    background: var(--primary);
    color: white;
    padding: 4px 7px;
    border-radius: 50%;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-main-image {
    height: 480px;
    display: grid;
    place-items: center;
    background: #fce7f0;
    border-radius: 15px;
    overflow: hidden;
    color: var(--secondary);
    font-size: 14px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    padding: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.product-thumbnail.active {
    border: 2px solid var(--primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-category {
    display: block;
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-detail-info h1 {
    font-family: Georgia, serif;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.2;
    margin-bottom: 22px;
}

.product-detail-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.product-detail-prices strong {
    font-size: 29px;
    color: var(--secondary);
}

.detail-discount {
    background: #e63265;
    color: white;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.detail-description {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.stock-message {
    font-size: 13px;
    color: #398553;
    margin-bottom: 25px;
}

.detail-quantity {
    margin-bottom: 22px;
}

.detail-quantity label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
}

.detail-add-button {
    width: 100%;
    padding: 17px;
    background: var(--primary);
    border: 0;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.detail-add-button:hover {
    background: var(--secondary);
}

.detail-message {
    margin-top: 12px;
    font-size: 13px;
    color: #398553;
}

.detail-payment-benefits {
    margin-top: 30px;
    border: 1px solid #f2d6e3;
    border-radius: 10px;
    padding: 22px;
    background: #fff8fb;
}

.detail-payment-benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-payment-benefits > div:last-child {
    margin-bottom: 0;
}

.detail-payment-benefits span {
    font-size: 24px;
}

.detail-payment-benefits strong {
    font-size: 13px;
}

.detail-payment-benefits p {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

@media (max-width: 800px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-main-image {
        height: 380px;
    }
}

@media (max-width: 480px) {
    .product-main-image {
        height: 300px;
    }

    .product-thumbnail {
        width: 65px;
        height: 65px;
    }

    .product-detail-prices strong {
        font-size: 24px;
    }

    .product-page {
        padding-bottom: 50px;
    }
}



/* ==========================================
   BANNER COMPLETO - MI TIENDA STUDIO
========================================== */

.hero {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Imagen que ocupa todo el banner */
.hero-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Textos opcionales encima de la imagen */
.hero-banner-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 520px;
}

.hero-banner-content h2 {
    font-size: clamp(30px, 4vw, 60px);
}

.hero-banner-content p {
    margin: 15px 0;
}

/* Flechas */
.hero-arrow {
    z-index: 5;
}

/* Puntos inferiores */
.hero-dots {
    z-index: 5;
}

/* ==========================================
   BANNER PARA CELULARES
========================================== */

@media (max-width: 768px) {

    .hero {
        height: 300px;
    }

    .hero-banner-content {
        left: 7%;
        right: 7%;
        max-width: 85%;
    }

    .hero-banner-content h2 {
        font-size: 25px;
    }
}



/* ==========================================
   HEADER FIJO - LAS TRES BARRAS
========================================== */

/* 1. Barra de anuncios */
.announcement {
    position: sticky;
    top: 0;
    z-index: 1003;
}

/* 2. Encabezado con logo, buscador y carrito */
.site-header {
    position: sticky;
    top: 35px;
    z-index: 1002;
}

/* 3. Barra de navegación */
.main-nav {
    position: sticky;
    top: 120px;
    z-index: 1001;
}



/* ==========================================
   BARRA SUPERIOR - MOVIMIENTO INFINITO
========================================== */

.announcement {
    width: 100%;
    height: 35px;
    overflow: hidden;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
}

.announcement-track {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    animation: anuncioContinuo 20s linear infinite !important;
    will-change: transform;
}

.announcement-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    gap: 55px;
    padding: 0 28px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: bold;
}

/* Movimiento continuo */
@keyframes anuncioContinuo {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.announcement:hover .announcement-track {
    animation-play-state: running;
}

/* CENTRAR BARRA DE ANUNCIOS */

.announcement {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    animation: anuncioContinuo 20s linear infinite !important;
}

.announcement-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ALTURA PERSONALIZADA DEL BANNER */

.hero {
    height: 800px !important;
}

@media (max-width: 768px) {
    .hero {
        height: 400px !important;
    }
}


/* ==========================================
   CARRITO LATERAL DESLIZANTE
========================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .38s ease, visibility .38s;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .12);
}

.cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

body.drawer-active {
    overflow: hidden;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    border-bottom: 1px solid #eee;
}

.drawer-header h2 {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.drawer-header button {
    background: transparent;
    border: 0;
    font-size: 22px;
    color: #555;
}

.drawer-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 5px 20px;
}

.drawer-item {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid #eee;
}

.drawer-item-image {
    width: 90px;
    height: 100px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #f8f8f8;
    border-radius: 7px;
    overflow: hidden;
    font-size: 11px;
    color: #888;
}

.drawer-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drawer-item-info {
    flex: 1;
    min-width: 0;
}

.drawer-item-info h3 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 7px;
}

.drawer-item-price {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.drawer-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.drawer-quantity button {
    width: 32px;
    height: 30px;
    border: 0;
    background: #fff;
    font-size: 17px;
}

.drawer-quantity span {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
}

.drawer-remove {
    display: block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #888;
    font-size: 12px;
    text-decoration: underline;
}

.drawer-empty {
    text-align: center;
    padding: 65px 15px;
    color: #777;
    font-size: 14px;
}

.drawer-footer {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.drawer-subtotal {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
}

.drawer-footer p {
    font-size: 11px;
    line-height: 1.6;
    color: #888;
    margin-bottom: 18px;
}

.drawer-view-cart {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
}

.drawer-view-cart:hover {
    background: var(--secondary);
}

@media (max-width: 600px) {
    .cart-drawer {
        width: min(390px, 100%);
    }

    .drawer-header,
    .drawer-footer {
        padding: 18px 16px;
    }

    .drawer-items {
        padding: 5px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-drawer,
    .drawer-overlay {
        transition: none;
    }
}


/* ==========================================
   BARRA ANIMADA CENTRADA
========================================== */

.announcement {
    width: 100%;
    height: 35px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.announcement-window {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.announcement-track {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    animation: anuncio 20s linear infinite !important;
}

.announcement-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;
    gap: 55px;
    padding: 0 28px;
    white-space: nowrap;
}

@keyframes anuncio {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.announcement:hover .announce {
    animation-play-state: paused;
}


/* TAMAÑO DE ICONOS DE MEDIOS DE PAGO */
.site-footer .bi {
    font-size: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Camión */
.bi-truck {
    font-size: 28px;
}

/* Tarjeta */
.bi-credit-card {
    font-size: 22px;
}



/* ==========================================
   PÁGINA DE CATEGORÍAS
========================================== */

.back-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.back-categories:hover {
    text-decoration: underline;
}

.footerYear {
    font-size: 12px;
    color: #c21313;
    text-align: center;
    margin-top: 20px;
}

/* FONDO DE LA PARTE INFERIOR */

.footer-bottom {
    text-align: center;
    padding: 20px;

    background: linear-gradient(
        110deg,
        #ff4fa3 0%,
        #9b5de5 50%,
        #00bbf9 100%
    );

    color: #ffffff;
    font-size: 12px;
}

.footer-bottom span {
    color: inherit;
}
/* SOLO EL AÑO */

.footer-bottom #footerYear {
    color: #222222;
}

/* SOLO EL NOMBRE DE LA TIENDA */

.footer-bottom .nombre-footer {
    color: #ffffff
}


/* =====================================
   ANIMACIÓN TÍTULO OFERTAS ESPECIALES
===================================== */

@keyframes saltoOfertas {
    0%, 75%, 100% {
        transform: translateY(0);
    }

    82% {
        transform: translateY(-10px);
    }

    90% {
        transform: translateY(0);
    }

    95% {
        transform: translateY(-4px);
    }
}

#promociones .section-heading h2 {
    display: inline-block;
    animation: saltoOfertas 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    #promociones .section-heading h2 {
        animation: none;
    }
}


/* ANIMACIÓN DEL TÍTULO DE PROMOCIONES */

#promotionTitle {
    display: inline-block;
    transform-origin: center bottom;
    animation: promocionSalto 3s ease-in-out infinite;
}

@keyframes promocionSalto {
    0%, 65%, 100% {
        transform: translateY(0) scale(1);
    }

    72% {
        transform: translateY(-12px) scale(1.05);
    }

    80% {
        transform: translateY(0) scale(1);
    }

    86% {
        transform: translateY(-5px) scale(1.02);
    }

    93% {
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #promotionTitle {
        animation: none;
    }
}



/* ==========================================
   OFERTAS ESPECIALES - EFECTO TORNASOL
========================================== */

#productosTitulo {
    display: inline-block;
    font-weight: 800;
    text-align: center;
}

#productosTitulo .letra-tornasol {
    display: inline-block;

    background: linear-gradient(
        120deg,
        #ff1493,
        #a855f7,
        #2563eb,
        #06b6d4,
        #a855f7,
        #ff1493
    );

    background-size: 300% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        tornasolColor 3s linear infinite,
        tornasolSalto 3s ease-in-out infinite;

    animation-delay:
        calc(var(--i) * -0.09s),
        calc(var(--i) * 0.09s);
}

@keyframes tornasolColor {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }
}

@keyframes tornasolSalto {
    0%, 25%, 55%, 100% {
        transform: translateY(0);
    }

    35% {
        transform: translateY(-8px);
    }

    45% {
        transform: translateY(0);
    }
}

/* Texto PARA TI */

#productos .section-heading > span {
    display: inline-block;
    letter-spacing: 4px;
    font-weight: 800;
    animation: brilloParaTi 3s ease-in-out infinite;
}

@keyframes brilloParaTi {
    0%, 100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    #productosTitulo .letra-tornasol,
    #productos .section-heading > span {
        animation: none;
    }
}


/* =====================================
   CENTRAR PARA TI Y OFERTAS ESPECIALES
===================================== */

#productos .section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

#productos .section-heading > span {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
}

#productosTitulo {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
}



/* =====================================
   CATEGORÍAS - EFECTO TORNASOL
===================================== */

#categoriasTitulo {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 800;
}

#categoriasTitulo .letra-tornasol {
    display: inline-block;

    background: linear-gradient(
        120deg,
        #ff1493,
        #a855f7,
        #2563eb,
        #06b6d4,
        #a855f7,
        #ff1493
    );

    background-size: 300% 100%;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation:
        tornasolColor 3s linear infinite,
        tornasolSalto 3s ease-in-out infinite;

    animation-delay:
        calc(var(--i) * -0.09s),
        calc(var(--i) * 0.09s);
}

/* Mantener el título centrado */

#categorias .section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
    #categoriasTitulo .letra-tornasol {
        animation: none;
    }
}



/* ======================================
   EFECTOS DE TEXTO - MI REGALO
====================================== */

/* Título dorado animado */

#promotionTitle {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #b7791f,
        #ffd700,
        #fff3a0,
        #f59e0b,
        #b7791f
    );
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brilloDorado 4s linear infinite;
}

@keyframes brilloDorado {
    from {
        background-position: 200% center;
    }
    to {
        background-position: -200% center;
    }
}

/* PROMOCIÓN ESPECIAL */

#promociones .promotion-content > span {
    animation: brilloPromocion 3s ease-in-out infinite;
}

@keyframes brilloPromocion {
    0%, 100% {
        opacity: 0.65;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
    }
}

/* Descripción */

#promotionDescription {
    animation: aparecerDescripcion 1.2s ease-out both;
}

@keyframes aparecerDescripcion {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #promotionTitle,
    #promociones .promotion-content > span,
    #promotionDescription {
        animation: none;
    }
}



/* ==========================================
   AVISOS COMERCIALES PREMIUM
========================================== */

.comercio-aviso.aviso-contraentrega,
.comercio-aviso.aviso-regalo {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1120px;
    margin: 16px auto;
    padding: 18px 20px;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    font-family: Arial, sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .14);
    transition: transform .3s ease;
}

.comercio-aviso.aviso-contraentrega:hover,
.comercio-aviso.aviso-regalo:hover {
    transform: translateY(-3px);
}

/* ICONOS */

.comercio-aviso .aviso-icono {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    font-size: 24px;
}

/* TEXTOS */

.comercio-aviso .aviso-contenido {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.comercio-aviso .aviso-contenido strong {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
    transform-origin: left center;
    animation: latidoComercial 1.6s ease-in-out infinite;
}

.comercio-aviso .aviso-contenido span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================
   CONTRAENTREGA - VERDE LUMINOSO
========================================== */

.comercio-aviso.aviso-contraentrega {
    background:
        linear-gradient(#102c26, #102c26) padding-box,
        linear-gradient(
            110deg,
            #16c784,
            #b7ffe1,
            #078c69,
            #16c784
        ) border-box;

    background-size: 100% 100%, 300% 300%;
    animation: bordeComercial 4s linear infinite;
}

.aviso-contraentrega .aviso-icono {
    background: rgba(56, 245, 160, .14);
    color: #8bffd0;
}

.aviso-contraentrega .aviso-contenido strong {
    color: #a9ffd5;
    text-shadow: 0 0 10px rgba(80, 255, 169, .45);
}

.aviso-contraentrega .aviso-contenido span {
    color: #e0fff0;
}

/* ==========================================
   REGALO - EFECTO TORNASOL
========================================== */

.comercio-aviso.aviso-regalo {
    background:
        linear-gradient(#1b1733, #111a30) padding-box,
        linear-gradient(
            110deg,
            #ff54c8,
            #8058ff,
            #25d9f3,
            #ff54c8
        ) border-box;

    background-size: 100% 100%, 300% 300%;
    animation: bordeComercial 4s linear infinite;
}

.aviso-regalo .aviso-icono {
    background: rgba(188, 113, 255, .16);
    color: #ffb9ee;
    animation: iconoComercial 2.5s ease-in-out infinite;
}

.aviso-regalo .aviso-contenido strong {
    background: linear-gradient(
        90deg,
        #ff86dc,
        #c8a5ff,
        #76e9ff,
        #b6ffed,
        #ff86dc
    );

    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;

    animation:
        latidoComercial 1.6s ease-in-out infinite,
        letrasComerciales 3s linear infinite;
}

.aviso-regalo .aviso-contenido span {
    color: #e0dcf7;
}

/* ==========================================
   REFLEJO LUMINOSO
========================================== */

.comercio-aviso.aviso-contraentrega::after,
.comercio-aviso.aviso-regalo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255, 255, 255, .12) 50%,
        transparent 75%
    );

    transform: translateX(-120%);
    animation: reflejoComercial 5s ease-in-out infinite;
}

/* ==========================================
   ANIMACIONES
========================================== */

/* LETRAS QUE PALPITAN */

@keyframes latidoComercial {
    0%, 100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.06);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.035);
    }

    60% {
        transform: scale(1);
    }
}

/* BORDES TORNASOL */

@keyframes bordeComercial {
    0%, 100% {
        background-position: 0% 50%, 0% 50%;
    }

    50% {
        background-position: 0% 50%, 100% 50%;
    }
}

/* COLORES EN MOVIMIENTO SOBRE LAS LETRAS */

@keyframes letrasComerciales {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 300% 50%;
    }
}

/* ICONO FLOTANTE */

@keyframes iconoComercial {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* BRILLO QUE RECORRE LA TARJETA */

@keyframes reflejoComercial {
    0%, 20% {
        transform: translateX(-120%);
    }

    65%, 100% {
        transform: translateX(120%);
    }
}

/* ==========================================
   ADAPTACIÓN A CELULARES
========================================== */

@media (max-width: 600px) {
    .comercio-aviso.aviso-contraentrega,
    .comercio-aviso.aviso-regalo {
        padding: 14px;
        gap: 10px;
    }

    .comercio-aviso .aviso-icono {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .comercio-aviso .aviso-contenido strong {
        font-size: 12px;
    }

    .comercio-aviso .aviso-contenido span {
        font-size: 11px;
    }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
    .comercio-aviso.aviso-contraentrega,
    .comercio-aviso.aviso-regalo,
    .comercio-aviso .aviso-contenido strong,
    .comercio-aviso .aviso-icono,
    .comercio-aviso::after {
        animation: none;
    }
}


/* ==========================================
   TÍTULO TODOS LOS PRODUCTOS - TORNASOL
========================================== */

.titulo-tornasol {
    display: table;
    max-width: 100%;
    margin: 25px auto;
    text-align: center;

    font-size: clamp(28px, 5vw, 46px);
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.3;

    background: linear-gradient(
        90deg,
        #ff36b5,
        #8b5cf6,
        #00d9ff,
        #24e6a8,
        #ff36b5
    );

    background-size: 300% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    animation:
        movimientoTornasol 4s linear infinite,
        palpitarTitulo 2s ease-in-out infinite;

    transform-origin: center;
}

/* COLORES EN MOVIMIENTO */

@keyframes movimientoTornasol {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* LATIDO SUAVE */

@keyframes palpitarTitulo {
    0%, 100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.025);
    }

    60% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .titulo-tornasol {
        animation: none;
    }
}
