:root {
            --primary-dark-red: #C80F36;
            --primary-light-red: #F86773;
            --primary-pink: #FA6AAB;
            --dark-accent: #A30C2D;
            --light-accent: #FBCFD2;
            --dark-background: #1a1a1a;
            --text-color-light: #f0f0f0;
            --text-color-dark: #333333;
            --section-background-dark: #2a2a2a;
            --border-color: var(--primary-dark-red);
            --primary-dark-red-rgb: 200, 15, 54;
            --transition-duration: 0.3s;
            --transition-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --box-shadow: 0 10px 30px rgba(var(--primary-dark-red-rgb), 0.1);
            --box-shadow-hover: 0 15px 35px rgba(var(--primary-dark-red-rgb), 0.2);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f9f9f9;
            color: var(--text-color-dark);
            line-height: 1.6;
        }


.top-bar {
    background-color: var(--primary-dark-red);
    color: #FDFCFC;
    padding: 0.8rem 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.top-bar h3{
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.top-bar a {
    color: #FDFCFC;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}



.follow-text {
    font-weight: 600;
    color: #231123;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    width: auto; /* Was 1200px */
}

.social-icons a {
    font-size: 1.7rem;
}

/* Animaciones para redes sociales del header */
.social-icons a {
    position: relative;
    transition: all 0.5s ease;
}

.social-icons a:nth-child(1) { animation: float 4s ease-in-out infinite; }
.social-icons a:nth-child(2) { animation: float 4s ease-in-out infinite 0.5s; }
.social-icons a:nth-child(3) { animation: float 4s ease-in-out infinite 1s; }

/* Asegúrate de que la animación float esté definida (si no la tienes ya) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Mejora los hover existentes */
.social-icons a:hover {
    color: #c30f45;
    transform: scale(1.1) translateY(-5px);
    animation: none; /* Detiene la animación al hacer hover para un efecto más controlado */
}



.social-icons .separator {
    opacity: 0.5;
    color: #231123;
}

.social-icons .social-links{
    text-decoration: none;
    font-size: 1rem;
    color: #231123;
    font-weight: 500;

}

.top-links {
    display: flex;
    gap: 1rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

header {
    background: #FDFCFC;
    box-shadow: 0 4px 12px rgba(238, 12, 12, 0.152);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo img {
    height: 150px;
    width: 450px;
    max-width: 180%;
    transition: transform 0.3s ease;
    margin-right: 10rem;
}

.nav-logo img:hover {
    transform: scale(1.05);
}


.icons-bar{
    display: flex;
    align-items: center; /* Alinear social icons y toggle de búsqueda verticalmente */
    /* flex-direction: column; ELIMINADO */
    /* width: 80%; ELIMINADO o ajustar si es necesario */
    gap: 1rem; /* Espacio entre social-icons y área de búsqueda, si son hijos directos */
}

.social-icons i {
    color: #231123;
        transition: transform 0.3s ease;
}


.social-icons i:hover {
    color: #c30f45;
    transform: scale(1.05);
}

/* Estilos para el botón de activación de búsqueda (icono de lupa) */
.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem; 
    font-size: 1.2rem; 
    color: var(--text-color-dark); 
    display: flex; 
    align-items: center;
    justify-content: center;
}

.search-toggle-btn:hover {
    color: var(--primary-dark-red);
}

/* Contenedor de búsqueda real (input + botón) */
.search-container {
    /* display: flex; Se elimina display:flex de aquí, se controla con .active */
    align-items: center; /* Mantener la alineación interna */
    max-width: 500px; /* Se mantiene para el estado no-absoluto si alguna vez se usa así */
}

.search-container:not(.active) {
    display: none; 
}

.search-container.active {
    display: flex; 
    position: absolute;
    top: 100%; 
    left: 0;
    right: 0; 
    width: 100%; 
    max-width: none !important; 
    background-color: #FDFCFC; 
    z-index: 1010; 
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
}

.search-container.active .search-input {
    flex-grow: 1;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-family: 'Poppins', sans-serif;
}

.search-button {
    background-color: var(--primary-dark-red);
    color: #FDFCFC;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--dark-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #231123;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all var(--transition-duration) var(--transition-timing);
    font-family: "Montserrat";
    font-size: 1.2rem;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light-red);
    transition: width var(--transition-duration) var(--transition-timing);
}

.nav-links a:hover {
    color: var(--primary-light-red);
    text-shadow: 0 0 8px rgba(var(--primary-dark-red-rgb), 0.5);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-cart {
    position: relative;
    background-color: transparent;
    border-radius: 4px;
    width: auto; /* Was 500px */
    transition: all 0.3s ease;
    margin-left: 1rem; /* Added to push cart to the right */
}

.nav-cart a {
    color: var(--text-color-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

.nav-cart:hover {
    background-color: transparent;
    transform: scale(1.05);
}

.nav-cart #cart-count {
    color: var(--primary-dark-red);
    font-weight: bold;
}


        /* Main Content */
        main {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 5%;
            animation: fadeIn 0.6s var(--transition-timing);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Checkout Section */
        #checkout-section {
            display: flex;
            gap: 2rem;
            margin-bottom: 4rem;
        }

        #checkout-form-container {
            flex: 2;
            background: white;
            border-radius: 12px;
            box-shadow: var(--box-shadow);
            overflow: hidden;
            transition: transform var(--transition-duration) var(--transition-timing);
        }

        #checkout-form-container:hover {
            transform: translateY(-5px);
            box-shadow: var(--box-shadow-hover);
        }

        #order-summary-container {
            flex: 1;
            position: relative;
        }

        #order-summary-sticky {
            position: sticky;
            top: 120px; /* Existing top value */
            margin-top: 5rem; /* Added margin to push it down */
            background: white;
            border-radius: 12px;
            box-shadow: var(--box-shadow);
            padding: 2rem;
            transition: transform var(--transition-duration) var(--transition-timing);
        }

        #order-summary-sticky:hover {
            transform: translateY(-5px);
            box-shadow: var(--box-shadow-hover);
        }

        /* Checkout Steps */
        .checkout-steps {
            display: flex;
            justify-content: space-between;
            position: relative;
            padding: 2rem 2rem 1rem;
            background: linear-gradient(135deg, var(--primary-dark-red), var(--primary-pink));
            color: white;
        }

        .checkout-steps:before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background-color: rgba(255, 255, 255, 0.2);
        }

        .checkout-step {
            position: relative;
            text-align: center;
            flex: 1;
            padding-bottom: 1.5rem;
            font-weight: 500;
            opacity: 0.7;
            transition: all var(--transition-duration) var(--transition-timing);
        }

        .checkout-step.active {
            opacity: 1;
            font-weight: 600;
        }

        .checkout-step:not(:last-child):after {
            content: '';
            position: absolute;
            top: 50%;
            right: -50%;
            width: 100%;
            /* height: 2px; */
            /* background-color: rgba(255, 255, 255, 0.3); */
            transform: translateY(-50%);
        }

        .checkout-step.active:not(:last-child):after {
            /* background-color: white; */
        }

        .checkout-step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            margin-bottom: 0.5rem;
            font-weight: bold;
            transition: all var(--transition-duration) var(--transition-timing);
        }

        .checkout-step.active .checkout-step-number {
            background-color: white;
            color: var(--primary-dark-red);
            transform: scale(1.1);
        }

        .checkout-step.completed .checkout-step-number {
            background-color: white;
            color: var(--primary-dark-red);
        }

        .checkout-step.completed .checkout-step-number:before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
        }

        /* Form Styles */
        .checkout-form-step {
            padding: 2rem;
            display: none;
            animation: fadeIn 0.4s var(--transition-timing);
        }

        .checkout-form-step.active {
            display: block;
        }

        .checkout-form-step h3 {
            color: var(--primary-dark-red);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
    text-align: center; /* Centrar título */
        }

        .checkout-form-step h3:after {
            content: '';
            position: absolute;
            bottom: 0;
    left: 50%; /* Centrar la línea debajo del título */
    transform: translateX(-50%); /* Ajuste fino para centrar la línea */
            width: 50px;
            height: 3px;
            background: linear-gradient(to right, var(--primary-dark-red), var(--primary-pink));
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--dark-background);
        }

        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="tel"],
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all var(--transition-duration) var(--transition-timing);
            background-color: #f9f9f9;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-light-red);
            box-shadow: 0 0 0 3px rgba(var(--primary-dark-red-rgb), 0.1);
            background-color: white;
        }

        .form-group .input-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }

        /* Payment Methods */
        #payment-methods {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .payment-method {
            display: flex;
            align-items: center;
            padding: 1rem;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all var(--transition-duration) var(--transition-timing);
            background-color: #f9f9f9;
        }

        .payment-method:hover {
            border-color: var(--primary-light-red);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .payment-method.selected {
            border-color: var(--primary-dark-red);
            background-color: var(--light-accent);
        }

        .payment-method input[type="radio"] {
            margin-right: 1rem;
            accent-color: var(--primary-dark-red);
            transform: scale(1.2);
        }

        .payment-method-icon {
            margin-right: 1rem;
            font-size: 1.5rem;
            color: var(--primary-dark-red);
        }

        .payment-method-details {
            flex: 1;
        }

        .payment-method-name {
            font-weight: 500;
            margin-bottom: 0.2rem;
        }

        .payment-method-description {
            font-size: 0.85rem;
            color: #666;
        }

        /* Bank Transfer Details */
        #bank-transfer-details {
            margin-top: 1rem;
            padding: 1.5rem;
            background-color: #f9f9f9;
            border-radius: 8px;
            border: 1px dashed var(--primary-light-red);
            animation: fadeIn 0.4s var(--transition-timing);
        }

        #bank-transfer-details p {
            margin-bottom: 0.5rem;
        }

        #bank-transfer-details p:last-child {
            margin-bottom: 0;
        }

        /* Form Buttons */
        .form-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid #eee;
        }

        .form-buttons button {
            padding: 1rem 2rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition-duration) var(--transition-timing);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .form-buttons .prev-btn {
            background-color: #f0f0f0;
            color: var(--text-color-dark);
        }

        .form-buttons .prev-btn:hover {
            background-color: #e0e0e0;
            transform: translateX(-3px);
        }

        .form-buttons .next-btn,
        .form-buttons .submit-btn {
            background: linear-gradient(135deg, var(--primary-dark-red), var(--primary-pink));
            color: white;
            box-shadow: 0 4px 15px rgba(var(--primary-dark-red-rgb), 0.3);
        }

        .form-buttons .next-btn:hover,
        .form-buttons .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(var(--primary-dark-red-rgb), 0.4);
        }

        .form-buttons .submit-btn {
            background: linear-gradient(135deg, var(--dark-accent), var(--primary-dark-red));
        }

        /* Order Summary */
        #order-summary-checkout h4 {
            color: var(--primary-dark-red);
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            position: relative;
            padding-bottom: 0.5rem;
    text-align: center; /* Centrar título */
        }

        #order-summary-checkout h4:after {
            content: '';
            position: absolute;
            bottom: 0;
    left: 50%; /* Centrar la línea debajo del título */
    transform: translateX(-50%); /* Ajuste fino para centrar la línea */
            width: 50px;
            height: 3px;
            background: linear-gradient(to right, var(--primary-dark-red), var(--primary-pink));
        }

        .checkout-order-items-list {
            margin-bottom: 1.5rem;
            max-height: 300px;
            overflow-y: auto;
            padding-right: 0.5rem;
        }

        .checkout-order-items-list::-webkit-scrollbar {
            width: 6px;
        }

        .checkout-order-items-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .checkout-order-items-list::-webkit-scrollbar-thumb {
            background: var(--primary-light-red);
            border-radius: 10px;
        }

        .checkout-summary-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #f0f0f0;
            transition: transform 0.2s ease;
        }

        .checkout-summary-item:hover {
            transform: translateX(5px);
        }

        .checkout-summary-item:last-child {
            margin-bottom: 0;
            border-bottom: none;
        }

        .checkout-summary-item-image {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            margin-right: 1rem;
            border: 1px solid #eee;
        }

        .checkout-summary-item-details {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .checkout-summary-item-name {
            font-size: 0.95rem;
            font-weight: 500;
            margin-bottom: 0.3rem;
            color: var(--dark-background);
        }

        .checkout-summary-item-price {
            font-size: 0.9rem;
            color: #666;
        }

        .checkout-summary-item-quantity {
            font-size: 0.85rem;
            color: #999;
        }

        #total-line-checkout {
            font-weight: 600;
            font-size: 1.2rem;
            padding-top: 1rem;
            border-top: 2px solid var(--primary-light-red);
            margin-top: 1rem;
            display: flex;
            justify-content: space-between;
        }

        #checkout-shipping-options-container h4 {
            margin-bottom: 1rem;
            color: var(--primary-dark-red); /* Consistent heading color */
            text-align: center; /* Centrar título */
        }
        /* Si este h4 también tiene una línea ::after, se necesitaría un ajuste similar para centrarla */
        /* Asumiendo que no la tiene por ahora, o que si la tiene, el centrado del texto es suficiente */

        #checkout-shipping-options-container {
            margin: 2rem 0;
            padding: 1.5rem;
            border: 2px solid var(--primary-dark-red);
            border-radius: 8px;
            background-color: #fff; /* Light background for contrast */
            box-shadow: 0 4px 12px rgba(var(--primary-dark-red-rgb), 0.1);
        }

        .shipping-option {
            display: flex;
            align-items: center;
            padding: 1rem;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 1rem;
            background-color: #f9f9f9;
            transition: all var(--transition-duration) var(--transition-timing);
        }
        .shipping-option:last-child {
            margin-bottom: 0;
        }

        .shipping-option:hover {
            border-color: var(--primary-light-red);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .shipping-option input[type="radio"] {
            margin-right: 1rem;
            accent-color: var(--primary-dark-red); /* Modern way to style radio buttons */
            transform: scale(1.3); /* Make radio slightly larger */
            cursor: pointer;
        }

        .shipping-option label {
            flex: 1;
            font-weight: 500;
            color: var(--text-color-dark);
            cursor: pointer;
        }

        .shipping-option span {
            font-weight: 500;
            color: var(--primary-dark-red);
        }


        /* Confirmation Step */
        #confirmation-details {
            background-color: #f9f9f9;
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
        }

        #confirmation-details p {
            margin-bottom: 1rem;
            display: flex;
        }

        #confirmation-details p:last-child {
            margin-bottom: 0;
        }

        #confirmation-details strong {
            min-width: 120px;
            display: inline-block;
            color: var(--primary-dark-red);
        }

        /* Floating Action Buttons */
        .floating-action-buttons {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            z-index: 999;
        }

        .floating-cart-btn,
        .floating-whatsapp-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            position: relative;
            text-decoration: none;
        }

        .floating-cart-btn {
            background: linear-gradient(135deg, var(--primary-dark-red), var(--primary-pink));
        }

        .floating-whatsapp-btn {
            background: #C80F36;
        }

        .floating-cart-btn:hover,
        .floating-whatsapp-btn:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        #floating-cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--primary-light-red);
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }

