:root {
    --primary: #000000;
    --text: #ffffff;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #1d1e20;
    --black-friday-bg: #1a1a1a;
    --black-friday-text: #ffffff;
    /* --black-friday-gold: #FFD700; */
    --black-friday-gold: #9B2A35;
    --black-friday-card-bg: #2c2c2c;
    /* --black-friday-line: #FFD700; */
    --black-friday-line: #9B2A35;

}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    color: var(--text);
    background: var(--bg);
}



a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.carousel-section {
    padding: 2.5rem 1.5rem;
    margin: 0 auto 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    justify-content: center;
    max-width: 1500px;
    width: 100%;
    box-sizing: border-box;
}

.carousel-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    background: var(--primary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.875rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 auto;
}

.carousel-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    margin-top: 0;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    border-radius: 0.9375rem;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 60px 30px 30px;
    border-radius: 0 0 15px 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carousel-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 0px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 15px;
}

.carousel-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.carousel-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.carousel-price {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    display: none;
}

.carousel-controls:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.div2 {
    display: flex;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Progress bar */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    z-index: 5;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 100%;
    transform: translateX(-100%);
    transition: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-bar.animate {
    animation: progressAnimation 5s linear;
}

.second-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 50%;
    background-color: #000;
}

.article-second-content {
    border: 1px solid var(--black-friday-line);
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 12px;
    border-left: 8px solid var(--black-friday-gold);
}

.article-second-content img {
    width: 64px;
    height: 64px;
    filter: invert(1);
}

.left-zone {
    margin-left: 20px;
}

.left-zone h2 {
    margin-bottom: 0;
}

.left-zone p {
    margin-top: 12px;
}

.card-actions {
    text-align: center !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn, .add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: auto;
    min-width: 150px;
    padding: 8px 16px;
    margin: 0;
}

.logo {
    position: relative;
    z-index: 10;
    max-width: 300px;
    height: auto;
    margin-right: 2rem;
}

.logo-img {
    width: 100%;
    height: auto;
    max-height: 110px; /* Aumentado de 80px */
    object-fit: contain;
}

@keyframes progressAnimation {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0%);
    }
}

.hero {
    background: #000;
    color: #fff;
    padding: 15px 0;
    border-bottom: 4px solid var(--black-friday-gold);
    position: relative;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 28px;
    position: relative;
    z-index: 2;
}

.hero .logo {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    margin-top: 28px;
}

.hero .logo img {
    height: 85px; 
    width: auto;
    display: block;
}

