/* Estilos específicos para el proceso de checkout */

/* Variables que complementan las del archivo styles.css */
:root {
    --step-inactive-color: #CED7D8;
    --step-active-color: var(--secondary-color);
    --step-completed-color: var(--primary-color);
    --border-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 20px rgba(47, 97, 171, 0.08);
    --hover-shadow: 0 12px 25px rgba(47, 97, 171, 0.15);
    --transition: all 0.3s ease;
    --input-bg: #f8f9fa;
    --light-bg: #f9fbfd;
}

/* Estructura principal del checkout */
.checkout-main {
    padding: 120px 0 60px;
    background-color: var(--light-bg);
    min-height: 100vh;
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Indicador de progreso */
.progress-container {
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--step-inactive-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--step-inactive-color);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--step-inactive-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.step-text {
    color: var(--step-inactive-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.step.active .step-number {
    border-color: var(--step-active-color);
    color: var(--step-active-color);
    box-shadow: 0 0 0 5px rgba(47, 97, 171, 0.1);
}

.step.active .step-text {
    color: var(--step-active-color);
    font-weight: 600;
}

.step.completed .step-number {
    background-color: var(--step-completed-color);
    border-color: var(--step-completed-color);
    color: white;
}

.step.completed .step-text {
    color: var(--step-completed-color);
}

.progress-bar {
    height: 8px;
    background-color: var(--step-inactive-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Resumen del plan seleccionado */
.selected-plan-summary {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plan-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.change-plan-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.change-plan-link:hover {
    text-decoration: underline;
}

.plan-details {
    display: flex;
    align-items: center;
}

.plan-icon {
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon img {
    max-width: 100%;
    max-height: 100%;
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.plan-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.plan-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 500;
}

.discount-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
}

.hidden {
    display: none !important;
}

/* Contenido de los pasos */
.steps-content {
    width: 100%;
    position: relative;
    min-height: 450px;
}

.step-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.step-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulario de personalización */
.checkout-form {
    width: 100%;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex-basis: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: var(--input-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(80, 190, 208, 0.15);
    outline: none;
}

.form-group select option:disabled {
    color: #aaa;
    font-style: italic;
    background-color: #f5f5f5;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.phone-input-container {
    display: flex;
}

.phone-input-container select {
    width: 120px;
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.phone-input-container input {
    border-radius: 0 8px 8px 0;
    flex: 1;
}

/* Postal code input container with button */
.postal-code-container {
    position: relative;
    display: flex;
    align-items: center;
}

.postal-code-container input {
    padding-right: 125px; /* Make room for the button */
}

.ver-disponibilidad-btn {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Additional Bottles Selector Styles */
.section-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.additional-bottles-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f9fbfd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.counter-btn.minus-btn {
    font-weight: bold;
}

.counter-btn.plus-btn {
    font-weight: bold;
}

#additional-bottles {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: white;
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard */
}

/* Chrome, Safari, Edge, Opera */
#additional-bottles::-webkit-outer-spin-button,
#additional-bottles::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
#additional-bottles[type=number] {
    -moz-appearance: textfield;
}

.bottle-price {
    text-align: center;
    font-size: 1rem;
    color: #555;
}

#additional-bottle-price-display {
    color: var(--secondary-color);
    font-weight: 600;
}

.bottle-total {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.bottle-total span {
    color: var(--secondary-color);
    font-weight: 600;
}

.ver-disponibilidad-btn:hover {
    background-color: #3aa0b0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ver-disponibilidad-btn.loading {
    pointer-events: none;
    animation: button-pulse 1.5s infinite;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(80, 190, 208, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(80, 190, 208, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(80, 190, 208, 0);
    }
}

/* Estilos para upsells */
.social-proof {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.social-proof-badge {
    background-color: rgba(47, 97, 171, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-proof-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.social-proof-text {
    font-size: 1rem;
    color: #555;
}

.upsell-options {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    justify-content: center;
}

.upsell-option {
    flex: 1;
    max-width: 350px;
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 6px 15px rgba(47, 97, 171, 0.08);
}

.upsell-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.upsell-option.premium {
    border: 2px solid var(--primary-color);
}

.upsell-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.upsell-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.upsell-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(80, 190, 208, 0.1);
    border-radius: 50%;
}

.upsell-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.upsell-details {
    margin-bottom: 20px;
}

.upsell-features {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.upsell-features li {
    padding: 8px 0 8px 30px;
    position: relative;
    font-size: 1rem;
    color: #555;
}

.upsell-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.upsell-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.upsell-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
}

.upsell-discount-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.upsell-discount-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.upsell-add-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.upsell-add-btn:hover {
    background-color: #1E4280;
    box-shadow: 0 4px 10px rgba(47, 97, 171, 0.3);
}

.skip-option {
    text-align: center;
    margin-top: 15px;
}

.skip-upsell-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.skip-upsell-btn:hover {
    color: #555;
}

/* Estilos para el upsell de ambientador */
.upsell-single-option {
    max-width: 600px;
    margin: 0 auto 30px;
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(47, 97, 171, 0.08);
    transition: var(--transition);
}

.upsell-single-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.upsell-image {
    text-align: center;
    margin-bottom: 20px;
}

.upsell-image img {
    max-width: 200px;
    max-height: 200px;
}

.fragrance-selector {
    margin: 20px 0;
}

.fragrance-label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.fragrance-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.fragrance-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.fragrance-option input {
    margin-right: 8px;
}

.fragrance-name {
    font-size: 1rem;
    color: #555;
}

/* Resumen del pedido */
.order-summary {
    background-color: var(--light-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.summary-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.summary-item.main-plan {
    padding-bottom: 5px;
}

.item-info {
    max-width: 70%;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 3px;
}

.item-description {
    font-size: 0.9rem;
    color: #666;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid var(--border-color);
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.total-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.upfront-payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background-color: rgba(47, 97, 171, 0.05);
    margin: 10px -25px;
    padding-left: 25px;
    padding-right: 25px;
}

.upfront-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.upfront-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.upfront-amount .original-price {
    font-size: 1.2rem;
    font-weight: 500;
}

.summary-savings {
    background-color: rgba(80, 190, 208, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.savings-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.savings-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.delivery-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 120px;
    font-weight: 600;
    color: #555;
}

.info-value {
    flex: 1;
    color: #333;
}

.checkout-terms {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin: 20px 0;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Navegación entre pasos */
.checkout-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.back-btn:hover {
    background-color: #f5f5f5;
}

.next-btn, .submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(80, 190, 208, 0.3);
}

.next-btn:hover, .submit-btn:hover {
    background-color: #3AA7B9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(80, 190, 208, 0.4);
}

.submit-btn {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(47, 97, 171, 0.3);
}

.submit-btn:hover {
    background-color: #1E4280;
    box-shadow: 0 6px 15px rgba(47, 97, 171, 0.4);
}

/* Estilos para el selector de días de entrega */
.delivery-days-container {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    width: 100%;
}

.day-box {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.day-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(80, 190, 208, 0.2);
}

.day-box.selected {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(47, 97, 171, 0.3);
}

.day-box-weekday {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.day-box-date {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.day-box-month {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Nuevo calendario de entrega */
.days-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.days-scroll-container {
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: calc(100% - 80px); /* Ensure it doesn't exceed container minus space for nav buttons */
}

.days-container {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 auto;
    /* Ensure all cards fit properly */
    width: 100%;
    flex-wrap: nowrap; /* Prevent wrapping to ensure horizontal scrolling */
}

.day-card {
    flex: 0 0 auto;
    min-width: 120px; /* Reduced from 150px to fit more cards */
    width: calc(20% - 16px); /* Make cards size responsively (5 cards with margins) */
    max-width: 150px; /* Limit maximum width */
    margin: 0 8px;
    padding: 15px;
    padding-bottom: 25px; /* Increased to make room for availability bubble */
    border-radius: 8px;
    background-color: var(--light-gray);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100px; /* Fixed height to ensure consistency */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.day-card.loading {
    position: relative;
    overflow: hidden;
}

.day-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.day-card.active {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(47, 97, 171, 0.3);
    transition: all 0.3s ease;
}

.day-card:hover:not(.active) {
    background-color: rgba(47, 97, 171, 0.1);
}

.day-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.day-date {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 5px; /* Reduced since we may not always show availability */
}

.day-availability {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    position: absolute;
    bottom: 10px; /* Increased to move up from bottom edge */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.available {
    background-color: rgba(80, 190, 208, 0.2);
    color: #2d8c9e;
}

.unavailable {
    background-color: rgba(200, 200, 200, 0.3);
    color: #666;
}

.nav-button {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-button:hover {
    background-color: var(--light-gray);
}

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

.timeslots-container {
    margin-top: 30px;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9fbfd;
    /* Ensure container is properly sized */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Remove height limit to show all timeslots without scrolling */
    min-height: 200px; /* Minimum height for container */
    overflow-y: visible; /* Show all content without scrolling */
}

.timeslots-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.timeslots-grid.loading {
    min-height: 200px;
}

.timeslots-grid.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(247, 249, 251, 0.8) 25%,
        rgba(237, 241, 245, 0.8) 50%,
        rgba(247, 249, 251, 0.8) 75%
    );
    background-size: 200% 100%;
    animation: shimmer-bg 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer-bg {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.timeslot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 70px;
    box-sizing: border-box;
    width: 100%;
    animation: fade-in 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeslot.available {
    background-color: white;
    border: 1px solid rgba(80, 190, 208, 0.3);
}

.timeslot.unavailable {
    background-color: rgba(200, 200, 200, 0.3);
    cursor: not-allowed;
    color: #999;
    opacity: 0.7;
}

.timeslot.selected {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(47, 97, 171, 0.3);
    border: none;
}

.timeslot-time {
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 10px;
}

.timeslot-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
}

.timeslot.available .timeslot-status {
    background-color: rgba(80, 190, 208, 0.2);
    color: #2d8c9e;
}

.timeslot.unavailable .timeslot-status {
    background-color: rgba(200, 200, 200, 0.3);
    color: #999;
}

.timeslot.selected .timeslot-status {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.loading-indicator {
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator.visible {
    opacity: 1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(80, 190, 208, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

.error-message {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    color: #e74c3c;
}

.selection-info {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    display: none;
}

.selection-info.visible {
    display: block;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.info-details {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* Estilos responsivos para el calendario */
@media (max-width: 768px) {
    .days-scroll-container {
        width: 80%;
        max-width: calc(100% - 60px);
    }

    .day-card {
        min-width: 110px;
        width: calc(33.33% - 16px); /* 3 cards per view on tablets */
    }
    
    /* Make calendar container more compact on tablets */
    .delivery-calendar-container {
        padding: 15px;
        max-height: 500px;
    }
    
    /* Adjust timeslots container for tablet */
    .timeslots-container {
        padding: 15px;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    /* Make calendar container more compact on mobile */
    .delivery-calendar-container {
        padding: 10px;
        max-height: 450px;
    }
    
    .days-scroll-container {
        width: 75%;
        max-width: calc(100% - 50px);
    }
    
    .day-card {
        min-width: 100px;
        width: calc(50% - 16px); /* 2 cards per view on mobile */
        padding: 12px 8px;
    }

    .day-name {
        font-size: 1rem;
    }

    .day-date {
        font-size: 0.8rem;
    }

    .day-availability {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .timeslots-container {
        padding: 12px;
        min-height: 150px;
    }
    
    .timeslots-grid {
        max-width: 100%;
        gap: 10px;
    }
    
    .timeslot {
        padding: 12px 15px;
        height: 60px;
    }
    
    .timeslot-time {
        font-size: 1rem;
    }
    
    .timeslot-status {
        font-size: 0.8rem;
        padding: 4px 8px;
        min-width: 70px;
    }
}

/* Estilo para campos estáticos (no editables) */
.static-field {
    background-color: var(--input-bg);
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #555;
}

.hidden {
    display: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .checkout-main {
        padding: 100px 0 40px;
    }
    
    .checkout-container {
        padding: 0 15px;
    }
    
    .step-text {
        font-size: 0.8rem;
        display: none;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .progress-steps::before {
        top: 25px;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .selected-plan-summary {
        padding: 15px;
    }
    
    .plan-icon {
        width: 40px;
        height: 40px;
    }
    
    .plan-name {
        font-size: 1.1rem;
    }
    
    .upsell-options {
        flex-direction: column;
    }
    
    .upsell-option {
        max-width: none;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nav-btn {
        padding: 10px 20px;
    }
    
    .days-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .day-box {
        padding: 15px 10px;
        min-height: 90px;
    }
    
    .day-box-weekday {
        font-size: 1rem;
    }
    
    .day-box-date {
        font-size: 0.9rem;
    }
    
    .day-box-month {
        font-size: 0.8rem;
    }
    
    /* Estilos responsive para el calendario */
    .weekdays-container,
    .time-slot-row {
        grid-template-columns: 70px repeat(4, 1fr);
    }
    
    .time-label {
        font-size: 0.8rem;
        padding: 5px;
    }
    
    .delivery-slot {
        padding: 8px 4px;
        min-height: 55px;
    }
    
    .day-name {
        font-size: 0.9rem;
    }
    
    .day-date {
        font-size: 0.8rem;
    }
    
    .calendar-nav-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .weekday-header:nth-child(6),
    .delivery-slot:nth-child(6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .weekdays-container,
    .time-slot-row {
        grid-template-columns: 60px repeat(3, 1fr);
    }
    
    .weekday-header:nth-child(n+5),
    .delivery-slot:nth-child(n+5) {
        display: none;
    }
    
    .slot-time {
        font-size: 0.75rem;
    }
    
    .delivery-slot {
        padding: 6px 3px;
        height: auto;
        min-height: 55px;
    }
    
    .time-label {
        font-size: 0.75rem;
        padding: 5px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-steps::before {
        top: 20px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .upsell-header {
        flex-direction: column;
        text-align: center;
    }
    
    .upsell-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .fragrance-options {
        flex-direction: column;
    }
    
    .checkout-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-btn {
        order: 2;
    }
    
    .next-btn, .submit-btn {
        order: 1;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-steps::before {
        top: 20px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .upsell-header {
        flex-direction: column;
        text-align: center;
    }
    
    .upsell-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .fragrance-options {
        flex-direction: column;
    }
    
    .checkout-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-btn {
        order: 2;
    }
    
    .next-btn, .submit-btn {
        order: 1;
    }
}