/* Footer Styles */
footer {
    background: #231123;
    color: var(--text-color-light);
    padding: 3rem 5% 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #FDFCFC;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--primary-light-red);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-light-red);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #FDFCFC;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-light-red);
}

.footer-column ul li a:hover {
    color: var(--primary-light-red);
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #FDFCFC;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-light-red);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 0.8rem;
    background: var(--primary-light-red);
    color: #FDFCFC;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark-red);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Modal Styles */
.footer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #231123;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-light-red);
}

.footer-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #FDFCFC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-light-red);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--primary-light-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Scrollbar styling for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-light-red);
    border-radius: 4px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.footer-social a:nth-child(1) { animation: float 4s ease-in-out infinite; }
.footer-social a:nth-child(2) { animation: float 4s ease-in-out infinite 0.5s; }
.footer-social a:nth-child(3) { animation: float 4s ease-in-out infinite 1s; }
.footer-social a:nth-child(4) { animation: float 4s ease-in-out infinite 1.5s; }

/* Responsive */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo-section {
        align-items: center;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column ul li a:hover {
        padding-left: 0;
    }
    
    .footer-column ul li a::before {
        display: none;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

        /* Responsive Design */
        @media (max-width: 992px) {
            #checkout-section {
                flex-direction: column;
            }
            
            #order-summary-sticky {
                position: static;
                margin-top: 2rem;
            }
        }

        @media (max-width: 768px) {
            .top-bar {
                padding: 0.8rem 1rem;
                flex-direction: column;
                gap: 0.5rem;
                text-align: center;
            }
            .top-bar h3 {
                font-size: 0.8rem;
            }

            .navbar {
                padding: 1rem;
                display: flex;
                flex-direction: column;
                align-items: center; 
                gap: 1rem;
            }
            
            .nav-links {
                /* gap: 1rem; */
                display: none; /* Ocultar nav-links principales en móvil */
            }

            .nav-logo img { /* Mover aquí desde global o asegurar que estos valores apliquen */
                height: 75px;
                width: auto;
                margin-right: 1rem; /* O margin: 0 auto; si se centra completamente */
                /* order: 1; implícito o se puede añadir */
            }

            .hamburger-button { /* Para el menú de categorías */
                display: block !important; 
                position: absolute;
                top: 34px; 
                right: 1rem; 
                z-index: 1002; 
            }
            /* Asumir que .hamburger-button span hereda color rojo de style.css o se añade aquí si es necesario */
            /* .hamburger-button span { background-color: var(--primary-dark-red); } */

            .icons-bar {
                display: flex; /* Asegurar que es flex */
                align-items: center; /* Alinear verticalmente */
                justify-content: space-between; 
                width: 100%; 
                order: 2; /* Después del logo */
                /* gap: 1rem; ya está globalmente */
            }

            .social-icons {
                display: flex !important; /* Hacer visible y asegurar flex */
                align-items: center;
                gap: 0.5rem; 
                justify-content: flex-start; 
                flex-grow: 1; 
                margin-bottom: 0; 
            }
            .social-icons .follow-text {
                display: none; 
            }
            .social-icons a { 
                font-size: 1rem; 
            }
            .social-icons .social-links { 
                font-size: 0.8rem;
            }
            .social-icons .separator {
                margin: 0 0.25rem; 
            }
            .navbar .nav-cart a { /* Carrito del header */
                font-size: 0.9rem;
            }
            .navbar .nav-cart #cart-count {
                font-size: 0.7rem; 
            }

            .search-toggle-btn {
                font-size: 1.1rem; 
                padding: 0.4rem; 
                /* order: 2; /* Si .social-icons y .search-toggle-btn son hijos directos de .icons-bar y se quiere un orden específico */
            }

            /* El .search-container (input+botón) se maneja por .active y position:absolute globalmente. */
            /* Los estilos para .search-input y .search-button dentro de .search-container.active: */
            .search-container.active {
                padding: 0.8rem; /* Padding más pequeño para la barra activa en móvil */
            }
            .search-container.active .search-input,
            .search-container.active .search-button {
                font-size: 0.9rem; /* Tamaños ya definidos en style.css para 768px, asegurar consistencia */
                padding: 0.5rem 0.8rem; 
            }
            .search-container.active .search-button i {
                font-size: 0.9rem;
            }
            
            .checkout-steps {
                flex-direction: column;
                align-items: flex-start;
                padding: 1.5rem;
            }
            
            .checkout-step {
                text-align: left;
                padding: 0.5rem 0;
                margin-bottom: 0.5rem;
                display: flex;
                align-items: center;
                width: 100%;
            }
            
            .checkout-step-number {
                margin-right: 1rem;
                margin-bottom: 0;
            }
            
            .checkout-step:not(:last-child):after {
                display: none;
            }
            
            .form-buttons {
                flex-direction: column-reverse;
                gap: 1rem;
            }
            
            .form-buttons button {
                width: 100%;
                justify-content: center;
            }
        }

        /* Animations */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .pulse-animation {
            animation: pulse 1.5s infinite;
        }

        /* Loading Spinner */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Success Animation */
        .success-checkmark {
            width: 80px;
            height: 80px;
            margin: 0 auto;
            position: relative;
        }

        .success-checkmark .check-icon {
            width: 80px;
            height: 80px;
            position: relative;
            border-radius: 50%;
            box-sizing: content-box;
            border: 4px solid var(--primary-light-red);
            background-color: white;
        }

        .success-checkmark .check-icon:before {
            top: 3px;
            left: -2px;
            width: 30px;
            transform-origin: 100% 50%;
            border-radius: 100px 0 0 100px;
        }

        .success-checkmark .check-icon:after {
            top: 0;
            left: 30px;
            width: 60px;
            transform-origin: 0 50%;
            border-radius: 0 100px 100px 0;
            animation: rotate-circle 4.25s ease-in;
        }

        .success-checkmark .check-icon:before,
        .success-checkmark .check-icon:after {
            content: '';
            height: 100px;
            position: absolute;
            background: transparent;
            transform: rotate(-45deg);
        }

        .success-checkmark .check-icon .icon-line {
            height: 5px;
            background-color: var(--primary-dark-red);
            display: block;
            border-radius: 2px;
            position: absolute;
            z-index: 10;
        }

        .success-checkmark .check-icon .icon-line.line-tip {
            top: 46px;
            left: 14px;
            width: 25px;
            transform: rotate(45deg);
            animation: icon-line-tip 0.75s;
        }

        .success-checkmark .check-icon .icon-line.line-long {
            top: 38px;
            right: 8px;
            width: 47px;
            transform: rotate(-45deg);
            animation: icon-line-long 0.75s;
        }

        @keyframes icon-line-tip {
            0% { width: 0; left: 1px; top: 19px; }
            54% { width: 0; left: 1px; top: 19px; }
            70% { width: 50px; left: -8px; top: 37px; }
            84% { width: 17px; left: 21px; top: 48px; }
            100% { width: 25px; left: 14px; top: 45px; }
        }

        @keyframes icon-line-long {
            0% { width: 0; right: 46px; top: 54px; }
            65% { width: 0; right: 46px; top: 54px; }
            84% { width: 55px; right: 0px; top: 35px; }
            100% { width: 47px; right: 8px; top: 38px; }
        }

        @keyframes rotate-circle {
            0% { transform: rotate(-45deg); }
            5% { transform: rotate(-45deg); }
            12% { transform: rotate(-405deg); }
            100% { transform: rotate(-405deg); }
        }

        .payment-method.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.payment-method.disabled:hover {
    transform: none !important;
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
}

.payment-method.disabled .payment-method-icon,
.payment-method.disabled .payment-method-name,
.payment-method.disabled .payment-method-description {
    color: #999 !important;
}

.payment-method.disabled .payment-method-description {
    color: var(--primary-dark-red) !important;
    font-weight: 500;
}