.header-2x1 {
    color: var(--black-friday-gold);
    font-size: 64px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-sub {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    color: #eee;
    max-width: 80%;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .second-content2 {
        width: 100%;
        max-width: none !important;
    }

    .carousel-section {
        flex-direction: column;
        align-items: center;
        padding: 0 128px;
        padding-top: 48px;
    }
    
    .carousel-container {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .carousel-inner {
        height: 22rem;
    }
    
    .carousel-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .carousel-inner {
        height: 20rem;
    }
    
    .carousel-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 15px 0;
    }
    
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .header-2x1 {
        font-size: 48px;
        margin: 5px 0;
    }
    
    .hero .logo img {
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-sub {
        font-size: 14px;
        max-width: 100%;
        margin: 0 auto;
    }
}

.search {
    position: relative;
    margin-top: 18px;
}

.search input {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: none;
    padding: 0 104px 0 14px;
    font-size: 16px;
    color: #111;
}

.search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 16px;
    background: #ffffff22;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.search button:hover {
    background: #ffffff33;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    padding: 28px 0 40px;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.card-media {
    width: 100%;
    aspect-ratio: 16/9;
    background: #ddd center/cover no-repeat;
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    height: 42px;
    overflow: hidden;
    color: var(--bg);
}

.card-meta {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f9fafb;
    color: #374151;
}

.badge.primary {
    background: #fff2f3;
    color: var(--primary);
    border-color: #ffdfe1;
}

.price {
    margin-left: auto;
    font-weight: 800;
    color: var(--primary);
}

.card-actions {
    padding: 12px 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(0.95);
}

.empty {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    color: var(--muted);
}

/* footer { border-top: 1px solid var(--border); padding: 18px 0; color: #6b7280; font-size: 14px; } */


.footer_wrapper {
    background: #111;
    color: #fff;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

#footer:after,
/* .footer_seo:after{ content:''; clear:both; width:100%; display:block;} */
.footer_seo {
    width: 100%;
    font-size: 13px;
    color: #fff;
    padding: 20px 0px;
    display: flex;
}

.footer_seo a,
.footer_data a {
    color: #fff !important;
    text-decoration: none;
}

.footer_seo .tit.col-4-3.foot_progs {
    float: left;
    width: 75%;
}

.footer_seo .tit.foot_cust {
    width: 25%;
    float: left;
}

.footer_seo .tit.col-4-3.foot_progs .column0,
.tit.col-4-3.foot_progs .column1 {
    width: 50%;
    float: left;
    margin: 0;
}

.footer_seo .tit.col-4-3.foot_progs .column0 li,
.tit.col-4-3.foot_progs .column1 li {
    padding-bottom: 7px;
}

.footer_data {
    margin: 20px 50px 0 50px;
    padding: 20px 0px 10px;
    border-top: 1px solid #fff;
    clear: both;
    font-size: 10px;
}

.footer_social {
    display: none;
}

.footer_seo .tit.col-4-3.foot_progs .column0 ul,
.footer_seo .tit.col-4-3.foot_progs .column1 ul {
    padding-left: 0px;
}

.patrocinadores {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 0px;
}

.patrocinadores img {
    width: 100%;
    height: auto;
}

.logos_enae_fuerm_rm {
    width: 90%;
    max-width: 550px;
    margin: 40px auto;
    display: block;
}

.block__content {
    display: flex;
    justify-content: center;
}

#block-block-26 {
    background-color: #111;
}


.img-wrap {
    height: 100%;
}

.img-wrap img {
    height: 100% !important;
    object-fit: cover;
}

.search-btn {
    background-color: var(--primary) !important;
}


@media (max-width: 900px) {
    .carousel-section {
        padding: 1.5rem 1rem;
    }
    
    .carousel-container {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .carousel-inner {
        height: 18rem;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .carousel-caption {
        padding: 0.75rem 1rem 1.5rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .carousel-caption p {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        padding: 1rem 0.75rem;
    }
    
    .carousel-container {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .carousel-inner {
        height: 15rem;
    }
    
    .carousel-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.8125rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    .carousel-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .carousel-inner {
        height: 18rem;
    }

    .carousel-caption h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .carousel-caption p {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-controls {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    @media (max-width: 500px) {
        #footer {
            flex-direction: column;
        }

        .hero-inner {
            flex-direction: column;
            text-align: center;
            gap: 15px;
            padding: 10px 20px;
        }
        
        .header-2x1 {
            font-size: 42px;
            margin: 5px 0;
        }
        
        .hero .logo img {
            height: 60px;
            margin: 0 auto;
            margin-right: 12px;
        }

        .header-2x1 {
            margin-top: 12px;
            font-size: 80px !important;
        }
        
        .hero-content {
            text-align: center;
        }
        
        .hero-title {
            font-size: 20px;
        }
        
        .hero-sub {
            font-size: 14px;
            max-width: 100%;
            margin: 0 auto;
        }

        .logo {
            margin: 0 0 20px 0;
        }
    }
}


/* animaciones */
.card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation-fill-mode: both;
    will-change: opacity, transform;
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.card.animate-fade-left {
    animation: fadeLeft 0.6s ease-out forwards;
}

.card.animate-fade-right {
    animation: fadeRight 0.6s ease-out forwards;
}

.card.animate-zoom {
    animation: zoomIn 0.5s ease-out forwards;
}

.card.animate-slide-up {
    animation: slideUp 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(164, 38, 44, 0.15);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
}

.card-start-date {
    position: absolute;
    top: 45px;
    right: -35px;
    background: var(--black-friday-gold);
    color: var(--black-friday-bg);
    padding: 4px 30px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    min-width: 80px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(15deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {

    .card,
    .card:hover {
        transition: none;
        animation: none;
    }

    .card {
        opacity: 1;
        transform: none;
    }
}


body {
    background-color: var(--black-friday-bg);
    color: var(--black-friday-text);
}

.hero {
    background-color: #000;
    border-bottom: 4px solid var(--black-friday-gold);
    padding: 15px 0;
}

.hero-title,
.hero-sub {
    color: var(--black-friday-text);
}

.search input[type="text"] {
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
}

.search-btn,
.btn.secondary,
.carousel-btn.secondary {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.card {
    background: var(--black-friday-card-bg);
    border: 1px solid #444;
    color: var(--black-friday-text);
}

.card-title,
.price,
.carousel-title,
.second-content h2,
main h3 {
    color: var(--black-friday-text);
}

.btn.add-to-cart-btn,
.carousel-btn.add-to-cart-btn {
    background-color: var(--black-friday-gold);
    color: #fff;
    font-weight: bold;
    border: none;
}

.header-2x1 {
    color: var(--black-friday-gold);
    font-size: 100px;
    text-align: center;
}

.header-2x1::after {
    content: "en cursos";
    color: var(--black-friday-gold);
    text-align: center;
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 24px;
}

.add-to-cart-btn:disabled {
    background-color: #555 !important;
    color: #888 !important;
    cursor: not-allowed;
}

.black-friday-banner {
    background-color: var(--black-friday-gold);
    color: #000;
    text-align: center;
    padding: 1rem;
    font-weight: bold;
    font-size: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.black-friday-banner h1 {
    margin: 0;
    font-size: 2rem;
    text-transform: uppercase;
}

/* Estilos para botones del carrusel */
.carousel-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    width: 100%;
}

.carousel-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.carousel-btn.add-to-cart-btn.in-cart {
    background-color: #28a745;
    color: white;
}


.cart-icon-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

.cart-icon {
    background-color: #fff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: #000;
    /* Color del ícono */
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FFD700;
    color: #000;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background-color: rgb(255, 253, 249);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    color: #333;
}

#cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

#close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

#cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.cart-item-price {
    font-weight: bold;
    color: #000;
}

.cart-item-price.free {
    text-decoration: line-through;
    color: #999;
}

.free-badge {
    background-color: #28a745;
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
}

#cart-promo-message {
    background-color: #eef7ff;
    color: #004085;
    border: 1px solid #b8daff;
    padding: 1rem;
    margin: 0 1rem 1rem;
    border-radius: 8px;
    text-align: center;
}

#cart-promo-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.remove-from-cart-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0;
}

.second-content2 {
    max-width: 50%;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1e1e 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.second-content2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29-22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM60 91c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM35 41c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM12 60c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z' fill='%23ffd700' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
}

.divisor {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.p-black {
    font-size: 6rem;
    font-weight: 900;
    color: var(--black-friday-gold);
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.p-black::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--black-friday-gold);
    border-radius: 2px;
}

.p-week {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 1rem 0 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.span-black1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 30px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.span-black2 {
    background: var(--black-friday-gold);
    color: #000;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.countdown-container {
    margin: 1.5rem 0;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
    max-width: 600px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    perspective: 200px;
}

.countdown-number.number-flip {
    animation: flipNumber 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    display: inline-block;
}

.h1prueba {
    text-align: center;
    margin-top: 32px;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Helvetica Neue', sans-serif;
}

@keyframes flipNumber {
    0% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotateX(90deg) scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
    }
}

/* Alternativa: Efecto de slide */
@keyframes slideNumber {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0;
    }
    51% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.countdown-item span:first-child {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    min-width: 2ch;
    text-align: center;
    display: inline-block;
    padding: 0 5px;
}

.countdown-label {
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.countdown-separator {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    margin: 0 5px;
    padding-top: 15px;
}

/* Responsive styles for countdown */
@media (max-width: 900px) {
    .countdown-item span:first-child {
        font-size: 2rem;
        min-width: 60px;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 2px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.5rem;
        min-width: 50px;
        padding: 5px 2px;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        padding-top: 8px;
    }
}

.span-black2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.black-friday-dates {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(155, 42, 53, 0.15);
    border-radius: 30px;
    border: 1px solid rgba(155, 42, 53, 0.3);
    box-shadow: 0 4px 15px rgba(155, 42, 53, 0.15);
}

.black-friday-title {
    font-size: 3rem;
    color: #fff;
    margin: 1.5rem 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #9B2A35, #d43f4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.black-friday-description {
    font-size: 1.3rem;
    color: #f0f0f0;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0 1.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: center;
}

.black-friday-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.black-friday-header {
    position: relative;
    z-index: 2;
    text-align: center;
}

@media (min-width: 900px) {
    .hero-title.span-black1 {
        display: none;
    }

    .hero-title.h1prueba {
        display: block !important;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .black-friday-title {
        font-size: 2.2rem;
    }
    
    .black-friday-dates {
        font-size: 1.2rem;
        padding: 0.4rem 1.2rem;
    }
    
    .black-friday-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .second-content2 {
        padding: 2rem 1.5rem;
    }
    
    .black-friday-title {
        font-size: 1.8rem;
    }
    
    .black-friday-dates {
        font-size: 1rem;
        padding: 0.3rem 1rem;
    }
    
    .black-friday-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .black-friday-description::before,
    .black-friday-description::after {
        font-size: 1rem;
        margin: 0 5px;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .p-black {
        font-size: 5rem;
    }
    
    .p-week {
        font-size: 2.2rem;
    }
    
    .span-black1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 900px) {
    .second-content2 {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
    }
    
    .p-black {
    .p-week {
        font-size: 2rem;
    }

    .black-friday-dates {
        font-size: 1.2rem;
    }

    .black-friday-title {
        font-size: 1.8rem;
    }

    .black-friday-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .p-black,
    .p-week {
        font-size: 1.8rem;
    }

    .black-friday-dates {
        font-size: 1rem;
    }

    .black-friday-title {
        font-size: 1.5rem;
    }

    .black-friday-description {
        font-size: 1rem;
    }
}

.remove-from-cart-btn:hover {
    color: #E60000;
    text-decoration: underline;
}

.cart-empty-message {
    text-align: center;
    padding: 2rem;
    color: #777;
}




.add-to-cart-btn.in-cart {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    cursor: default;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-actions .btn {
    flex: 1 1 auto;
} }

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--black-friday-gold);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}


.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
}
