body {
    margin: 0;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.card {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

h2 {
    text-align: center;
    margin-bottom: 25px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

input[type="text"],
input[type="email"],
.select {
    margin-top: 15px;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    background: #f9fafb;
}

input:focus,
.select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select {
    margin-top: 15px;
    width: 100%;
    background: #f9fafb;
}

.resumen {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 18px;
}

.dropzone {
    width: 100%;
    max-width: 100%;
    border: 2px dashed #cbd5f5;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: 0.2s;
}

.dropzone:hover {
    background: #eef2ff;
    border-color: #3b82f6;
}

.dropzone.dragover {
    background: #e0e7ff;
    border-color: #6366f1;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    margin-top: 15px;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

@media(max-width: 600px) {
    .card {
        margin: 20px;
    }
}

.productos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.producto {
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: #f9fafb;
}

.producto:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.producto.activo {
    border-color: #3b82f6;
    background: #eef2ff;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.producto span {
    font-size: 14px;
    color: #64748b;
}

.checkbox {
    grid-column: 1 / -1;
    /* ocupa toda la fila */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 🔥 clave */
    gap: 10px;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

#direccionEnvio {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

#direccionEnvio {
    transition: all 0.3s ease;
}

input.valido {
    border-color: #22c55e;
    background: #f0fdf4;
}

input.invalido {
    border-color: #ef4444;
    background: #fef2f2;
}

.error {
    grid-column: 1 / -1;
    font-size: 14px;
    color: #ef4444;
    margin-top: -5px;
}