/* Checkout CSS - Convertido de Tailwind CSS */

/* Layout principal */
.checkout-container {
    min-height: 100vh;
    padding: 2rem 0;
    background-color: #000000;
}

.checkout-wrapper {
    max-width: 56rem;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Banner de urgencia */
.urgency-banner {
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    background-color: rgba(154, 52, 18, 0.3);
    border: 1px solid #ea580c;
    border-radius: 0.5rem;
}

.urgency-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fb923c;
}

/* Título principal */
.checkout-title {
    margin-bottom: 2rem;
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
}

/* Banner de envío gratis */
.shipping-banner {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #1f2937;
    border-left: 4px solid #10b981;
    border-radius: 0.5rem;
}

.shipping-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shipping-icon {
    font-size: 1.25rem;
    color: #10b981;
}

.shipping-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.shipping-subtitle {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Grid layout */
.checkout-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Formulario de checkout */
.checkout-form-container {
    padding: 1.5rem;
    background-color: #111827;
    border-radius: 0.5rem;
}

.form-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.form-group {
    margin-bottom: 1rem;
}

/* Filas de formulario para campos en paralelo */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* En pantallas pequeñas, los campos se apilan verticalmente */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    color: #ffffff;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
}

.form-input:focus {
    border-color: #ef4444;
    outline: none;
}

.form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    color: #ffffff;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    resize: vertical;
}

.form-textarea:focus {
    border-color: #ef4444;
    outline: none;
}

/* Sección de método de pago */
.payment-section {
    padding: 1rem;
    background-color: #1f2937;
    border-radius: 0.5rem;
}

.payment-title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.payment-icon {
    margin-right: 0.5rem;
    color: #60a5fa;
}

.payment-description {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
}

.payment-method-text {
    font-weight: 600;
}

/* Resumen del pedido */
.order-summary-container {
    padding: 1.5rem;
    background-color: #111827;
    border-radius: 0.5rem;
}

.order-summary-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    gap: 1rem;
    background-color: #1f2937;
    border-radius: 0.5rem;
}

.item-image {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    background-color: #ffffff;
    border-radius: 0.25rem;
}

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

.item-name {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .item-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.remove-btn {
    flex-shrink: 0;
    padding: 0.5rem;
    color: #ef4444;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.remove-btn:hover {
    color: #f87171;
    background-color: rgba(239, 68, 68, 0.2);
}

/* Totales */
.totals-section {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #374151;
}

.free-shipping-highlight {
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background-color: rgba(5, 150, 105, 0.3);
    border: 1px solid #10b981;
    border-radius: 0.5rem;
}

.free-shipping-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    color: #10b981;
}

.free-shipping-icon {
    font-size: 1.25rem;
}

.free-shipping-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.free-shipping-subtitle {
    font-size: 0.875rem;
    color: #6ee7b7;
}

.totals-list {
    margin-bottom: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-label {
    color: #9ca3af;
}

.total-value {
    color: #ffffff;
}

.original-price {
    color: #6b7280;
    text-decoration: line-through;
}

.discount-amount {
    font-weight: 700;
    color: #f87171;
}

.subtotal-value {
    font-weight: 700;
    color: #ffffff;
}

.shipping-value {
    color: #10b981;
    font-weight: 700;
}

.taxes-value {
    color: #9ca3af;
}

.final-total {
    padding-top: 0.5rem;
    border-top: 1px solid #4b5563;
}

.final-total-label,
.final-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
}

.savings-text {
    font-size: 0.875rem;
    text-align: center;
    color: #10b981;
}

/* Testimonios */
.testimonial {
    padding: 1rem;
    margin-top: 1.5rem;
    background-color: #1f2937;
    border-left: 4px solid #eab308;
    border-radius: 0.5rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.stars {
    display: flex;
    color: #eab308;
}

.reviewer-name {
    font-weight: 600;
    color: #ffffff;
}

.testimonial-text {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Botón de pedido */
.place-order-btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #dc2626;
    border: 2px solid #dc2626;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.place-order-btn:hover {
    background-color: #b91c1c;
}

.place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mensaje de error */
.error-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #6b0000;
    color: #ffffff;
    text-align: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.error-message.hidden {
    display: none;
}

/* Carrito vacío */
.empty-cart {
    padding: 2rem 0;
    text-align: center;
}

.empty-cart-icon {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    color: #4b5563;
}

.empty-cart-text {
    color: #9ca3af;
}

.shop-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    color: #ffffff;
    background-color: #dc2626;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.shop-link:hover {
    background-color: #b91c1c;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s;
    transform: translateX(100%);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #059669;
}

.notification.error {
    background-color: #dc2626;
}

.notification.info {
    background-color: #2563eb;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Utilidades */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.w-full {
    width: 100%;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

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

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.leading-tight {
    line-height: 1.25;
}

.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-red-400 {
    color: #f87171;
}

.text-red-500 {
    color: #ef4444;
}

.text-green-300 {
    color: #6ee7b7;
}

.text-green-400 {
    color: #4ade80;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-orange-400 {
    color: #fb923c;
}

.text-yellow-400 {
    color: #facc15;
}

.bg-black {
    background-color: #000000;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-green-600 {
    background-color: #059669;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-orange-900 {
    background-color: #7c2d12;
}

.bg-green-900 {
    background-color: #14532d;
}

.bg-opacity-30 {
    background-opacity: 0.3;
}

.border {
    border-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-600 {
    border-color: #4b5563;
}

.border-gray-700 {
    border-color: #374151;
}

.border-red-500 {
    border-color: #ef4444;
}

.border-green-500 {
    border-color: #10b981;
}

.border-orange-500 {
    border-color: #f97316;
}

.border-yellow-500 {
    border-color: #eab308;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.object-cover {
    object-fit: cover;
}

.line-through {
    text-decoration: line-through;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-x-full {
    --tw-translate-x: 100%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.z-50 {
    z-index: 50;
}

.fixed {
    position: fixed;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.min-w-0 {
    min-width: 0px;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.block {
    display: block;
}

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

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.opacity-60 {
    opacity: 0.6;
}

.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.resize-vertical {
    resize: vertical;
}

/* Hover states */
.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.hover\:bg-red-900\/20:hover {
    background-color: rgba(127, 29, 29, 0.2);
}

.hover\:text-red-400:hover {
    color: #f87171;
}

.focus\:border-red-500:focus {
    border-color: #ef4444;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:items-center {
        align-items: center;
    }
    
    .sm\:justify-between {
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}